pi-agent-suite
Adds a configurable multi-agent layer to pi, with context management, Codex quota status, a custom footer, and more.
Package details
Install pi-agent-suite from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-agent-suite- Package
pi-agent-suite- Version
0.12.1- Published
- May 21, 2026
- Downloads
- 3,223/mo · 1,074/wk
- Author
- nrw9999
- License
- unknown
- Types
- extension
- Size
- 1.1 MB
- Dependencies
- 5 dependencies · 5 peers
Pi manifest JSON
{
"extensions": [
"./extensions/system-prompt/index.ts",
"./extensions/project-rules/index.ts",
"./extensions/mcp-wrapper/index.ts",
"./extensions/enable-tools/index.ts",
"./extensions/footer/index.ts",
"./extensions/codex-verbosity/index.ts",
"./extensions/codex-quota/index.ts",
"./extensions/custom-compaction/index.ts",
"./extensions/context-projection/index.ts",
"./extensions/context-overflow/index.ts",
"./extensions/completion-sound/index.ts",
"./extensions/cmux/index.ts",
"./extensions/url-scheme/index.ts",
"./extensions/main-agent-selection/index.ts",
"./extensions/run-subagent/index.ts",
"./extensions/structured-prompt/index.ts",
"./extensions/ask-llm/index.ts",
"./extensions/consult-advisor/index.ts",
"./extensions/convene-council/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Pi Agent Suite
Pi Agent Suite adds pi extensions for agent profiles, subagents, advisor tools, context management, notifications, MCP tools, and prompt helpers.
Quick start
Install from npm:
pi install npm:pi-agent-suite
Run from source:
git clone https://github.com/n-r-w/pi-agent-suite.git
cd pi-agent-suite
pi -e ./pi-package
Install from source for all pi sessions:
pi install ./pi-package
Manual package entry in ~/.pi/agent/settings.json:
{
"packages": ["npm:pi-agent-suite"]
}
Extension settings are stored under:
~/.pi/agent/agent-suite/
Set PI_AGENT_SUITE_DIR to use another suite directory.
Recommended setup
Start with the default extensions. They provide agent selection, subagents, advisor calls, custom compaction, footer status, prompt helpers, and notifications.
Add optional extensions only when you need their specific behavior:
- Set most capable model with high thinking level for
consult-advisor - Enable
codex-quotawhen you use OpenAI Codex and want quota status in the footer. - Enable
codex-verbositywhen you want to control Codex answer detail. - Configure
mcp-wrapperwhen you want MCP server tools inside pi. - Enable
url-schemewhen you want final answer file references to open in your editor. - Enable
context-projection. Use summary mode with a fast model insummary.model(e.g.gpt-5.3-codex-spark). - Enable
convene-council. Do not rely on current session model defaults. Configurellm1andllm2with the most capable available models and setmodel.thinkingtohighorxhigh. Use two different models when possible.
Recommended MCP servers:
https://github.com/n-r-w/team-mcpfor collaboration desks between agents.https://github.com/n-r-w/asteriafor symbolic code search.
Extensions
| Extension | Default behavior | What it does | Quick settings | Details |
|---|---|---|---|---|
system-prompt |
Enabled | Replaces pi's base system prompt with a Markdown template and runtime variables. | system-prompt/config.json: enabled, templateFile. |
docs/extensions/system-prompt.md |
project-rules |
Enabled | Appends recursive project Markdown rules from .pi to the final system prompt. |
project-rules/config.json: enabled, rulesDir. |
docs/extensions/project-rules.md |
mcp-wrapper |
No MCP tools until configured | Registers tools from configured MCP servers, caches tool metadata, and adds /mcp-refresh. |
mcp-wrapper/config.json: settings.enabled, settings.timeouts, mcpServers. |
docs/extensions/mcp-wrapper.md |
enable-tools |
Enabled | Enables configured built-in tools such as grep, find, and ls. |
enable-tools/config.json: enabled, include, exclude. |
docs/extensions/enable-tools.md |
footer |
Enabled | Shows project, quota, cost, selected agent, model, projection, MCP errors, and context usage. | footer/config.json: enabled, showProvider, showModel, showThinkingLevel, showApiCost. |
docs/extensions/footer.md |
codex-verbosity |
Disabled | Adds text.verbosity to OpenAI Codex requests. |
codex-verbosity/config.json: enabled, verbosity (low, medium, high). |
docs/extensions/codex-verbosity.md |
codex-quota |
Disabled | Shows OpenAI Codex quota status in the footer. | codex-quota/config.json: enabled, refreshInterval, retryAttempts, retryInterval. |
docs/extensions/codex-quota.md |
custom-compaction |
Enabled | Uses custom prompts for pi conversation compaction. | custom-compaction/config.json: enabled, model, reasoning, prompt file paths, retry. |
docs/extensions/custom-compaction.md |
context-projection |
Disabled | Replaces old large non-critical tool results in provider context with a placeholder or summary. | context-projection/config.json: enabled, projection thresholds, recent-turn protection, summary. |
docs/extensions/context-projection.md |
context-overflow |
Enabled | Starts preventive compaction before the model context is too full. | context-overflow/config.json: enabled, compactRemainingTokens. |
docs/extensions/context-overflow.md |
completion-sound |
Enabled | Plays a sound after successful top-level agent runs. | completion-sound/config.json: enabled, command, args, volume. |
docs/extensions/completion-sound.md |
cmux |
Enabled | Sends cmux notification after successful top-level agent runs. | cmux/config.json: enabled. |
docs/extensions/cmux.md |
url-scheme |
Disabled | Converts final answer file references into editor links. | url-scheme/config.json: enabled, scheme (vscode, cursor, webstorm, idea, pycharm, phpstorm, txmt, bbedit). |
docs/extensions/url-scheme.md |
main-agent-selection |
Enabled | Adds /agent and Ctrl+Shift+A for selecting reusable main agents. |
agent-selection/config.json: enabled, diagnosticsEnabled. |
docs/extensions/main-agent-selection.md |
run-subagent |
Enabled | Adds the run_subagent tool for running subagents in child pi processes. |
run-subagent/config.json: enabled, maxDepth, widgetLineBudget. |
docs/extensions/run-subagent.md |
structured-prompt |
Enabled | Adds /prompt and Ctrl+Alt+P for building structured user requests. |
structured-prompt/config.json: enabled. |
docs/extensions/structured-prompt.md |
ask-llm |
Enabled | Adds /ask for one-off model questions that are not saved to the current session. |
ask-llm/config.json: enabled, model, systemPromptFile, retry. |
docs/extensions/ask-llm.md |
consult-advisor |
Enabled | Adds the consult_advisor tool for an independent model opinion. |
consult-advisor/config.json: enabled, model, promptFile, debugPayloadFile, retry. |
docs/extensions/consult-advisor.md |
convene-council |
Disabled | Adds the convene_council tool for a bounded two-participant model discussion. |
convene-council/config.json: enabled, llm1, llm2, participantIterationLimit, finalAnswerParticipant, responseDefectRetries, tools. |
docs/extensions/convene-council.md |
Agent files
Agent files define reusable work modes and subagents for main-agent-selection and run-subagent.
Default location:
~/.pi/agent/agent-suite/agent-selection/agents/
Basic rules:
- Each agent is one
.mdfile. - The agent ID is the file name without
.md. - The settings block goes at the top between
---lines. - The Markdown text after the settings block is the agent prompt.
typecan bemain,subagent, orboth.toolscan list exact tool names or narrow wildcard patterns. Full wildcard*is not allowed.agentslimits which subagents agent may call.
Example:
---
description: Reviews code and checks implementation risks.
type: both
model:
id: openai-codex/gpt-5-codex
thinking: high
tools:
- read
- bash
- grep
- mymcp_*
agents:
- Researcher
- Reviewer
---
You are a code review agent. Check correctness, risks, and missing validation.
Allowed thinking values are off, minimal, low, medium, high, and xhigh.