Back to News & Insights
Artificial Intelligence August 11, 2026 · 13 min read

Pi Agent vs Claude Code After 100 Hours of Real Use 🔥

While researching for this post, I found out something funny. Pi, the most interesting coding agent...

Pi Agent vs Claude Code After 100 Hours of Real Use 🔥

While researching for this post, I found out something funny. Pi, the most interesting coding agent of 2026, was built by a guy who got fed up with Claude Code. 🥶

Mario Zechner, the creator of libGDX, was a hardcore Claude Code user. He built cchistory just to track its system prompt changes, and even patched the binary to add features Anthropic had not shipped.

Then he quit and wrote his own agent. Four tools, a tiny system prompt, no MCP, no permissions. He named it Pi so nobody could Google it. What a Chad! 🗿

That small project now has 85k+ GitHub stars, powers OpenClaw, and outscored Claude Code on our own tool use benchmark at a fifth of the cost.

So I put the two side by side. The default everyone uses, against the minimal harness built as a rejection of it.

| Category | Claude Code | Pi | Winner | | --- | --- | --- | --- | | Tool price | Needs a paid plan or API key | Free, MIT licensed | Pi | | Real tool use (our eval) | 16/30 tasks passed, $0.195 per success | 20/30 tasks passed, $0.028 per success | Pi | | Predictable billing | $20/month flat on Pro | Pay per token, bills can spike | Claude Code | | Model support | Claude models only but it’s built for it | 20+ providers, 300+ models, mid session switching | Pi | | Out of the box features | Sub agents, teams, plan mode, MCP, skills, checkpoints | Four tools and a text box | Claude Code | | Context discipline | Auto compaction, silent context management | You see and control every token | Pi | | Extensibility depth | Shell hooks, MCP, skills, plugins | TypeScript extensions running inside the agent process | Pi | | Multi agent workflows | Native sub agents and Agent Teams | Spawn pi via bash, or install a community extension | Claude Code | | Permissions and guardrails | Deny by default, five modes, sandboxing | Full system access from the first prompt | Claude Code | | Surfaces | Terminal, VS Code, JetBrains, desktop, web, mobile, Slack | Terminal | Claude Code | | Session model | Linear conversation log | Branchable session trees with fork and rewind | Pi |

Pi is the cheaper, more flexible, and more transparent harness, especially if you pay per token, switch models, or want full control. Claude Code remains the better daily driver for most people because it ships with stronger guardrails, predictable subscription pricing, and a polished feature set out of the box. The practical answer is to use Claude Code for everyday work and Pi for custom workflows, local models, and cost-sensitive tasks.

And here is the twist. The scorecard says Pi, but almost everyone who reviews both, including the biggest Pi fans, still runs Claude Code as their daily driver. I will explain why is that in a minute.

ℹ️ A minimal, open source terminal coding agent that ships four tools and expects you to build the rest yourself. Pi is the coding agent Mario Zechner released in late 2025, now maintained under Earendil. Zechner joined Earendil in April 2026 in a blog post he titled "I've sold out," and the core stayed MIT licensed.

The whole product fits in literally one sentence. The model gets read, write, edit, and bash, a system prompt of a few hundred tokens, and nothing else.

His reasoning: frontier models have been RL trained so hard on coding agent behavior that they already know what a coding agent is. You do not need 10,000 tokens of instructions to remind them. Need ripgrep? The model runs rg through bash. Need GitHub? It runs gh. Need a browser? Ask Pi to write itself a browser tool.

💁 If you're on the same philosophy, this might be worth reading: Top 10 CLI Tools to Level-Up Claude Code. No MCPs, nothing. Plain raw Bash tools gets most of the work done. That last part is the actual product. Pi extensions are TypeScript files that run inside the same process as the agent loop, and Pi can read its own source and docs, so the standard workflow when you need a missing feature is to ask Pi to build it.

Everything Zechner refused to ship, the community shipped as extensions within weeks. Todo lists, plan mode, sub agents, permission gates, even an MCP adapter.

ℹ️ Anthropic's batteries included coding agent, and the default the entire agent category gets measured against You know this one. Claude Code started as Boris Cherny's internal AppleScript toy at Anthropic in September 2024, hit research preview in February 2025, and became the fastest scaling developer product anyone has ever measured.

It ships everything: 10+ built in tools, sub agents, Agent Teams, plan mode, MCP as both client and server, Agent Skills, plugins, hooks, checkpoints with rewind, a permission system with five modes, and it runs in the terminal, VS Code, JetBrains, a desktop app, the browser, and your phone.

More than 80% of Anthropic's own engineers use it daily, and around "90% of Claude Code's code is now written by Claude Code". 🥴 Philosophy: Pi vs Claude Code

This comparison only makes sense once you understand that Pi exists because of Claude Code.

Zechner was an early Claude Code user. His complaint was never that it was bad. His complaint was that it kept changing underneath him. The system prompt and tool definitions shifted on every release, which broke his workflows and changed model behavior.

Want to discuss this further?

Book a free strategy call with our team to see how these insights apply to your specific business goals.

Book a consultation