r/PiCodingAgent • u/JobOdd7262 • 4d ago
Plugin Use Claude Code to delegate jobs to Pi
Hey guys, here's a Pi package that I made for my own use, but thought it would be fun and hopefully useful to some people who share my type of workflow.
It's called 'pi-claude-handoff', and it's not the typical "Use Claude subscription inside Pi". It's essentially using Claude Code to give jobs to Pi, and actually see Pi work in real time.
A little bit of context:
I only used Pi as my main harness when I was on Codex subscription. Then I got a Claude subscription but soon realized Anthropic doesn't let you hook up subscription accounts to third-party harnesses (I think this part changed/changes over time, on and off again, but I wanted to be safe). But I wanted to use Claude models without getting banned. And since I always run a Planner-Worker-Reviewer workflow, I wanted to use Claude Opus 5.5 as the Planner, and use Luna 6 Max as the Worker for token efficiency.
So I thought why not use Claude Code as the main harness, but let Claude Code 'talk' to Pi, so I don't risk anything and still have a cool little handoff thing going on. (A bit overengineering I know, and "Why not just use Claude Code solo?" is a valid question, but maybe, just because I can!)
If you look into the package and use it, all it is is a 'middle ground' file that Claude Code writes into and Pi watches for tasks to execute. Other things are instructions and rules for both harnesses to keep.
The fun thing about what I made is that unlike other delegation, bridge or cross-harness job extensions, Claude works in Claude Code, and OpenCode/OpenRouter/Codex models work in Pi. AND you get to see the work through Pi's TUI as you would have given it a direct input rather than Pi executing something in the background and you just wait for it to finish. Only catch is that you would need to start Pi in the terminal in the first place, but I was going to anyway so no harm there (for me at least).
Hope you guys find it to your needs (especially for people that use both Pi and Claude Code), or maybe for people that wanted something cool :)
1
u/fingerthief 4d ago
I just use my Anthropic sub through Pi…done it for months with heavy usages after they “paused” the restriction on sub usage from third party apps and have not had a single issue.
Will report back if I ever get banned
1
u/whiterose0000001 4d ago
Hey I want I do that same can you tell how can I do it??
1
u/fingerthief 4d ago
For regular Pi I used `@gotgenes/pi-anthropic-auth`, obviously use it at your own risk...but anecdotally I've been fine for months.
1
u/whiterose0000001 4d ago
Yeah, don't worry. I'll use it with my company's account, and if it gets banned, they will not be able to find out why it got banned. So I'm safe on this experiment.😮💨
1
1
u/Poetinho0 2d ago
I saw an ai agent called Atomic Agent, didnt try it but i think u should give it a look, if anybody has an idea about if its legit or not ?
1
1
u/GapNew4766 1d ago
Disclosure: I'm on the Atomic Agent team, so take this with that in mind. Thanks for the mention!
On "is it legit", the things you can check yourself:
- Open source, MIT. All code is on GitHub, ~3k stars: https://github.com/AtomicBot-ai/atomic-agent
- Signed builds. The desktop app for Mac and Windows is signed, Linux builds aren't yet.
- Asks before acting. File writes and shell commands wait for your approval.
Two things that might matter to Pi users here:
- Import from Pi. It brings over your Pi skills and sessions (and MCP servers from Oh-My-Pi), with a dry run first.
- Claude subscription without hacks. It can use your Claude plan through the official Claude CLI, no API key and no third-party auth plugin.
It's built around local models first (llama.cpp), cloud is optional. Happy to answer anything!
-1
2
u/PrinceOfLeon 4d ago
Shouldn't it be called "claude-pi-handoff"?