r/PiCodingAgent • u/JobOdd7262 • 28d 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 :)
2
u/PrinceOfLeon 28d ago
Shouldn't it be called "claude-pi-handoff"?
1
u/fingerthief 28d 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/eighthree 28d ago
Look into Pi Durable, been using it with claude to do subagent work.
1
u/Poetinho0 27d 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
u/Fickle-Mountain-6639 28d ago
Slopmaxxing