npx claudepluginhub fazalaali/pi-agent-for-claudepi agent for claude: a `pi` subagent type whose model steps run the pi CLI, so pi subagents and agent-team teammates live in Claude Code's own agent UI, streamed live.
https://github.com/user-attachments/assets/0bd4f5e4-c2d5-4e49-a882-30bf01357248
Run pi as a native Claude Code subagent: it shows in the agent list, streams live, takes follow-ups, and opens in a tmux pane as a teammate, while the model behind it is anything pi can reach.
> Have pi run with model kimi k2 and summarize this repo.
⏺ pi-agent-for-claude:pi(Summarize repo)
⎿ ▸ bash: {"command":"ls -la && git log --oneline -10"}
▸ bash: {"command":"cat package.json"}
This repo is an Expo/React Native calling app with a Go admin service...
— answered by pi, openrouter/moonshotai/kimi-k2
Experimental: built on Claude Code's early-access function hooks and some undocumented engine behaviour, so Claude Code updates may break it.
Add to ~/.claude/settings.json (shell variables alone don't reach teammate
panes):
{
"env": {
"CLAUDE_CODE_ENABLE_FUNCTION_HOOKS": "1",
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
},
"teammateMode": "tmux"
}
Install from a Claude Code session, then restart (inside tmux for teammate panes):
/plugin marketplace add FazalAAli/pi-agent-for-claude
/plugin install pi-agent-for-claude@pi-agent-for-claude
To develop it, load a clone from disk instead:
claude --plugin-dir /path/to/pi-agent-for-claude.
Ask Claude for pi in plain language; it picks the pi-agent-for-claude:pi
agent type.
pi-model: <pattern> line, passed to pi --model; otherwise pi uses its
default. pi --list-models <search> lists models.Answers end with — answered by pi, <provider/model>, read from pi's own
events. Trust it over what the model says about itself.
pi runs its own read/bash/edit/write tools, outside Claude Code's permission prompts, tool policy and safety classifier. A pi agent can change files without asking. Restrict pi in its own config if that matters.
Claude Code starts a real subagent; the plugin replaces only its model
requests (turn.step) with a detached pi --mode json run, streaming pi's
text, thinking and tool calls. Hook calls get 10 s, so long runs span steps
chained through a no-op pi_progress tool. pi's final answer goes back as
text, SubagentHandback, or SendMessage for teammates, with pi's real
token usage.
— answered by pi line,
but check yourself. For teammates, the variable must be in settings env.~/.claude/projects/, exact engine message
text, and ps to detect teammates.pi_progress calls appear in the transcript about every 7 s on long
runs.claude --debug and search the log for
pi-agent-for-claude and hook failed../smoke.sh runs an end-to-end check against real pi (costs a few cents).
claude plugin validate . checks the manifest and hooks module.
MIT. See LICENSE.
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.