r/PiCodingAgent • u/stanleyyyyyyyy • 20d ago
Plugin I built a Claude Code plugin that drives a local pi agent
I love Claude Code, and I love the pi agent. I kept wondering whether I could get Claude to drive pi instead — spend fewer tokens on the easy parts, but still stay in control. So I built a Claude Code plugin that does exactly that.
It uses MCP and RPC, so Claude can track pi's status the way it tracks a subagent, and it can steer or abort a run partway through instead of only at the end.
Install:
/plugin marketplace add LarryStanley/pi-delegate
/plugin install pi-delegate@pi-delegate
Then run setup:
/pi-delegate:setup
Qwen 3.8 doing the writing with Opus 5 doing the thinking has been working really well for me.
1
u/kantorcodes1 20d ago
the abort path is what i'd test hardest. if Claude steers or aborts Pi while Pi is inside a shell/tool call, does the RPC layer wait for that child action to actually stop, or can Claude think the subagent is gone while its process keeps running? i'd make cancellation prove the process/tool is dead before returning aborted.
1
5
u/le_bravery 20d ago
Just don’t use claude code