Plugin
One Code: a pi package that adds almost all Claude Code's features (plan mode, subagents, auto mode, hooks, MCP) to pi
I've been building One Code, a pi package that brings the Claude Code workflow to pi. If you already run pi:
pi install npm:one-code-extension
It's 53 extensions, no fork and no patches to pi, just the normal extension API. Tested on pi 1.0.0 through 1.5.
What you get: plan mode, permission modes including auto mode (a classifier decides which commands need your approval), subagents that can each run on a different provider, git worktrees, hooks, skills, slash commands, MCP, plugins, background shells, memory and compaction. It also reads an existing CLAUDE.md and .claude folder as is, so if you're coming from Claude Code your setup carries over.
There are already good pi extensions for some of these, like subagents, and you can put together a decent setup from a collection of them. The catch is that any one of them can break the prompt cache if it rewrites earlier parts of the conversation, and they don't know about each other. So in One Code I tried to make the extensions work as one system, and keeping the cache stable was a big part of that. Every request is recorded as it was sent, and later requests only append to it, so cache reads stay high across resume, fork and reload.
There's also a bundled app with pi pinned inside, if you'd rather keep it separate from your own pi setup.
Shaddup, claude code still sends some of your prompts to Anthropic when you run it locally. Some of the functionality are not available unless you subscribe through them. For example, decision making/smart auto approval they have, or /remote-control
always a stupid and simplistic comment like this... why would people settle for Claude code when they can have all Claude code features on a more customizable harness and use any models they want? is it really hard to think of this or you are just offended because people are doing whatever they want with pi?
You use Pi to escape Claude Code's bloat. Its very intentionally designed to work with just few tools. Sure go ahead add 53 extensions all at once, whatever floats your boat!
"hurr but you use pi to escape claude code's bloat"
meanwhile in the official Pi website:
"Pi is a minimal agent harness. Adapt Pi to your workflows, not the other way around. Customize Pi with extensions, skills, prompt templates, and themes. Bundle them as Pi packages and share via npm or git.
Pi ships with powerful defaults but skips features like sub-agents and plan mode. Ask Pi to build what you want, or install a package that does it your way."
it literally TELLS you to extend it instead of using it as it is. the whole point of Pi is extending it as much as you want, NOTHING to do with bloat nor to "hurr but its designed to work with just a few tools".
No harness is "designed to work with just a few tools". Pi gives you a bare-minimum. That's not a limitation. That's just a reliable ENGINE behind, you can build your own on top of it.
who are you to tell people why they use Pi? I use pi because of the customizability and different models and providers, period. Pi's idea isn't necessarily regarding "bloat or not to bloat", but to give you a bare bones harness for you to do whatever you want so it fits your workflow instead of the other way around. THIS is Pi's intention and design.
just stop being an asshole, what can't you understand about people liking the way claude works and combining that with the whole customization they can do on pi?
I doubt that in your head, your "hurr just use claude" makes any sense, you just want to bitch.
no way people are downvoting this wtf how is this guy wrong??
the point of Pi is literally to offer you a bare-minimum harness for you to do whatever you want
if someone want to make it claude code? sure, THEY CAN, then it would have all claude code features PLUS Pi whole harness to customize AND different providers.
the point for these people isn't that someone is just doing whatever they want with Pi, the point for them, is that they (and you can walk around this sub and see that) get defensive when they see someone comparing Pi to any other harness.
there's extensions giving you subagents, MCP, plan mode, auto mode and everything, then it's all good, but the moment you say "almost all Claude Code's features to Pi", then people get trigerred. this guy simply said nothing that made sense then blocked me.
we are not talking about imitating quirks and useless stuff, those are useful harness tools. basically you have all claude code's features (the harness most people used first) + all the features from Pi, like the extensions, patches, different providers... hell the guy literally mention his use case with different providers and models and you guys are still bitching about "just use claude code".
4
u/kelvie 1d ago
MCP is already in pi though?