# This 100% minimal AI Agent can do anything… just watch <!-- ref: @content/youtube/david-ondrej/2026-04-06-pi-agent-minimal-four-tool-harness version: 3 updated_at: 2026-10-31T19:13:06.414Z --> David Ondrej (2026-04-06): David Ondrej's argument is that Pi is the most underrated agent in the ecosystem precisely because it refuses to do anything for you. *Synthesized from David Ondrej on David Ondrej, 2026-04-06.* David Ondrej reviews AI agent tooling hands-on and teaches AI-assisted software building; here he walks through Pi, the minimal agent harness founded by Mario Zechner. ## Core Thesis David Ondrej's argument is that Pi is the most underrated agent in the ecosystem precisely because it refuses to do anything for you. It ships four tools — read, write, edit, bash — and a system prompt under 1,000 tokens, which he contrasts with Hermes Agent's roughly 12,000-token default and Open Claw's 12,000-to-16,000 tokens sent on every single message. That minimalism is not austerity for its own sake: because nothing is hidden behind an abstraction layer, Pi can rewrite its own interface, tools, and system prompt, so the operator ends up with an agent shaped to their work instead of inheriting someone else's product opinions. ## Key Insights - Open Claw, the most widely used agent, is itself built on Pi — most people running the popular product have never heard of the harness underneath it. - The four tools cover the entire surface. Read makes the agent non-blind (logs, configs, any text file); write creates files; edit changes specific lines rather than refactoring a whole file (fix line 42 and touch only the lines around it); bash covers everything else — installing packages, running tests, starting servers, checking git. - Pi runs permanently in what Ondrej calls yolo mode: no permission prompts, no checks, no guardrails. He relays Mario Zechner's reasoning — an agent that can write and execute code cannot be meaningfully constrained by a confirmation dialog — and is explicit that this makes Pi unsuitable for beginners. - Pi is also a toolkit, which is why so many projects build on it. It ships four pieces: pi-ui (terminal UI library with markdown display, multi-line editor, spinners, and flicker-free screen updates that Ondrej notes Claude Code still lacks), the Pi coding agent, pi agent core (the loop — call the LLM, execute tools, feed results back, repeat, with no opinion about which tools), and pi-ai (one unified interface across Anthropic, OpenAI, Google and others). - Adoption among heavy users is the social proof Ondrej leans on: Tobi Lütke uses Pi as his main coding and personal agent and credits it with making Shopify 53% faster overnight; Marc Andreessen called it a top-ten software breakthrough. - Self-modification is the capability no competitor offers. Ondrej changed Pi's entire terminal theme in one prompt, then added a system-monitor extension showing live CPU, RAM, GPU load, temperature and disk — and points out that Anthropic decides what Claude Code looks like and OpenAI decides what Codex looks like, full stop. Themes and extensions live in dedicated folders and can be removed by asking Pi to delete them. - `/tree` gives conversations branching and undo. Instead of a linear chat where a mid-feature bug derails the main thread, you branch from any prior message (yours or the assistant's), fix the tangent there, and return — Pi carries back a concise summary rather than the whole detour, keeping the main branch's context clean. You choose no summary, default summary, or a custom summarization prompt at branch time. - `/fork` splits off an entirely separate session from a chosen point, the way RooCode forked Cline and KiloCode then forked RooCode. - Live cost and context observability sits directly below the input field: context-window percentage, running session cost, model, and reasoning effort. - The `pi.dev/packages` registry indexes community extensions, skills, and themes: pi sub-agents (delegation with chained and parallel execution), task-plane (agent orchestration with parallel execution and checkpoint discipline, with a lane-and-task dashboard), pi studio (a two-pane visual studio), and design-deck, which opens a browser slide deck of live UI options — color, typography, navigation pattern, dashboard aesthetic, data-viz style — so you pick rather than describe. - The `shittycodingagent.ai` domain is a genuine joke domain from the founders, not a phishing site — but Ondrej still directs installs to pi.dev. ## Actionable Takeaways 1. Install from pi.dev with its one-line command, then verify with `pi -v`. 2. Pi will not run until you set a provider and an API key, and out of the box it forgets both every terminal session. Fix this once: create the Pi config directory and store your OpenRouter key in the `auth.json` file so you can launch with a bare `pi`. 3. Get an OpenRouter key at openrouter.ai under settings, top up a small credit balance (five or ten dollars is enough — you pay per token), then create the key under API keys and set a per-key credit limit of $10–$20 in case it leaks. 4. Set the default model explicitly — Pi defaults to Sonnet. Ondrej's picks: Opus 4.6 for maximum capability, Sonnet 4.6 for balance, GPT 5.4 Mini for cheap and fast (near 100 tokens/second), or Kimi K2.5 / Minimax M2.7 / Grok 4.2 for price efficiency. 5. Create `~/.pi/agent/agents.md` — the global system prompt applied to every session. Pi ships without one, and Ondrej calls it the first thing you should set up. Put your actual preferences in it: language defaults, tone, stack conventions. 6. Use an agent you already have to do the setup. Ondrej runs `claude --dangerously-skip-permissions` and hands it the setup steps; the safer variant is to first ask it to verify which steps are already implemented and change nothing. 7. Learn four commands: `/reload` applies config, theme, and extension changes without restarting; `/tree` branches the conversation; `/fork` splits a new session; `pi -c` continues the last session (he calls this his most-used shortcut), and `pi -r` / `pi --resume` browses saved sessions in `.pi/agent/sessions`. ## Notable Quotes > "Open Claw is for the masses. Pi is for those who want to be on the cutting edge." — David Ondrej > "If it can write and run code, security prompts are pointless." — Mario Zechner, quoted by David Ondrej > "Using Pi lets you build your own agent, not someone else's." — David Ondrej > "The best thing is using AI agents to set up other AI agents. I'm not even joking." — David Ondrej --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*