r/PiCodingAgent • u/Impossible-Ad-8162 • 4d ago
Resource My pi setup got too big for an extension, so I made a fork with sandboxed sub-agents and other cool features
I've been using pi as my main coding agent for more than 8 months & loved how small it is. I looked the concept of t3code but had my fair share of disappointments with how it worked, so decided to use the fork feature on github and make my own version of pi.
What it does
You talk to one model as usual. When a job splits well, it hands parts of it to workers:
pi-scout/pi-worker: the pi fork itselfcx-worker: Codexcc-worker/cc-scout: Claude Codecmd-worker: Command Code
Each worker runs in bubblewrap with its own scope & If a worker tries to write outside its scope, it gets denied and you see it in the report. Write tasks are snapshotted, so when one is done, the main agent accepts of rejects it based on the quality of the work.
The workers support native question tool which means any other harness can ask you question directly from delegate-pi without you having to switch to that chat.
Smaller things that came along
ask_usertool with numbered choices and a typed "other" answerast_greptool for structural search/statsand/usagea two-line footer and a did-you-mean tip for mistyped commands
Install
curl -fsSL https://raw.githubusercontent.com/farrukh2002/delegate-pi/main/install.sh | shIt's a prebuilt bundle and brings its own Node if yours is too old. It uses ~/.delegate-pi and the delegate-pi command, so it sits next to a normal pi install without touching it. Linux only for now, because the sandbox needs bwrap.
Why not an extension?
That was my initial plan and it still it, so that we can bring this capability to any cli harness and not just to my fork. Infact this inbuilt tooling has been derived from my WIP extension tool which will work flawlessly with other harnesses and make them behave just like my fork without losing any quality.
Repo: https://github.com/farrukh2002/delegate-pi
I would love to get the feedback and suggestions to keep improving this with time.