narumiruna/pi-extensions
A TypeScript monorepo of native Pi extensions for coding workflows and diagnostics
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
This TypeScript/npm monorepo packages native Pi Coding Agent extensions, not a standalone MCP server. Pi loads the selected entrypoints, and individual extensions add slash commands, model tools, or terminal UI components. Published packages use the @narumitw scope and version independently. The root Pi manifest exposes every extension under packages/, so a Git install loads the whole set unless filtered by entrypoint.
The root manifest lists esbuild as a dependency; that is not a complete inventory of workspace dependencies. pi-tui-kit builds on @earendil-works/pi-tui for navigation and declarative menus, while consumers retain domain state, commands, and settings persistence. The workspace build derives prerequisite order from manifests rather than package-list order. During Git installation, the prepare step generates Kit runtime JavaScript and builds Inspector browser assets even when dev dependencies are omitted.
Key Capabilities & Differentiators
The workflow packages separate read-only planning (/plan) from goal verification and implementation work. pi-worktree carries a Pi session into another Git worktree, while pi-subagents runs bounded background Pi jobs with authenticated messaging to the main agent. pi-codex-compact provides manual controls and persists bounded opaque checkpoints from Codex Remote Compaction V2, with a Pi-native fallback.
Integrations include Chrome inspection via CDP, Firecrawl for web research, and sync of selected settings and optional sessions through Git, WebDAV, R2, or S3. pi-accounts switches named OAuth accounts for providers including OpenAI Codex, Anthropic, GitHub Copilot, and OpenRouter. For diagnostics, pi-analytics keeps content-free metrics locally, pi-cache-hit-monitor reports live cache reuse and estimated cost, and pi-otel can send traces to an OTLP collector or Langfuse.
Trade-offs & Limitations
Compared with a standalone MCP server, native Pi extensions can operate directly on Pi's terminal and session workflows, but they do not offer the same cross-client integration model. Compared with an unextended CLI, the modular approach lets teams add only what they need, at the cost of managing additional versions and checking interactions. Plan and Goal coexist through a cooperative mutex on the tested Pi runtime; this does not restore the deprecated pi-workflow package's atomic Plan-to-Goal transition.
The biggest adoption constraint is trust: extensions run with the user's full permissions. A whole-repository install therefore has a broader trust footprint than a short list of reviewed packages. Remote compaction trades additional cost for potentially better compaction quality, while sync and trace export introduce explicit data destinations. Review optional session sync and trace export separately from local-only UI and metrics features.
Hardware & Deployment Guide
Start with a working Pi CLI. Try a package without persisting it using pi -e npm:@narumitw/pi-statusline, or install it permanently with pi install npm:@narumitw/pi-statusline. For source development, use the Node.js version in .node-version and its bundled npm, then run the repository's install-policy check, npm install, npm test, and npm run check. Packages such as pi-files and pi-otel require a local build rather than installation from npm.
Pi itself is the host; external dependencies are feature-specific, such as Chrome for CDP or a configured sync destination. Pi Sync 0.71.0 removes the daemon, its CLI, and the IPC API. Before upgrading an affected installation, close old Pi processes, drain and stop the daemon with a compatible legacy CLI, and verify it has exited before reusing the same agent directory.
pi -e, or filter a Git install by exact src/index.ts entrypoints./plan and goal verification can coexist through a cooperative workflow mutex on the tested Pi runtime.pi-codex-compact persists and replays bounded opaque Codex Remote Compaction V2 checkpoints, with a Pi-native fallback.pi-tui-kit adds reusable navigation and declarative menus on top of @earendil-works/pi-tui without owning extension state.Pi users who want to add read-only planning, worktree and session workflows, or terminal diagnostics one reviewed package at a time.
You need tools shared across MCP clients, extensions sandboxed from user permissions, or a turnkey service independent of Pi.
Quick Start & Installation
node scripts/check-install-policy.mjs npm install npm test npm run check
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| pi-extensions ★ | 823 | +18 | TypeScript | MIT | A TypeScript monorepo of native Pi extensions for coding workflows and diagnosti |
| obsidian-skills | 56.2k | +1.7k | Shell | MIT | Agent Skills plugins for editing Obsidian files and working with vaults |
| ECC | 316.1k | +4.2k | JavaScript | MIT | Plugins and CLI workflows for planning, reviewing, and verifying agent-written c |
| ponytail | 204.4k | +4.1k | JavaScript | MIT | A prompt-driven coding-agent plugin for smaller changes and focused tests. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/narumiruna/pi-extensions.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about pi-extensions
How does Pi load these extensions, and how do I limit what it loads?
~/.pi/agent/settings.json with a resource filter that names entrypoints such as packages/pi-accounts/src/index.ts. A package directory alone is not a valid filter entry. Restart Pi or run /reload after changing the filter.What hardware and runtime overhead should I budget for?
Can a company use this commercially and keep its data on infrastructure it controls?
When is this a better fit than a standalone MCP server or an unextended coding CLI?
/plan, worktree switching, or a live status footer. If the built-in CLI already covers your workflow, keeping it unextended avoids another package upgrade and compatibility surface.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy