Personal configuration for the PI coding agent. This repo is symlinked into ~/.pi/agent via the install script.
Creates a symlink from ~/.pi/agent to the agent/ directory in this repo.
./install.shagent/: PI agent configuration (symlinked to~/.pi/agent)settings.json: agent settings (provider, model, thinking level, packages)extensions/: TypeScript extensions that hook into the agentprompts/: custom prompt templatesbin/: bundled binaries (e.g.fd)sessions/: active session datatodos/: todo tracking
docs/: documentation.agents/docs/: AI plans, research, and implementation designsAGENTS.md: guidelines for parallel agents (tool usage, git safety rules, writing style)install.sh: symlink setup script
- anthropic -
agent/models.jsonoverrides the base URL to a local proxy athttp://localhost:4000 - openrouter - built-in provider, no
models.jsonentry needed. Authenticated via theOPENROUTER_API_KEYenvironment variable (resolved automatically by pi's standard credential lookup). Enabled models are listed underenabledModelsinagent/settings.json(e.g.openrouter/moonshotai/kimi-k3,openrouter/deepseek/deepseek-v4-flash,openrouter/qwen/qwen3.8-max)
TypeScript extensions that add functionality to the agent. See docs/extensions.md.
Web browsing in PI. Provides tools for searching the web, fetching URL content, and retrieving stored results.
- web_search - Search the web with one or more queries, returns AI-synthesized answers with citations
- fetch_content - Fetch and extract readable content from URLs, YouTube videos, GitHub repos, and local videos
- get_search_content - Retrieve full stored content from previous web_search or fetch_content calls
Interactive sub-agent management (experimental, under evaluation).
- git-guard - Safety checks for destructive git operations
- git-checkpoint - Automatic git-based checkpoints
- todos - Todo management within sessions
- openrouter - Account credits, current-key usage, app/model spending, and key budgets. See the commands below.
- herdr -
/herdr-fork [task]forks the saved session into a new Herdr tab./herdr-handoff [goal]generates a continuation prompt through OpenRouter and submits it to a fresh Pi session in a new tab. Both commands preserve source focus, model, and thinking level. Generation runs in the background. See agent/extensions/herdr/README.md.
| Command | Report |
|---|---|
/openrouter |
Account credits and current-key usage |
/openrouter apps [days] |
Spending, requests, and tokens per app across the account |
/openrouter models [days] |
Spending, requests, and tokens per model across the account |
/openrouter keys |
Usage and budgets for keys in the default workspace, including disabled keys |
/openrouter help |
Command syntax |
Analytics default to seven rolling days and accept 1-30 days. Reports show at most 20 groups, sorted by spending. App groups use existing OpenRouter attribution. Requests without attribution appear as Unknown.
Account credits and management reports require OPENROUTER_MANAGEMENT_KEY. Current-key usage requires OPENROUTER_API_KEY. Management calls only read data. A failed summary request does not hide the other summary report.
Prompt templates are Markdown snippets that expand into full prompts. Type /name in the editor to invoke a template, where name is the filename without .md. See docs/prompt-templates.md.
- review-staged - Review staged git changes for bugs, security issues, and error handling gaps
Reusable, invokable capabilities. See docs/skills.md.
All Pi skills now live in ~/.agents/skills/, shared with Claude. They are no longer stored in this repository's agent/skills/ directory.
- commit-message - Generates a commit message from staged changes (used by the pi-ai-commit wrapper script)
- review-staged-changes - Reviews staged changes for bugs, security issues, and error handling gaps (P0-P3 priority)
- keep-a-changelog - Sets up and maintains a human-readable
CHANGELOG.mdfollowing Keep a Changelog 1.1.0
- Global (shared):
~/.agents/skills/ - Project:
.pi/skills/,.agents/skills/(searched up to git root)
- Anthropic Skills - Document processing (docx, pdf, pptx, xlsx), web development
- Pi Skills - Web search, browser automation, Google APIs, transcription
- extensions.md - Extension authoring guide
- OpenRouter headers for Pi extensions - App attribution, categories, session grouping, and visibility
- skills.md - Skills authoring guide
- prompt-templates.md - Prompt template syntax
- session.md - Session management
- codemode-and-jev.md - Codemode architecture, tool workflows, MCP guidance, and Jev classifier model
This is not a Pi error. It is the model self-correcting a rejected edit tool call.
The edit tool validates each item in edits[] with a strict schema (additionalProperties: false). When a model emits a stray key inside an edit object (for example newText_dummy alongside the real oldText/newText), the entire tool call is hard-rejected instead of ignoring the extra key. The model receives the validation error, recognizes the bogus key, narrates the message above, and retries the edit cleanly. The retry usually succeeds, so it is mostly wasted round-trips rather than a fatal failure.
Notes:
- Caused by noisy model output, not by anything you did. Stronger models trigger it less.
- Tracked upstream in earendil-works/pi issues #1259 and #2731.
- PR #5434 drops
additionalProperties: falsefrom the inner edit schema so extra keys are ignored. Not yet released as of 0.79.4.
- Armin Ronacher, What is Codemode (October 6, 2026)
- PI
- Pi Mono - Coding Agent
- Extensions docs
- Skills docs
- Packages