# If you don’t run Pi locally you’re falling behind…
<!--
ref: @content/youtube/david-ondrej/2026-06-12-if-you-don-t-run-pi-locally-you-re-falling-behind
tags: [pi-coding-agent, terminal-agents, context-engineering, prompt-templates, agent-skills, agent-extensions, parallel-agents, agent-orchestration, web-search-tools, session-management]
version: 2
updated_at: 2026-11-21T20:40:29.135Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=jcUqsNpDDDk)**


*Synthesized from David Andre on David Ondrej, 2026-06-12.*

David Andre presents this solo tutorial on Pi, a minimal, customizable terminal coding agent, and walks through setup, context files, extensions, parallel agents and session handling. There is no host or guest.

*Notes: the speaker introduces himself as "David Andre" while the channel slug is david-ondrej, so the channel display name is inferred from that slug and the spelling should be confirmed. Some product names in the captions are garbled (the mass-market coding agents, the Codex CLI and the Pi founder's name), so they are described generically and the founder is not named. The sponsor reads, the paid resource bundle, the hiring pitch and the subscribe prompts are omitted.*

## Core Thesis
David Andre argues that Pi is a better daily agent for serious users than mass-market coding agents, because it ships with only four tools and a very short system prompt, and the user shapes it through plain markdown, prompt templates, skills and extensions. He also argues that the strongest gains come from having one Pi agent orchestrate other coding agents, and that users should let the agent improve its own setup.

## Key Insights
- **Install and sign in:** Pi installs with a one-line curl command from pi.dev. Running `pi` launches it, `/login` opens the provider menu, and the walkthrough uses OpenRouter with a fresh key and a $30 spending limit.
- **Minimal harness:** Pi has four built-in tools, read, write, edit and bash. Web search and other capabilities are added as extensions. The system prompt is about 1,000 tokens, which he says is 10 to 15 times smaller than other agents, and it supports more than 15 providers.
- **Thinking effort:** Shift+Tab cycles the thinking level through off, minimal, low, medium, high and extra high. He runs Opus 4.8 in fast mode at extra high.
- **Context files:** `system.md` overrides the whole system prompt and should be left alone. An append-system file adds lines to the end of the prompt on every run, and an `AGENTS.md` file holds per-folder context. Pi also reads existing CLAUDE.md files.
- **Web access:** the pi-web-access package adds web search, which he says uses Exa for free. The package has over 90,000 downloads a month.
- **Four levels of customization:** `AGENTS.md` (always loaded, about a few seconds to edit), prompt templates (slash commands, about 30 seconds to create), skills (loaded when relevant, one to two minutes), and extensions (TypeScript code that can act as hooks, the hardest to write).
- **Reload after changes:** `/reload` reloads keybindings, extensions, skills, prompts and themes. Without it, a new template such as `/review` does not appear.
- **Short-answer template:** a `/short` template asks for a simpler, shorter answer, which he says saves him from typing the same request 20 to 40 times a day.
- **Status bar:** the bottom bar shows tokens, session spend, context-window percentage, auto-compaction, model creator, model name and reasoning effort.
- **Compaction:** `/compact` takes about two to three seconds in Pi, which he contrasts with about a minute in a mass-market agent. He suggests compacting around 30 to 50% context, because quality drops as the context fills.
- **Steering:** Enter steers a running agent after the current tool call, Option+Enter queues a follow-up that runs after the response, and Escape interrupts. Ctrl+V pastes a screenshot.
- **Sessions:** Escape twice returns to an earlier point and branches the conversation as a tree. `/fork` splits a branch into its own session file, and `/resume` reopens an earlier session. Sessions are portable JSONL files, and `/share` creates a share link and a gist.
- **Permissions:** Pi runs in YOLO mode with no approval prompts. He says to use only the strongest model in that mode, and offers a permission-system package for users who want approvals.
- **Orchestration:** in a terminal workspace he calls CMAX, one Pi agent launches and monitors Codex CLI workers in a 2x2 grid. The workers do most of the token work, while Pi reads their output, which he says is much cheaper than reading it himself. He notes that the workers ran on a subscription he already pays for.
- **Self-improvement:** Pi can edit its own config, install packages, write prompt templates and change its theme when asked, and the speaker urges users to ask for ambitious tasks rather than small ones.
- **No sub-agents, no MCP by default:** Pi avoids built-in sub-agents by design and spawns parallel Pi instances instead. For MCP, he suggests wrapping servers as CLI tools for bash to call, or a community adapter extension.
- **Debugging:** when something breaks, give Pi a screenshot and ask it to web-search the fix and explain the cause without changing anything yet. In his example, the fix was removing a missing theme that the share settings referenced.

## Actionable Takeaways
1. Install Pi from pi.dev with the one-line installer, run `/login`, and add a provider with a spending limit set before the first run.
2. Put standing instructions in the append-system file (for example, answer in English, use one date format, no emojis), and put per-project rules in an `AGENTS.md` in each project folder. Leave `system.md` alone.
3. Turn any prompt you repeat more than once a day into a prompt template, then run `/reload` so the slash command appears.
4. Add the pi-web-access package for free web search instead of switching tools to search.
5. Use the strongest model available if you run Pi in YOLO mode, and avoid small models such as Haiku or Gemini Flash for that setup. Install a permission package if you are new to agents.
6. Use `/compact` at around 30 to 50% context, `/fork` to split a branch, and `/share` to send a session to a teammate.
7. For bigger jobs, run one Pi agent as orchestrator that launches and checks several Codex CLI workers in parallel panes, and give it the end goal rather than step-by-step instructions.

## Notable Quotes
> "You should adapt pi to your workflows, not the other way around." — David Andre, quoting the Pi homepage
> "The AI agents are super powerful. You, the human, are the limiting block." — David Andre
> "Do not use small models and definitely do not use them inside of pi" — David Andre

---

*Related: `@content/youtube/steph-france/marketers-do-with-openclaw` · `@content/youtube/steph-france/making-business-agents-smarter-with-skills` · `@content/web/atuin/2026-10-27-atuin-threads` · `@content/youtube/ai-jason/2026-07-20-tmux-fable-cut-35-less-token` · `@content/youtube/nate-herk/claude-code-for-non-coders-6-hour-course`*

---

*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).*