← All articles

The AI agent arms race: why Pi might not be the king

In the rapidly evolving landscape of autonomous engineering, a new definition of "power" is emerging. For a long time, the industry focused on agents that could act. Now, with the arrival of tools like Claude Code, the focus has shifted to agents that can think and execute within the terminal loop.

But as we move from simple code completion to complex multi-agent orchestration, a provocative question arises: Is the rise of high-autonomy agents like Claude Code a threat to the "minimalist harness" approach of Pi, or does it validate it?

The Claude Code Factor: High-Autonomy Disruption

Claude Code brings a specialized, agentic loop directly into the CLI. It features high-fidelity terminal interaction, the ability to self-correct through test failures, and a deep "search-edit-test" cycle. It feels like an engineer sitting next to you, rather than a tool you are commanding.

Unlike the pi architecture, which emphasizes a mesh of coordinated workers via pi-messenger, Claude Code leans heavily into the single-agent, high-autonomy loop. It aims to reduce the "human-in-the-loop" friction by making the agent smart enough to handle the messy middle steps of debugging.

The Architecture: Orchestration vs. Autonomy

The core of the Pi ecosystem is built on the idea of a minimal terminal harness. By default, Pi gives the model a small, understandable set of tools—read, write, edit, bash, grep, find, and ls—and keeps the surrounding workflow explicit. It does not try to hide engineering behind a magical black box; it makes the terminal, the tool calls, and the session history part of the product.

This is where the mesh idea becomes interesting. Pi's core stays lean, while capabilities such as crew-style planning, multi-agent coordination, permission gates, provider routing, custom commands, and specialized tools can be added through extensions, skills, prompt templates, and Pi packages. In other words, Pi does not need to ship every workflow as a first-class feature. It gives teams the primitives to build the workflow they actually want.

This follows the GitOps KISS principle. By focusing on terminal-based interaction and structured messaging, Pi minimizes the "context drift" that often plagues larger, more autonomous agents like Claude Code or Hermes.

Agent Orchestration

Where Pi Stands Out

Pi's strongest advantage is not that it is the most autonomous agent out of the box. Its advantage is that it is composable. It can behave like a simple terminal assistant, a private local-model interface, a team-governed coding environment, or the foundation for a custom agent platform.

  • Bring-your-own-model flexibility: Pi supports many hosted providers and can also be pointed at custom OpenAI-, Anthropic-, or Google-compatible endpoints. That makes it practical for teams experimenting with local Ollama models, internal gateways, or provider-specific routing.
  • Workflow customization without forking: Extensions can register tools, slash commands, keyboard shortcuts, model providers, custom UI, permission checks, session hooks, and even replacement editors. This lets a platform team encode its own rules instead of waiting for upstream features.
  • Progressive context through skills: Skills keep the global prompt small while giving the agent task-specific playbooks when needed—Kubernetes operations, incident response, release review, Terraform workflows, or internal runbooks.
  • Session control and auditability: Pi stores sessions, supports resume, fork, clone, tree navigation, and compaction. For serious engineering work, the ability to inspect, branch, and preserve the reasoning trail is often more valuable than a slick one-shot answer.
  • Terminal-native ergonomics: File references, path completion, shell integration, model switching, scoped model cycling, and thinking-level controls are available where engineers already work: the CLI.
  • Shareable building blocks: Pi packages let teams distribute extensions, skills, prompts, and themes through npm, git, or local paths. This makes Pi less like a single product and more like an agent operating system for the terminal.

This makes Pi especially compelling for infrastructure work. Platform engineering is rarely a single clean task. It involves secrets, deployment order, CI state, cloud permissions, cluster context, rollback plans, and team conventions. A minimal harness that can be adapted to those constraints may outperform a more autonomous agent that assumes one generic workflow.

Who Should Choose Pi?

Pi is not for everyone, and that is part of its identity. It is best suited for people and teams that want control over the agent environment rather than a pre-packaged experience.

  • Platform, DevOps, and SRE teams should consider Pi when they need agents to follow internal runbooks, work inside constrained terminals, respect security boundaries, or integrate with existing CLI-heavy workflows.
  • Engineering teams with private infrastructure should choose Pi when model choice matters—cloud model today, local Ollama model tomorrow, corporate gateway next quarter—without redesigning the whole workflow.
  • Tool builders and agent researchers should choose Pi when they want a programmable harness for testing new tools, custom UIs, session flows, model routing, compaction strategies, or sub-agent experiments.
  • Developers who value transparency should choose Pi when they want to see the tool calls, preserve sessions, branch conversations, and keep the agent close to the Unix philosophy of small composable parts.

By contrast, teams that want a polished, highly opinionated, single-agent experience with most decisions made for them may prefer Claude Code or a similar product. Pi asks more from the user, but it gives more back to the team that is willing to shape it.

The Challengers: Hermes and OpenClaw

While Claude Code dominates the high-autonomy loop, other players are exploring different corners of the spectrum:

Hermes: The Context Specialist

Hermes approaches the problem from a situational awareness angle. While Claude Code focuses on the execution loop, Hermes attempts to proactively navigate the environment—understanding the "why" behind the architecture. It is the bridge between simple automation and true environmental awareness.

OpenClaw: The Brute Force Integrator

OpenClaw represents the aggressive, "tool-user" paradigm. It is designed for the heavy lifting of software engineering—running tests, analyzing logs, and iteratively fixing broken CI/CD pipelines. It is the "hands-on" specialist that thrives in the messy reality of infrastructure maintenance.

The Challenge: Prove the Harness is Insured

The beauty of Pi lies in its ability to be extended. Because of the pi-messenger SDK, Pi is only as "good" as the skills we give it. Many argue that this makes it "undecidable"—you cannot say Pi is bad if the limitation is actually your poorly written skill definition.

I challenge the community: Find a task involving complex, multi-step infrastructure changes—perhaps involving a Kubernetes deployment with ArgoCD—and show us a scenario where the lightweight, messaging-based approach of Pi fails, but the high-autonomy loop of Claude Code or the specialized tools of OpenClaw succeeds.

Can an agent that is "just a harness" truly compete with agents that aim to be "the engineer"? Or is the future not in the agent itself, but in the orchestration layer that connects them all?

Conclusion

Whether it is the high-autonomy of Claude Code, the specialized tools of OpenClaw, or the extensible mesh of Pi, the terminal is no longer just a command line—it is a communication layer. Pi stands out because it treats that layer as something teams can own, extend, and govern. It may not be the most magical agent on first launch, but for engineers who care about control, composability, local model options, and workflow fit, that might be exactly the point.

The battle for the future of software engineering has only just begun, and the winner may not be a single agent at all. It may be the harness that lets us connect the right model, the right tool, and the right human decision at the right moment.