Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

131 Commits

Folders and files

Repository files navigation

Agent Config

English | 简体中文

Personal configuration for Pi (1.5.2+) and Claude Code. Manages only config files and local extensions; credentials and session data are excluded.

Quick Start

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 --all

To restore a previous config, copy files from ~/.agent-config-backups/<timestamp>-<pid>/<group>/ back to ~/.

Default preferences:

  • Pi: fullscreen TUI, system theme, hidden thinking, condensed changelog, codemode enabled, external editor nvim; Fast disabled by default.
  • Claude Code: fullscreen TUI, auto theme, auto permission mode (skips the dangerous-mode prompt), high effort, auto-compact context, notifications enabled, feedback drafts off.

Usage

Shared Rules & Skills

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 -g

Computer Use

Pi and Claude Code share CLI + Skill setups for desktop and browser automation (unmanaged here):

  • Desktop apps & native dialogs (cua-driver): Install the cua-driver CLI in PATH and its companion skill per the official docs. On macOS, grant Accessibility and Screen Recording permissions, then verify with cua-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 --skills since npx skills already manages the skill. open launches an isolated browser; use attach to reuse an open Chrome profile (select allowed tabs in the Chrome prompt; detach leaves Chrome running):

    playwright-cli attach --extension=chrome
    playwright-cli snapshot
    playwright-cli detach

Pi

UI & Keybindings

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):

Models & Fast

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].

Search & Extension Tools

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 & MCP

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

Claude Code

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:

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages