# This 100% minimal AI Agent can do anything… just watch <!-- ref: @content/youtube/david-ondrej/2026-04-06-this-100-minimal-ai-agent-can-do-anything-just-wat tags: [coding-agents, minimal-agent-design, pi-agent, open-source-tooling, agent-customization, session-management, model-cost] version: 2 updated_at: 2026-11-21T21:28:29.651Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=9KYfx_GzY1o)** *Synthesized from David on David Ondrej, 2026-04-06.* David is the channel's host and presents alone. The episode is a walkthrough of Pi, a minimal open-source coding agent, and how to set it up and extend it. The video contains a paid-course pitch and a sponsor-style plug for a subscription, which this summary leaves out. ## Core Thesis David argues that Pi is the most underrated agent harness because it is radically minimal: four built-in tools, a system prompt under 1,000 tokens, and no built-in guardrails. He says that this lets power users shape the agent to their own needs, while a more packaged agent such as OpenClaw, which he says is built on Pi, carries bloat and extra per-message token cost. ## Key Insights - **Four tools only:** read, write, edit and bash. Read lets the agent inspect files and logs. Write creates files. Edit changes only the lines it needs, such as "fix the login back on line 42". Bash runs everything else, including installs, tests, servers and git. - **Size comparison:** the entire Pi system prompt is under 1,000 tokens. The speaker says Hermes Agent carries a default system prompt of about 12,000 tokens. He also says OpenClaw sends roughly 12,000 to 16,000 tokens with every message. - **Pi is a toolkit:** the speaker lists four layers: the Pi-UI terminal library (markdown display, multi-line editor, loading spinners, flicker-free updates), the Pi coding agent, the Pi agent core loop, and Pi-AI, a single API across Anthropic, OpenAI, Google and other providers. - **No permission prompts:** Pi runs in what the speaker calls YOLO mode, with no prompts or guardrails. He quotes its founder, Mario Zechner: "If it can write and run code, security prompts are pointless." He says it is not for beginners. - **Installation:** install globally from pi.dev with one command, then check with `pi -v`. Out of the box, the agent needs a provider and an API key set each time, so the speaker sets a default provider (OpenRouter in his example) and a default model in a config directory. - **Model choices:** Opus 4.6 is the most capable and most expensive option. Sonnet 4.6 is the balanced choice. The speaker also mentions GPT 5.4 Mini, Kimi 2.5 and MiniMax M2.7 as cheaper options. - **Global instructions:** an agents.md file under the Pi agent directory is loaded in every session. The speaker says it should be created first, with the user's own preferences such as language, tone or TypeScript defaults. - **Self-modification:** Pi can rewrite its own theme and extensions. A matrix-style theme and a hacker-style system-stats extension (CPU, RAM, GPU load, disk) were each built with one prompt. The changes were applied with `/reload`, and reverted by asking Pi to remove them. - **Session commands:** `/tree` branches a conversation off an earlier message, with an optional summary when returning to the main line. `/fork` starts a new session from a message. `pi -c` continues the last session, and `pi -r` (or `--resume`) lets you pick one. Sessions are auto-saved under the Pi agent directory. - **Packages:** pi.dev/packages lists extensions, skills and themes. The speaker names pi-sub-agents for delegation, Task Plane for parallel tasks with checkpoints, Pi Studio for a two-pane view, and Design Deck for choosing UI options in a browser. ## Actionable Takeaways 1. Install Pi with the one-line command from pi.dev, then check the version with `pi -v`. 2. Set a default provider and a default model in the Pi config directory, so `pi` starts with no flags and no exported key in each shell. 3. Create the global agents.md file before anything else, so every session starts with your preferences loaded. 4. Use `/tree` for side fixes so the main conversation stays clean, and `/fork` when a direction should become its own session. 5. Run `pi -c` to pick up the last session, and run `/reload` after Pi edits its own theme or extensions. 6. Use a cheaper model for routine work and reserve Opus 4.6 for harder tasks, since the speaker's per-message cost comparison shows that the model choice drives spend. 7. Remember that Pi has no permission prompts, so review what it will run before pointing it at real systems. ## Notable Quotes > "If it can write and run code, security prompts are pointless." — Mario Zechner, founder of Pi, as quoted by David > "Claude code cannot change its own UI." — David --- *Related: `@content/web/huggingface/2026-11-26-real2simlab-unified-platform` · `@content/web/atuin/2026-10-27-atuin-threads` · `@content/web/aiweekly/2026-11-01-harvard-coding-agents-flat-shipped-output` · `@content/youtube/ai-jason/agent-folder-is-making-claude-code-10x-better` · `@content/youtube/every-inc/2026-02-18-openai-s-codex-this-model-is-so-fast-it-changes-ho`* --- *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).*