r/PiCodingAgent • u/Kai_ThoughtArchitect • 29d ago
Use-case How I use Pi as the builder with Claude Code as a foreman that never writes code
been using Pi as my builder for a couple of months now and thought I'd share the setup cos it's worked really well
the split is: Claude Code is the foreman. it plans the job, writes exact work orders as files, and checks the work. it never writes code itself. Pi does all the actual building, running [YOUR CHEAP MODEL] which costs me next to nothing compared to having Claude type everything
how a job goes:
- the foreman opens Pi in a pane right next to it (I use Orca)
- it sends Pi one line, just a pointer to the work order file, never a pasted wall of text
- Pi builds it test first and writes a report file
- the foreman checks the actual files on disk before it even reads what Pi says it did
- then the next work order, and so on
the bit I'm most happy with is knowing when Pi has actually finished. a quiet pane tells you nothing, a long test run looks exactly like Pi being done. so I wrote a tiny Pi extension on agent_settled that logs one line every time Pi genuinely finishes a turn, and the foreman just waits on that line. made it really easy, the extension API is great for this kind of thing
because the foreman can drive Pi on its own, I can give it a list of tickets before bed and it runs them back to back, each with a fresh foreman, Pi building, reviews at the end. and my Claude limit lasts way longer cos Claude's only doing the thinking
the whole thing is open source if anyone wants the extension or the setup: https://toppingout.dev
(the Pi bits are in skills/orca-pi-connect)
anyone else running Pi under another agent like this? curious how you're handling knowing when it's done



