Independently installable Pi Coding Agent extensions and reusable extension libraries for coding, research, browser automation, workflow management, observability, and terminal ergonomics.
Install only what you need.
Published packages use the @narumitw npm scope, and package READMEs identify source-only exceptions.
Install an extension permanently:
pi install npm:@narumitw/pi-goalTry one without adding it permanently:
pi -e npm:@narumitw/pi-statuslineCombine multiple extensions:
pi -e npm:@narumitw/pi-goal \
-e npm:@narumitw/pi-statusline \
-e npm:@narumitw/pi-lspImportant
Pi extensions run with your full user permissions. Review an extension before installing it from any third party.
These extensions are part of my daily Pi setup:
| Extension | Why I use it |
|---|---|
pi-btw |
Ask a quick side question without polluting the main context. |
pi-accounts |
Switch between named subscription OAuth accounts. |
pi-caffeinate |
Keep my machine awake so Pi can keep working. |
pi-codex-compact |
Spend a little more for better compaction quality. |
pi-stamp |
See useful details for each response, such as its timestamp. |
pi-starship |
Match Pi's footer to my Starship shell setup. |
pi-sync |
Sync my Pi configuration across all my devices through S3. |
pi-usage |
Check my Codex usage and limit reset times without opening Codex. |
| Package | Use it for | Install |
|---|---|---|
pi-codex-compact |
Use OpenAI Codex Remote Compaction V2 to persist and replay bounded opaque checkpoints, with /codex-compact manual controls and safe Pi-native fallback. |
pi install npm:@narumitw/pi-codex-compact |
pi-codex-imagegen |
Generate images through /codex-imagegen and a default-enabled Codex tool, without starting a Codex agent. |
pi install npm:@narumitw/pi-codex-imagegen |
pi-context-management |
Opt into experimental summary-free context rollover with bounded branch-history recall and branch-local notes. | pi install npm:@narumitw/pi-context-management |
pi-files |
Browse and attach exact file snapshots, and independently restrict native edits to selected targets through /files. |
Build and install locally; not yet published |
pi-illustrate |
Preview static SVG and Mermaid diagrams through Kitty graphics, with appearance-aware resizing and optional model images. | Install locally; not yet published |
pi-inline |
Style badges and preview local file citations and optional wikilinks in the terminal. | pi install npm:@narumitw/pi-inline |
pi-lsp |
Language-server diagnostics and code actions across JavaScript, TypeScript, Python, Rust, Go, Ruby, C/C++, JVM, .NET, Swift, shell, infrastructure formats, and more. | pi install npm:@narumitw/pi-lsp |
pi-plan-mode |
Codex-like, read-only /plan collaboration before implementation begins. |
pi install npm:@narumitw/pi-plan-mode |
pi-subagents |
Start bounded background Pi jobs with authenticated main-agent messaging. | pi install npm:@narumitw/pi-subagents |
| Package | Use it for | Install |
|---|---|---|
pi-chrome-devtools |
Inspect tabs, navigate pages, evaluate JavaScript, and capture screenshots through Chrome DevTools Protocol. | pi install npm:@narumitw/pi-chrome-devtools |
pi-firecrawl |
Scrape pages, crawl websites, discover URLs, and search the web with Firecrawl. | pi install npm:@narumitw/pi-firecrawl |
| Package | Use it for | Install |
|---|---|---|
pi-btw |
Ask a quick /btw side question without adding it to the main conversation. |
pi install npm:@narumitw/pi-btw |
pi-caffeinate |
Prevent system sleep while Pi processes a long-running prompt. | pi install npm:@narumitw/pi-caffeinate |
pi-goal |
Keep the agent working until a goal is verified complete; optionally enable an experimental ordered queue. | pi install npm:@narumitw/pi-goal |
pi-notes |
Browse and edit global Markdown notes in an isolated embedded-agent workspace. | pi install npm:@narumitw/pi-notes |
pi-progress |
Keep branch-aware multi-step work visible above the editor with the update_progress model tool. |
pi install npm:@narumitw/pi-progress |
pi-worktree |
Create, switch, remove, and prune Git worktrees while carrying the Pi session into another workspace. | pi install npm:@narumitw/pi-worktree |
Current Plan and Goal releases can coexist on the characterized Pi runtime through their anonymous cooperative workflow mutex.
The deprecated combined pi-workflow package has no atomic Plan-to-Goal replacement; follow its archived migration instructions.
| Package | Use it for | Install |
|---|---|---|
pi-chat |
Join ephemeral peer-to-peer chat rooms that stay separate from Pi sessions, prompts, and model context. | pi install npm:@narumitw/pi-chat |
pi-fleet |
Start a separate Pi process in a terminal split and connect explicit local Pi sessions for bounded messages and one-turn requests. | pi install npm:@narumitw/pi-fleet |
| Package | Use it for | Install |
|---|---|---|
pi-accounts |
Switch named OpenAI Codex, Anthropic, GitHub Copilot, Kimi For Coding, OpenRouter, Radius, and xAI OAuth accounts with /accounts. |
pi install npm:@narumitw/pi-accounts |
pi-dotenv |
Load one explicit dotenv file early enough for provider credential discovery during normal Pi startup. | pi install npm:@narumitw/pi-dotenv |
pi-recall |
Save selected text messages locally and preview or quote them across Pi sessions. | pi install npm:@narumitw/pi-recall |
pi-usage |
View provider usage, limits, reset times, and API balances with /usage. |
pi install npm:@narumitw/pi-usage |
pi-sync |
Sync allowlisted Pi settings and optional sessions through Cloudflare R2 or S3-compatible storage. | pi install npm:@narumitw/pi-sync |
| Package | Use it for | Install |
|---|---|---|
pi-analytics |
Review private, content-free local metrics for model calls, skills, tools, response cycles, and observed provider reliability through /analytics. |
pi install npm:@narumitw/pi-analytics |
pi-cache-hit-monitor |
Show live prompt-cache reuse, token, and estimated cost diagnostics above the editor. | pi install npm:@narumitw/pi-cache-hit-monitor |
pi-github-pr |
Show current-branch pull request checks, reviews, and comment counts through the authenticated gh CLI. |
pi install npm:@narumitw/pi-github-pr |
pi-inspect |
Inspect current session context and live tool calls in a private, read-only browser viewer with /inspect. |
pi install ./packages/pi-inspect |
pi-notify |
Send Telegram reminders when Pi settles, with optional inactivity timing and computer/session/worktree details. | pi install ./packages/pi-notify |
pi-otel |
Send agent, model, and tool traces to an OTLP collector or Langfuse. | Build and load locally; npm publication pending |
pi-stamp |
Show configurable timestamps with opt-in assistant metadata, response timing, and tool timing in the TUI transcript. | pi install npm:@narumitw/pi-stamp |
pi-starship |
Use a native Starship-style TOML footer with Pi-specific modules and no Starship binary dependency. | pi install npm:@narumitw/pi-starship |
pi-statusline |
Show model, tools, Git state, context usage, tokens, cost, and time in a preset or JSON-configured footer. | pi install npm:@narumitw/pi-statusline |
pi-tool |
Browse every configured tool and inspect its active state, source, parameter schema, and prompt guidelines with /tool. |
pi install npm:@narumitw/pi-tool |
pi-ticker |
Show configurable Yahoo Finance market quotes in a width-aware widget above the editor. | pi install npm:@narumitw/pi-ticker |
Choose either pi-starship or pi-statusline; do not enable both footer extensions together.
| Package | Use it for | Install |
|---|---|---|
@narumitw/pi-sync-daemon |
Detached synchronization owner used by Pi Sync; not a Pi extension. | Bundled in Pi Sync; standalone CLI available separately |
pi-tui-kit |
Extend @earendil-works/pi-tui with reusable navigation helpers and declarative action, detail, settings, and multi-select flows. |
npm install @narumitw/pi-tui-kit |
Libraries are runtime dependencies for extension authors, not standalone Pi extensions. New standard
manager menus should use @narumitw/pi-tui-kit; when using UI libraries, extensions continue to own domain state,
commands, settings persistence, confirmations, and specialized UI.
Install this repository directly from GitHub
Install the repository as one Pi package:
pi install git:github.com/narumiruna/pi-extensionsThe repository root Pi manifest explicitly lists every extension under packages/, so this enables all of them. Its install prepare step generates Kit and pi-sync-daemon runtime JavaScript, then builds Inspector browser assets without hook setup, even when Pi omits development dependencies; normal package builds still emit library declarations.
To load only selected extensions, replace the installed package entry in ~/.pi/agent/settings.json with a resource filter:
{
"packages": [
{
"source": "git:github.com/narumiruna/pi-extensions",
"extensions": [
"packages/pi-accounts/src/index.ts",
"packages/pi-usage/src/index.ts"
]
}
]
}Filters use resource paths relative to the repository root. A package directory such as packages/pi-accounts is not enough; select its src/index.ts entrypoint.
pi-herdr and pi-rex are no longer bundled with this repository. Remove their paths from any resource filters that list them. If you installed either separately, use pi remove <source> with the original install source to remove it from Pi.
Restart Pi or run /reload after changing the filter. Update the checkout later with:
pi update --extensionsUse Node.js from .node-version with its bundled npm, then run from the repository root:
node scripts/check-install-policy.mjs
npm install
npm test
npm run checknpm test builds prerequisites, typechecks the test sources, and runs the root and workspace suites with Vitest.
npm run build derives dependency-first order from workspace manifests, builds each prerequisite once,
and stops before consumers if a prerequisite fails; workspace-list order is not a build contract.
Staged typechecks use the same build planner.
Install uv, then install prek and enable the Git pre-commit hook:
uv tool install prek
prek installFor an existing Husky checkout, run git config --local --unset-all core.hooksPath
before prek install if the local hook path is still .husky/_.
Hook installation is explicit; npm install does not install Git hooks.
See prek.toml for the hook order and file filters. Use /delete-comment
in a trusted Pi checkout to review a cleanup batch and shrink the
source comment baseline.
Run the README linter on its own with uv run scripts/check_readmes.py.
Run prek run --all-files to run all hooks manually, or select one by ID, such as
prek run zizmor --all-files; typechecks still use the Git index.
Root npm run typecheck uses tsc-rs for workspace checks; no compiler flag is needed.
Root Node.js workflows use npmInvocation() to launch npm.
Biome checks this boundary in npm run check.
The prek hook uses npm run typecheck -- --staged to check affected workspaces
after building their prerequisites.
tsc-rs is an early-release compiler: combined test compilation showed diagnostic
differences during evaluation, so test compilation and JavaScript/declaration builds
still use official TypeScript. The runner preserves documentation-only skips and
full-check fallbacks; it does not download a compiler on demand.
The selectors treat prek.toml changes as full-workspace inputs for typechecks
and tests.
During commits, prek temporarily stashes unstaged changes and blocks the commit
if checks fail or modify files. Review and stage fixes before retrying; the hook
does not stage them automatically.
See test performance and isolation for package timing reports,
cache behavior, and the reviewed shared-module test boundary.
The terminal and provider handoff retains
unverified external checks from completed UI changes.
CI and release use npm ci with strict dependency script review and a three-day minimum age for new resolution.
See dependency installation policy for script approvals, lockfile-age limitations,
failed-update recovery, urgent-patch review, and toolchain upgrades.
Build generated entries before loading local packages, and use the generic npm pack workflow with an unscoped package name:
npm --workspace @narumitw/pi-goal run build --if-present
pi -e ./packages/pi-goal
npm run package:pack -- goal
# Pi Files requires a local build; it is not yet published to npm
npm --workspace @narumitw/pi-files run build --if-present
pi -e ./packages/pi-files
npm run package:pack -- files
# Libraries use the same generic pack workflow
npm run package:pack -- tui-kitRun npm run to see all development, install, pack, and release workflows.
Pull requests that change published package behavior should add release intent with npm run changeset.
Packages version independently.
Publishing a new scoped package
npm run package:public -- @narumitw/pi-new-extension only changes visibility for an existing npm package.
If npm returns 404 for a brand-new package, publish it once with public access:
npm publish --workspace @narumitw/pi-new-extension --access publicAfter the initial publication, Changesets handles extensions and libraries through independent package versions.
A behavior-changing package pull request records its affected packages and SemVer bumps with:
npm run changesetAfter changesets reach main, the release workflow creates or updates one version pull request. That
pull request changes only selected package versions, dependency ranges where configured, changelogs,
and the lockfile. Merging it publishes the new versions with npm provenance and creates
package-specific tags and GitHub releases such as @narumitw/[email protected].
Repository-only documentation, tests, tooling, and path migrations may omit a changeset. Use
npm run changeset:status to inspect pending releases. Versioning and publication run through the
release workflow; initial publication remains the manually approved exception described above.
See coordinated Kit and consumer releases for dependency floors and publication safeguards.
packages/ Extension packages and reusable libraries
deprecated/ Reference packages excluded from active workspace scripts
docs/ Repository conventions and plans
.github/scripts/ GitHub Actions versioning and publishing helpers
scripts/ Shared builds, checks, tests, and local workflow helpers
test/ Root integration and repository tests
Each active package contains its own package.json, README.md, LICENSE, tsconfig.json, and TypeScript source under src/.
Every extension keeps a thin src/index.ts source forwarder and declares one package entrypoint.
An extension package may load that source entrypoint directly or publish a build-backed dist/index.ts bundle for Pi's Jiti runtime.
Reusable libraries publish built ESM and declarations from dist/.
Deprecated packages
The following packages remain available as source references but are excluded from active workspace scripts:
pi-codex-accountsβ replaced bypi-accountspi-file-contextandpi-edit-scopeβ merged intopi-files; follow the migration guide and do not co-load predecessors with the successorpi-cbmemβ deprecated without a replacement because a simple benchmark found insufficient benefit and substantially higher token usagepi-retryβ replaced by Pi's built-in provider retry and timeout behaviorpi-google-genaiβ replaced by thegrounding-with-google-genaiagent skillpi-image-dropβ deprecated without a replacementpi-typesafe,pi-typesafe-compact, andpi-typesafe-searchβ deprecated without a replacement; source retained for reference, with no npm registry deprecation or new releasepi-workflowβ replaced by focused Plan and Goal products; atomic Plan-to-Goal handoff has no replacementpi-jupyterβ deprecated without a replacementpi-webuiβ deprecated without a replacementpi-sidebarpi-telegraphpi-wait-what
MIT. See LICENSE.