# Repository Briefing: narumiruna/pi-extensions
> Source: https://repoforai.com/repo/narumiruna/pi-extensions (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/narumiruna/pi-extensions
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (94/100 · Maintenance 35/35 · Adoption 19/25 · Releases 20/20 · License 20/20)
- **Latest Release**: @narumitw/pi-sync@0.71.0 (2026-12-03) — https://github.com/narumiruna/pi-extensions/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: CLI
- **Momentum**: 823 ★ total (+2 24h / +18 7d) · 167 forks
- **Topics**: `ai-agents`, `codex`, `codex-cli`, `coding-agent`, `nodejs`, `npm-package`, `pi`, `pi-coding-agent`, `pi-extensions`, `starship`, `statusline`, `typescript`
- **When to Use**: Best for: Pi users who want to add read-only planning, worktree and session workflows, or terminal diagnostics one reviewed package at a time. Skip if: You need tools shared across MCP clients, extensions sandboxed from user permissions, or a turnkey service independent of Pi.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Installation scope: Try a single package with `pi -e`, or filter a Git install by exact `src/index.ts` entrypoints.
- Planning and execution: Read-only `/plan` and goal verification can coexist through a cooperative workflow mutex on the tested Pi runtime.
- Context compaction: `pi-codex-compact` persists and replays bounded opaque Codex Remote Compaction V2 checkpoints, with a Pi-native fallback.
- Sync lifecycle: Pi Sync 0.71.0 runs in Pi's process, removes the daemon and IPC API, and supports Git, WebDAV, R2, and S3.
- Observability: Local content-free analytics, live cache and cost estimates, and optional OTLP or Langfuse trace export serve distinct needs.
- Extension authoring: `pi-tui-kit` adds reusable navigation and declarative menus on top of `@earendil-works/pi-tui` without owning extension state.
```

## Quick Start / Clone
```bash
node scripts/check-install-policy.mjs
npm install
npm test
npm run check
```
