What is pi-agent-for-claude?
pi-agent-for-claude is a Claude Code mod by FazalAAli that pi 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. It is listed under Agents & automation and has 23 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | FazalAAli |
| Repository | FazalAAli/pi-agent-for-claude |
| Popularity | 23 GitHub stars |
| Category | Agents & automation |
| Security | Low risk (84/100) |
| Rank | #295 of 5,272 Claude Code mods; #30 in Agents & automation |
| License | MIT |
| Last commit | 2026-09-18 |
| Hooks | 4 events |
| Sees | every tool call, subagent spawns |
| Draws on | nothing |
Is pi-agent-for-claude safe to install?
pi-agent-for-claude scores 84/100 on the MCPMods security check: Low risk. Things to review: starts processes outside the sandbox. It passed 6 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.clock.sleep | |
$.process.run | runs processes |
$.session.cwd | |
$.session.messages | reads the transcript |
$.tool.register | drives Claude |
How do I install pi-agent-for-claude?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/FazalAAli/pi-agent-for-claude claude plugin validate ./pi-agent-for-claude/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add FazalAAli/pi-agent-for-claude && claude plugin install pi-agent-for-claude@pi-agent-for-claude
Or ask Claude to set it up
Paste this into Claude Code and it installs pi-agent-for-claude for you:
Install the "pi-agent-for-claude" Claude Code mod from https://github.com/FazalAAli/pi-agent-for-claude. Run claude plugin validate on it first and show me what it can access before you enable it.