Loading...
Loading...
Authoritative reference for Pi (@earendil-works/pi-coding-agent): install, configure, run, and extend. Use when the user asks about Pi CLI/flags/commands, providers/models/auth, settings/compaction/sessions, security/trust, extensions, skills, prompt templates, themes, packages, custom providers, TUI components, the SDK, RPC mode, or JSON streaming. Also use for Pi's design philosophy and opinionated choices (why minimal, 4 tools, YOLO, no MCP/plan mode/to-dos/sub-agents), the creator Mario Zechner's coding-agent blog post, Pi's internal monorepo architecture (the Chord plugin/service runtime (@earendil-works/chord), the agent harness, facets/services, delta tracking), and the repository's build, development, and contribution rules.
npx skill4agent add agents365-ai/365-skills pi-dev-rules@earendil-works/pi-coding-agentmodels.jsonsettings.json@earendil-works/chordserverclientprotocol| File | Covers |
|---|---|
| Install, auth, launching, how Pi works (agent loop, context assembly, session tree), the full CLI reference (commands, flags, modes), slash commands, message queue, context files, environment variables (incl. bash-tool |
| Subscription & API-key providers (30+), llama.cpp local router, |
| Configuration layout (agent directory vs project |
| Extension API (events, tools, commands, UI), Skills (SKILL.md), Prompt Templates, Themes, Packages |
| TUI component system for custom extension/tool UIs (components, overlays, theming, custom editor) |
| Project-trust model ( |
| Session JSONL schema: versions, content blocks, entry types, tree/context building, SessionManager API, plus the model-facing message types |
| SDK, CLI integration (interactive/print/JSON/RPC mode choice, |
| Windows, Termux, tmux, per-terminal modified-Enter setup, shell aliases |
| Monorepo package list, build-from-source and standalone-binary builds, supply-chain rules, |
| Creator Mario Zechner's design manifesto (blog, 2025-11-30): minimal prompt <1000 tokens, 4 tools, YOLO by default, non-features (no MCP/plan/to-dos/sub-agents/background bash) with their intended alternatives, multi-provider architecture, Terminal-Bench 2.0 results (manually curated, not auto-built) |
| |
| Internal agent architecture: |
| Release history: the last 25 versions with their headline change, extracted from |
pi install npm:pi-mcp-adapter # MCP server integration
pi install npm:pi-subagents # subagents / loop / chain / parallel
pi install npm:pi-lens # real-time LSP diagnostics
pi install npm:pi-web-access # web search, URL fetch, YouTube, PDFpi listnpm install -g --ignore-scripts @earendil-works/pi-coding-agent # install (or: curl -fsSL https://pi.dev/install.sh | sh)
export ANTHROPIC_API_KEY=sk-ant-... # or run /login in-session
cd /path/to/project && pi # start interactive (may prompt to trust the project)
pi update # update Pi itself (pi update self / pi update --self are aliases)
pi list # list installed packages
pi -c # continue most recent session
pi -r # browse/resume sessions
pi --session <path|id> # open specific session
pi --fork <path|id> # fork a session
pi --no-session # ephemeral (no save)
pi -a / -na # trust / don't trust project-local files for this run
pi -p "Summarize this codebase" # print mode (non-interactive)
pi @README.md "Summarize this" # attach files/images with @
cat file | pi -p "..." # pipe stdin
pi --provider openai --model gpt-4o "..." # pick provider/model
pi --model sonnet:high "..." # model:thinkingLevel
pi --tools read,grep,find,ls -p "..." # allowlist tools (-xt to exclude)
pi --mode json "..." | jq -c 'select(.type=="message_end")' # JSON stream
pi --mode rpc # JSON-RPC over stdin/stdout
# In-editor: @file (fuzzy), !cmd (run+send), !!cmd (run, hidden), /command, Ctrl+L model, Shift+Tab thinking, Ctrl+X copy
# While the agent runs: Enter queues a steering msg, Alt+Enter a follow-up, Esc aborts + restores~/.pi/agent/.pi/settings.jsonauth.jsonmodels.jsonkeybindings.jsontrust.jsonAGENTS.mdSYSTEM.mdextensions/skills/prompts/themes/sessions/@earendil-works/pi-coding-agent--ignore-scriptsAGENTS.mdCLAUDE.mdrmsudoctx.ui.confirmtool_call.pi/~/.pi/agent/trust.jsondefaultProjectTrustaskalwaysnever--approve--no-approve~/.pi/agentisError: trueToolDefinitionpackages/coding-agent/src/core/extensions/types.tsDEFAULT_MAX_BYTES = 50 * 1024StringEnum@earendil-works/pi-ainamea-z 0-9 -descriptionchord.mdagent-harness.mdPLANNING.mdserverclientprotocol2c2cd63auth.json0600--api-keyauth.jsonmodels.jsonpi install -l.pi/settings.json