Personal configuration for Pi (1.5.2+) and Claude Code. Manages only config files and local extensions; credentials and session data are excluded.
Prerequisites: Pi / Claude Code, rsync (Pi installer), jq (Claude Code statusline), and a Nerd Font.
# Install / update managed configs (prompts on local conflicts and backs up existing files)
./install-rules.sh
./install-harness.sh pi
./install-harness.sh claude-code
# Install or update Pi and packages declared in settings.json
pi update --allTo restore a previous config, copy files from ~/.agent-config-backups/<timestamp>-<pid>/<group>/ back to ~/.
Default preferences:
- Pi: fullscreen TUI,
systemtheme, hidden thinking, condensed changelog,codemodeenabled, external editornvim;Fastdisabled by default. - Claude Code: fullscreen TUI,
autotheme,autopermission mode (skips the dangerous-mode prompt),higheffort, auto-compact context, notifications enabled, feedback drafts off.
rules/AGENTS.md defines cross-harness global rules (respond in Simplified Chinese, verify before asking, modular design, investigate to root cause). ./install-rules.sh syncs it to:
~/.agents/AGENTS.md
~/.claude/CLAUDE.md
~/.codex/AGENTS.md
~/.pi/agent/AGENTS.md
~/.grok/AGENTS.md
Shared skills are not bundled in this repository; install and update them under ~/.agents/skills/ with npx skills (run /reload in active Pi sessions):
npx skills list -g -a claude-code pi
npx skills add <repo> -g -a claude-code pi -y
npx skills update -gPi and Claude Code share CLI + Skill setups for desktop and browser automation (unmanaged here):
-
Desktop apps & native dialogs (cua-driver): Install the
cua-driverCLI inPATHand its companion skill per the official docs. On macOS, grant Accessibility and Screen Recording permissions, then verify withcua-driver doctor. -
Web pages & logged-in Chrome (playwright-cli): Install the CLI, shared skill, and Playwright Extension:
npm install -g @playwright/cli@latest npx skills add microsoft/playwright-cli --skill playwright-cli -g -a claude-code pi -y
Skip
playwright-cli install --skillssincenpx skillsalready manages the skill.openlaunches an isolated browser; useattachto reuse an open Chrome profile (select allowed tabs in the Chrome prompt;detachleaves Chrome running):playwright-cli attach --extension=chrome playwright-cli snapshot playwright-cli detach
session-ui provides a single-line statusline, tool activity panel, work animation, turn duration, automatic terminal title and session naming, and compact clipboard image paste with preview. Subscription quota in the statusline comes from pi-subscription-usage, and the last active model and effort are persisted by pi-last-model-effort.
| Action | Command / Keybinding |
|---|---|
| Thinking effort | /effort, /effort status |
| Toggle statusline | /statusline |
| Work animation | /work-animation on|off|status |
| Name session | /name |
| Select model | Ctrl+L or /model |
| Page up / down | Alt+K / Alt+J |
| Jump to top / bottom | Alt+, / Alt+. |
| Paste & preview image | Ctrl+V (macOS; move cursor onto [image #1] to preview) |
Config paths (run /reload after changes):
- harnesses/pi/plugin-configs/session-ui/config.json →
~/.pi/agent/extensions/session-ui/config.json - harnesses/pi/config/settings.json →
~/.pi/agent/settings.json - harnesses/pi/config/keybindings.json →
~/.pi/agent/keybindings.json ~/.pi/agent/state/session-ui.json(work animation toggle state)
| Provider | Enabled Models | Notes / Config |
|---|---|---|
claude-bridge |
claude-fable-5-2, claude-opus-5-5, claude-sonnet-5-5 |
Reuses claude auth login (Max); config.json → ~/.pi/agent/claude-bridge.json |
openai-codex |
gpt-6.2-astra, gpt-6.2-sol |
models.json → ~/.pi/agent/models.json (gpt-6.2-astra local context window set to 500K) |
xai |
grok-4.7 |
OAuth login |
antigravity |
gemini-4-neon, gemini-4-hydrogen, gemini-4-argon, claude-opus-5-5, claude-sonnet-5-5 |
@specode/pi-antigravity; native Pi OAuth and model discovery |
google |
gemini-4-carbon |
GEMINI_API_KEY environment variable; defined in models.json → ~/.pi/agent/models.json |
Select Carbon with /model google/gemini-4-carbon (/reload or restart after install). It bills via the Gemini API rather than Antigravity quota; models.json sets a 32,768-token output cap and introductory pricing (valid through 2026-11-30).
Fast priority routing: /fast [on|off|status].
- Config: harnesses/pi/plugin-configs/fast/config.json →
~/.pi/agent/extensions/fast.json - State:
~/.pi/agent/state/fast.json(saved per provider)
| Package | Purpose | Config / Requirements |
|---|---|---|
pi-fff |
File and code search (overrides find / grep) |
config.json → ~/.pi/agent/pi-fff.json |
pi-web-access |
Web search and fetching (openai → xai → kimi) |
config.json → ~/.pi/agent/web-search.json |
rpiv-ask-user-question |
Structured multiple-choice user questions | — |
pi-subscription-image |
Codex / Grok subscription image generation (reference edits via Codex) | — |
| pi-subagent | tmux subagents (/subagent or CLI subagent) |
Requires tmux and symlinking subagent.ts into PATH |
codemode is enabled by default for batching tool calls or filtering large outputs in scripts.
MCP is configured in ~/.pi/agent/mcp.json or project .pi/mcp.json (unmanaged):
/mcp # View status, log in, reconnect, or toggle servers in TUI
pi mcp list # List connections from CLI
pi mcp login <server> # Authenticate via OAuth from CLI
Enables gopls-lsp and swift-lsp by default (requires the corresponding language servers installed locally). Uses a single-line footer statusline matching Pi, showing model, effort, directory, branch, context, 5h/7d quota, and cache hit rate. Switch TUI mode with /tui fullscreen|default.
| Action | Keybinding |
|---|---|
| Select model | Ctrl+L |
| Page up / down | Alt+K / Alt+J |
| Half-page up / down | Alt+U / Alt+D |
| Jump to top / bottom | Alt+, / Alt+. |
Config paths:
- harnesses/claude-code/settings.json →
~/.claude/settings.json - harnesses/claude-code/keybindings.json →
~/.claude/keybindings.json - harnesses/claude-code/statusline-command.sh →
~/.claude/statusline-command.sh