# One Agent Is NOT ENOUGH: Agentic Coding BEYOND Claude Code
<!--
ref: @content/youtube/indy-dev-dan/2026-03-30-one-agent-is-not-enough-multi-team-agentic-coding
version: 3
updated_at: 2026-10-31T19:27:57.594Z
-->

Indy Dev Dan (2026-03-30): A single agent — even a well-prompted one with sub-agents — leaves performance on the table on mid-to-large production codebases.

*Synthesized from Indy Dev Dan on Indy Dev Dan, 2026-03-30.*

Indy Dev Dan is an agentic-engineering educator who demos a custom three-tier multi-team coding harness built on the Pi agent framework rather than Claude Code.

## Core Thesis

A single agent — even a well-prompted one with sub-agents — leaves performance on the table on mid-to-large production codebases. Dan's argument is that three converging trends (1M-token context windows, agents that persist their own mental models, and a fully customizable agent harness) let you build *teams* of domain-locked agent experts that beat the normal distribution of results. The organizing insight is that expertise should accumulate in the agents themselves across sessions, not be re-supplied by the human each run.

## Key Insights

- The architecture is three tiers: one **orchestrator**, then **team leads** (planning, engineering, validation), then **workers** (front-end dev, back-end dev, QA engineer, security reviewer). The human converses only with the orchestrator; all delegation happens below that line. Ten specialized agents total in the demo.
- Leads are forbidden from executing. Dan enforces this with a shared `zero micromanagement` skill and a `domain` block in each agent's front matter granting read/update/delete scopes per directory. His planning lead has read access to the whole codebase and the `specs/` directory but cannot write there — it must delegate. When the engineering lead reached for a file outside its domain, it self-corrected and delegated to a worker that had the permission.
- Each agent maintains an **expertise** file — its own mental model — that it loads at boot (visible as a burst of read tool calls at the start of every turn) and updates itself. The back-end dev's mental model runs ~5,000 tokens covering specs, missing infrastructure, key risks, back-end patterns, security, and testing. Dan caps growth with a `max_lines` setting (10,000 lines on the orchestrator) and does not hand-edit these files.
- `expertise` is a *list*, so you can add read-only expertise files an agent cannot overwrite — the pattern he recommends for billing, database migrations, and DevOps agents where the domain knowledge must not be mutated by the agent.
- Skills are composed, not duplicated: `zero micromanagement` and `conversational response` are shared by the orchestrator and leads; workers deliberately lack `conversational response` so they stay verbose and detail-oriented. An `active listener` skill on all ten agents makes each read the conversation log before every response.
- The whole conversation — every lead, worker, tool call, and templated system prompt — is written to a per-session JSONL log keyed by session ID, plus a shared session directory agents use as scratch space for artifacts like the head-to-head eval results.
- The demo codebase is a **prompt complexity classifier** that routes user prompts to high / medium / cheap model tiers so you don't pay Opus 4.6 with high reasoning for work Haiku or Sonnet 4.6 can handle. It emits a label plus per-class confidences out of 100; `just predict "summarize this code base"` returned `medium`.
- Dan deliberately biases that classifier toward the high tier: under-routing a prompt that genuinely needed high intelligence is a worse failure than overspending, so "high" is the safe default and the business's economics decide how far you shade toward mid.
- Model assignment mirrors the tiers: Opus for orchestrator and leads (the thinkers), Sonnet for workers (the executors). Structure lives in one YAML config — teams, leads, members, colors, system-prompt paths, session and log paths — so pruning the validation team or adding a new one is a config edit.
- Asking all three teams the same question surfaced consensus and disagreement as data: unanimous on LinearSVC and CalibratedClassifierCV, split on ComplementNB, engineering alone preferring SGDClassifier. The QA engineer also found issues the security reviewer had cleared as "ship it" — different context windows produce different findings.
- On cost: the full multi-team run was roughly $8 and ~18 minutes, and Dan treats objections to that as the wrong time horizon. Token costs fall while context windows and intelligence rise; his position is that engineers are systematically under-spending tokens.

## Actionable Takeaways

1. Structure agents in three tiers and talk only to the orchestrator, so your cognitive input stays constant as the agent count grows. That single interface is what makes specialization scale.
2. Put a `domain` block on every agent specifying which paths it may read, update, and delete. Give front-end and back-end devs mutual read access but writes only within their own directory; reserve DevOps, migration, and config paths to their dedicated agent.
3. Give leads a "delegate, never execute" skill and a `delegate` tool, and withhold write permissions on code paths so the rule is enforced structurally rather than by prompt alone.
4. Give every agent an expertise/mental-model file it loads at boot and updates itself, governed by a short skill (Dan's is 77 lines) that says when to read, when to update, and how to structure it — then stop hand-editing it.
5. Use a *read-only* expertise entry for knowledge that must not drift: billing rules, migration procedures, deploy runbooks.
6. Keep the team roster in one YAML config so you can copy it, swap members, and prune whole teams (he drops validation live, leaving planning and engineering) without touching agent code.
7. Assign your strongest model to orchestrator and leads and a cheaper model to workers; workers mainly need to follow instructions and execute.
8. When you want multiple perspectives, prompt all teams with the identical question and read consensus vs. split as signal — then have the orchestrator route a `plan, engineer, validate` sequence for the actual build.
9. For LLM apps serving many users, put a small classifier in front of model selection and tune its bias toward the expensive tier, since under-routing damages the user experience more than overspending does.
10. Once the structure is stable, build team-aware reusable prompts (plan → build → validate) and a meta-agent that tunes the team config itself.

## Notable Quotes

> "One agent is not enough." — Indy Dev Dan

> "You're a leader, delegate, never execute." — Indy Dev Dan

> "You don't want to pay for intelligence that you don't need." — Indy Dev Dan

> "You always want to be thinking about where the ball is going, not where it is." — Indy Dev Dan

> "I am not spending enough tokens, you are not spending enough tokens, and you are wasting time doing things the old way." — Indy Dev Dan

> "You can't have your fingers on everything." — Indy Dev Dan

> "The name of the game in 2026 is trust and scale." — 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).*