A collection of small extensions for Pi Coding Agent.
Note
Looking for a standalone GUI agent harness? Asterism (GitHub) is the author's independent desktop agent harness with a full GUI — carrying forward the design philosophy and ideas behind these extensions as an object-centered workbench.
| Package | Version | Description |
|---|---|---|
@d3ara1n/pi-apply-patch |
Codex-compatible freeform apply_patch editing with context matching, multi-file operations, and workspace boundaries | |
@d3ara1n/pi-ask-user |
Collapsible ask-user tool — panel renders in the bottom editor slot (not a screen overlay), so the transcript stays visible and scrollable above it | |
@d3ara1n/pi-context-include |
@path syntax for AGENTS.md — include files by reference, with a path safety fence (allow/deny roots, safe by default) |
|
@d3ara1n/pi-hashline-edit |
Hashline-style file editing — line-anchored edits verified by content hash, replacing oldText/newText matching | |
@d3ara1n/pi-provider-agnes |
Agnes AI provider — token-billing + token-plan variants sharing the same text models | |
@d3ara1n/pi-provider-sensenova |
SenseNova (商汤日日新) Token Plan provider — chat models via OpenAI-compatible API | |
@d3ara1n/pi-provider-stepfun |
StepFun (阶跃星辰) provider — pay-as-you-go + Step Plan channels via OpenAI-compatible API | |
@d3ara1n/pi-provider-unisound |
Unisound (云知声) MaaS provider — pay-as-you-go + Token Plan channels via OpenAI-compatible API | |
@d3ara1n/pi-usage-block |
Usage quota status block for powerline and pi-editor-shell | |
@d3ara1n/pi-editor-shell |
Unified rounded-corner editor shell — embeds model, context, cache, git, and pinned extension status info in the editor border | |
@d3ara1n/pi-scout † |
Per-turn side agent — lazy skill injection, automatic model routing, and trivial-ack short-circuit (skips the side model on 好的/ok/はい) |
|
@d3ara1n/pi-subagent † |
Role-based subagent orchestration — foreground and background (async subagent_wait/subagent_check, cancellable via subagent_cancel) delegation to specialized pi child processes with real-time TUI progress |
|
@d3ara1n/pi-model-roles |
Named model role definitions with resolution to Model instances | |
@d3ara1n/pi-command-palette |
Global command palette — Ctrl+Shift+P to search and run commands from anywhere; other extensions can register native entries via pi-command-palette-core |
|
@d3ara1n/pi-session-namer † |
Auto-name sessions using a cheap side agent | |
@d3ara1n/pi-access-denied |
Review detected paths in write/edit/bash/apply_patch calls with shared rules and per-session decisions |
|
@d3ara1n/pi-mesh |
Agent mesh — peer discovery + cross-instance transport; the neutral foundation pi-peek-agent and pi-chat-room build on |
|
@d3ara1n/pi-peek † |
Shared core for session-record retrieval, streaming reports and main-agent status | |
@d3ara1n/pi-peek-user ‡ |
/peek overlay — inspect your session's records while the main agent keeps working |
|
@d3ara1n/pi-peek-agent §‡ |
Cross-instance peek tool — retrieve another session's records through pi-mesh |
|
@d3ara1n/pi-chat-room § |
Agent-to-agent messaging — send_to tool; incoming messages arrive as [From: NAME] user messages |
† Requires
pi-model-rolesinstalled; ‡ requirespi-peekinstalled (which itself requirespi-model-roles); § requirespi-meshinstalled.
Pure npm packages — no pi.extensions entry point, no hooks/tools/commands. Import them in your own plugins.
| Package | Version | Description |
|---|---|---|
@d3ara1n/pi-usage-block-core |
Shared types and singleton registry for usage quota reporting | |
@d3ara1n/pi-command-palette-core |
Shared types and singleton registry for native command-palette entries |
All extensions here work in ACP hosts (e.g. Zed via pi-acp) and other non-TUI pi sessions (--mode rpc, print, JSON). Tool results are plain text, which every session mode shares; the rich TUI renderers only load in terminal sessions and are simply absent elsewhere.
Current state:
- Interactive degradation —
pi-access-deniedandpi-ask-userfall back toselect/confirmdialogs through pi's extension UI sub-protocol when a host can answer them, with the JSON result contract kept identical to the TUI panels. See each package's "Non-TUI sessions" section for what carries over and what doesn't. - Works as-is —
pi-scout's pending indicator (setWidgetwith string lines),pi-usage-block's status entries, andpi-subagent's live progress streaming all ride fire-and-forget or text channels that RPC mode supports natively; subagents themselves run as independent child processes regardless of parent mode. - Terminal-only by nature —
pi-editor-shell's editor chrome no-ops outside a real terminal. Thepi-command-paletteandpi-peek-useroverlays are command-entry UI; current ACP adapters don't forward extension slash commands at all, so they're simply unreachable rather than broken.
pi install npm:@d3ara1n/pi-context-include
npm install
Fully automated via GitHub Actions on push to main.
Uses Conventional Commits:
| Commit | Version bump |
|---|---|
feat(<scope>): ... |
minor |
fix(<scope>): ... |
patch |
feat(<scope>)!: ... or BREAKING CHANGE: |
major |
chore:, docs:, refactor: |
no publish |
Scope must match the package directory name (e.g. pi-context-include).