# My Pi Agent Teams. Claude Code Leak SIGNAL. Harness Engineering
<!--
ref: @content/youtube/indy-dev-dan/2026-04-06-pi-agent-teams-claude-code-leak-harness-engineering
version: 3
updated_at: 2026-10-31T19:09:20.358Z
-->

Indy Dev Dan (2026-04-06): Dan's reading of the Claude Code leak is that the value sits in the agent harness: deterministic code, token caching, orchestration, prompts, skills, and model control.

*Synthesized from Indy Dev Dan on Indy Dev Dan, 2026-04-06.*

Indy Dev Dan reads the Claude Code source leak as one signal — the harness, not the model, is the product — and demonstrates it with a nine-agent UI-generation team he built on the Pi coding agent.

## Core Thesis

Dan's reading of the Claude Code leak is that the value sits in the agent harness: deterministic code, token caching, orchestration, prompts, skills, and model control. Since models are commoditizing fast, **harness engineering** is the skill that compounds — building a specialized harness for your own domain lets you solve problem *classes* rather than one-off tasks. He frames the ceiling as trust and scale: how much work you can hand off, and how much you believe the result when you hit enter.

## Key Insights

- The demo system is an "infinite UI" generator: a three-level tree of brand → product/application → version branches, holding three brands (Aegis for agent security, AgentX, AgentDan) with multiple pages and forked UI variants each. A team of agents *operates the product*; the UI just exposes their work.
- Team topology is the same three tiers as the prior episode — orchestrator, leads, workers — but scaled horizontally: setup team runs first, then UI generation teams A, B, and C fire in parallel on identical prompts. The full config carries 15 named agents; the reduced version used on camera runs 9.
- Dan swapped models per team as a live A/B: MiniMax 2.7 and Step 3.5 Flash on teams A and B against Claude Sonnet 4.6 on team C, all under 1M-context Sonnet/Opus at the top. **Both open-source teams returned empty responses and effectively bombed**; four agents produced nothing while team C completed cleanly.
- The failure produced the episode's most interesting behavior: the A and B leads noticed their workers weren't returning and wrote the components themselves, explicitly reasoning that the task must complete — breaking the "leads never execute" rule the way a real lead engineer covers for a team that falls through. The orchestrator then re-delegated the two broken variants to teams that worked.
- Dan's stated fix for that class of failure is a **model rotation system** in the harness — swap the model when one stops responding — which he notes is only possible because he owns the harness.
- The to-do list is replaced with a **"till-done" list**: agents keep working until every task is complete rather than reporting a partial list back.
- The orchestrator is taught to prompt-engineer. Dan's own prompt format (purpose, variables, instructions, workflow) is baked into it, so the orchestrator writes identical, well-structured prompts to each team lead, and leads do the same to workers.
- Every agent's front matter carries `expertise` (its self-maintained mental model, ~7K tokens for the view agent), hot-loaded skills injected directly into the system prompt for stronger adherence, tools, and a `domain` block scoping where it may operate. Dan never edits the expertise files; the governing mental-model skill is only ~75 lines.
- The interface constraint that makes this scale: the human talks only to the orchestrator, so **input to the system doesn't grow with the number of agents**. Reusable prompts target teams, not agents — his `generate` command takes brand, product, tree, count, and prompt parameters and drives the whole workflow top to bottom, using `delegate` as an information-dense keyword because it is literally a tool.
- Dan does not treat this as a replacement for Claude Code — he estimates ~80% of his own time is still in Claude Code, used as a **meta agent** that builds the specialized systems, which then outperform any single Claude Code, Codex, or Gemini CLI instance.
- He argues roughly 80–90% of engineering and knowledge work is workflow — a repeatable series of tasks — which is exactly what a specialized team can be trusted to run end to end.
- Side thesis: agentic security is a major open opportunity, because anyone can now write a prompt to exploit an application and a coordinated team of malicious agents would scale that. The Aegis demo UI (live threat stream, sentinel agent flagging an unusual login pattern, false positives, coverage, deployment control, activity logs) is his sketch of the product category.

## Actionable Takeaways

1. Treat the harness as the product surface you own: orchestration, caching, prompts, skills, tools, and model selection. If you can't change those, you can't specialize beyond what everyone else has.
2. Run different models on parallel teams doing the same work, and build model rotation into the harness so a non-responsive model gets swapped instead of stalling the run.
3. Give leads an explicit fallback: if workers fail, complete the task rather than reporting failure — Dan's leads did this on their own, and the outcome was the run finishing.
4. Replace to-do lists with a "till-done" list so agents don't stop at partial completion.
5. Teach the orchestrator your prompt format (purpose, variables, instructions, workflow) so delegated prompts are consistent across every team.
6. Hot-load skills into the system prompt rather than referencing them, for stronger adherence, and keep the mental-model skill short (~75 lines) so agents decide what to track.
7. Keep the human interface to exactly one agent — the orchestrator — so scaling agents doesn't scale your cognitive load.
8. Write reusable prompts against *teams*, parameterized (brand, product, tree, count, prompt), and let the orchestrator run the workflow top to bottom.
9. Use Claude Code as the meta builder for the specialized system, not as the thing that builds your product directly.

## Notable Quotes

> "The Claude code leak tells us that the agent harness is the product." — Indy Dev Dan

> "Without the agent harness, there are no agents, no agentic coding, and that means there is no agentic engineering." — Indy Dev Dan

> "One agent is not enough. Spinning up parallel agents with blank memories is an improvement." — Indy Dev Dan

> "I need to produce the output to fill a task myself." — Indy Dev Dan, reading his team lead's reasoning

> "One agent, one prompt, one purpose." — Indy Dev Dan

> "When I sit down to build with agents now, I think about solving problem classes, not just the individual problem." — Indy Dev Dan

> "You are the bottleneck. It's not the models, not the tools, it's not the agent, it's you." — Indy Dev Dan

---

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