Pi is a free, MIT-licensed terminal agent with 4 tools and a sub-1,000-token prompt. Here's how it compares to Claude Code, and who should actually switch.
Vamsi Tallapudi
Manager, Architect Technology at Cognizant
Pi is a free, MIT-licensed terminal coding agent built around four tools (read, write, edit, bash) and a system prompt that fits under 1,000 tokens. Claude Code is Anthropic's commercial agent, shipped inside a Claude subscription, with dozens of built-in tools, sub-agents, and a release cadence that's hard to keep up with. The honest answer on switching: most people should stay on Claude Code, but a specific type of developer, the one who wants full control over their agent's behavior, has good reasons to try Pi.
This comparison blew up on Hacker News on November 8, after a developer named Caleb posted Goodbye Claude, Hello Pi. He counted 244 Claude Code releases in a single year, with more than three-quarters of them touching the system prompt or a tool description. His argument wasn't that Claude Code is bad software. It's that the ground keeps moving under you, and that's a real problem if your workflow depends on predictable agent behavior.
Pi started as a side project from Mario Zechner, the Austrian developer who built libGDX, a widely used Java game framework. He got frustrated watching Claude Code and Cursor pile on features while, in his view, losing predictability and observability session over session. So he built the opposite: an agent with no hidden magic, four core tools, and a system prompt small enough that you could read the whole thing in under a minute.
In April 2026, Zechner joined Earendil, a company founded by Armin Ronacher and Colin Daymond Hanna, and brought Pi with him. The code moved to github.com/earendil-works/pi and the project kept its MIT license. Pi hit its 1.0 release on October 1, 2026, alongside an experimental companion called Pi Durable for agents that need to survive crashes and restarts. If you installed Pi early through the old @mariozechner/pi-coding-agent npm package, that one's deprecated now and gets no further updates. You want @earendil-works/pi-coding-agent.
Here's the part that actually matters for day-to-day use: Pi runs through more than 30 model providers, including Anthropic, OpenAI, Gemini, DeepSeek, Bedrock, and local models. You're not locked into one vendor's pricing or rate limits. There's also a package called pi-claude-code-provider that lets Pi route through your existing Claude subscription, though its author has already mothballed it in favor of a newer bridge, which tells you something about how fast this ecosystem is still moving.
| Pi | Claude Code | |
|---|---|---|
| License / cost | MIT, free, you pay only for the model | Included in Claude Pro ($17-20/mo), Max ($100-200/mo), or Team plans |
| Built-in tools | 4 (read, write, edit, bash) | Dozens, including sub-agents, plan mode, web fetch |
| System prompt | Under 1,000 tokens | Thousands of tokens; Caleb measured the bash tool description alone at close to 3,000 tokens |
| Model support | 30+ providers, swap any time | Claude models only |
| MCP support | Added in v0.99.0 via a "Codemode" pattern that writes JS instead of loading schemas | Native, loaded upfront per server |
| Release pace | Deliberately slow, extension-based customization | 244 releases in roughly a year, per Caleb's count |
| Interface | Terminal only (web UI in progress) | Terminal, desktop app, IDE extensions |
That MCP row is worth a second look because Zechner spent over a year publicly mocking the protocol before reversing course. His complaint wasn't wrong, either: a popular Playwright MCP server was dumping 21 tool definitions and roughly 13,700 tokens into context on every session, whether you used them or not. Pi's fix was to let the model write code that discovers and calls MCP tools on demand, so you're not paying that tax up front. It's a cleaner idea than flatly refusing to support MCP, and the fact that he eventually built it rather than doubling down says something about how Pi actually evolves, slowly, and only when the team is convinced it's worth the added surface area.
It's genuinely competitive, not just stripped-down for the sake of it. Pi placed second on the Terminal-Bench leaderboard (running on Claude Opus 4.5), trailing only Terminus across 82 terminal tasks, and it did that without sub-agents, a to-do manager, or background bash execution. That's the strongest argument for the "less is more" thesis: a small, well-tuned tool set with a tight system prompt can hold up against agents stuffed with features.
I spent a weekend running Pi against Claude Code on a mid-size TypeScript repo, mostly refactor-and-test work. Pi felt faster to reason about because I could see exactly which four tools it had access to and why it chose one over another. Claude Code did more without being asked (it'll quietly spin up sub-agents, check things I didn't request), which is sometimes great and sometimes exactly the unpredictability Caleb was complaining about. Neither felt objectively "smarter." The agent intelligence mostly comes from the model underneath, not the harness.
Switch if you:
Stay on Claude Code if you:
Honestly, "should you switch" is the wrong frame for a lot of readers. Pi and Claude Code aren't really fighting for the same job. Claude Code is a packaged product you buy into. Pi is a kit you build your workflow out of. If the idea of configuring your own agent sounds like a chore rather than fun, you already have your answer, and it's not Pi.
Yes, through the pi-claude-code-provider package, which spawns your local claude executable in non-interactive mode so you can use your existing subscription inside Pi's interface. The catch: that specific package is already mothballed after its 0.6.0 release because both projects change too fast to keep a bridge stable, and the author now points people toward a newer pi-claude-bridge instead. If you're coming from our earlier look at Claude Code's usage limits and real-world cost, know that routing through Pi doesn't change what Anthropic charges you. It just changes the interface sitting on top of it.
If you want a deeper architectural comparison, including how JetBrains' ThinkRail fits into this same minimal-vs-maximal debate, we covered that in JetBrains ThinkRail vs Pi vs Claude Code. And if Claude Code's release velocity is part of what's bugging you, our take on whether Claude Code Review GA is actually worth it covers the same "feature creep vs stability" tension from a different angle.
New AI tools, automation workflows, and course drops — straight to your inbox. Join 2,400+ builders.
fast-anything profiles your Python or Node app, has Claude Code port the slowest function to Rust, and verifies it against 500 real calls before swapping it in.
Ternary Bonsai 2.5 27B packs a 27B coding model into a 5.9 GB download. Here's how to run it locally, what hardware you need, and where the benchmarks don't hold up.
Ladybird's first public alpha (build 2026.47.7) is live for macOS and Linux. Here's how to install it and test your site in its from-scratch engine.
Comments