๐Ÿพ
Field guide ยท September 2026

Running a Fleet of
Claude Coding Agents

One developer, many agents, zero chaos. Ten battle-tested tips for parallelizing your coding with Claude Code โ€” gathered from the latest guides, docs, and production war stories.

โŒจ๏ธ โ† โ†’ to navigate16 slides
The payoff

Why run a fleet instead of one agent?

โšก

Speed

Independent tracks run at the same time โ€” research, build, and test suites finish in parallel instead of in sequence.

๐ŸงŠ

Isolation

Each agent gets its own context window and workspace. A 300k-token research dive never pollutes your main session.

๐Ÿ”

Quality

A fresh agent reviewing finished code isn't biased toward it โ€” it catches what the writer missed.

1
Tip one

Split spec-first, not hope-first

One spec per unit of work, each with clear success criteria. The spec is your parallel boundary โ€” it decides what can run side by side.

Rule of thumb: if a task can't be written as a self-contained spec with a pass/fail check, don't parallelize it. And don't split one modest job into pieces just to feel parallel.
Example ยท spec

What a fleet-ready spec looks like

One self-contained brief per agent. Notice: context, boundaries, and a pass/fail check the agent can't argue with.

TRACK A โ€” rate limiting  ยท  worktree ../app-agentA  ยท  branch agentA/rate-limit

GOAL      Add per-IP rate limiting to the login endpoint in
            src/routes/login.ts (currently no throttling).
RULES     100 requests / 15 min per IP; 429 + Retry-After on excess;
            follow the middleware pattern in src/middleware/auth.ts.
OUT OF SCOPE  Don't touch the signup flow or the DB schema.
DONE WHEN npm test -- login passes, plus a new test file
            tests/login-rate-limit.test.ts covering the 429 path.
REPORT BACK  JSON: files changed, tests added, pass/fail.
2
Tip two

One worktree per agent

Agents that edit files must never share a working tree โ€” that's how write conflicts and mystery breakages happen.

# each agent: isolated checkout + branch + port + database
git worktree add ../app-agent1 -b agent1
git worktree add ../app-agent2 -b agent2
# agent1 โ†’ PORT=3000, db app_agent1 ยท agent2 โ†’ PORT=3001, db app_agent2
Files, ports, and data all separated. When agents finish, merge the branches โ€” never let them edit the same checkout.
3
Tip three

Write prompts like the agent has amnesia

Because it does. Every subagent wakes up with zero context from your conversation โ€” no shared memory, no memory of earlier runs.

โŒ "fix the bug we discussed"
โœ… "Fix the null-reference in src/auth/middleware.ts:47 โ€” user.email is read before the null check. Add the guard, then run the auth tests."

Always include: file paths, line numbers, conventions, and exactly what "done" looks like.
4
Tip four

Cast specialists, not clones

Define agents with /agents โ€” they're just markdown files in .claude/agents/. Give each one a job, and restrict its tools.

---
name: reviewer
description: Checks finished work against its task spec. Use after any agent reports done.
tools: Read, Grep, Glob
---
You are a review agent. You never edit files โ€” you only report pass or fail,
quoting the exact lines that miss the spec.
The read-only tool list is the point: the reviewer physically can't "fix" things itself, so it stays an honest, independent pass.
5
Tip five

Writer โ‰  Reviewer

The single highest-value fleet pattern: one agent writes, a different, fresh agent reviews. Claude won't be biased toward code it just wrote โ€” the reviewer reads it cold.

โœ๏ธ

Writer agent

Implements the spec in its own worktree. Ships code, runs tests.

๐Ÿง

Reviewer agent

Fresh context, read-only tools. Compares the diff against the spec line by line.

๐Ÿ”

You

Merge only on a pass. On a fail, the writer gets the reviewer's quotes โ€” not your summary.

6
Tip six

Cap the fleet: 3โ€“5 is the sweet spot

More agents isn't more speed. Subagents can't talk to each other mid-run, so you pay the synthesis cost for every report they send back.

7
Tip seven

Don't over-delegate

Spawning an agent has real overhead: context setup, prompt processing, result synthesis. For a three-line fix, just do it yourself.

The bar: would this take you more than a handful of tool calls to do directly? If no โ€” do it. Agents earn their cost on work that would pollute your context or genuinely parallelize.

And once you delegate, commit to it โ€” don't redo the work when the report comes back.
8
Tip eight

JSON in, report out

Tell every agent exactly how to report back. Structured output lets the orchestrator aggregate results instead of reading essays.

Have each subagent return JSON:
{ "file": "src/auth/middleware.ts",
  "issues": [{ "line": 42, "severity": "high", "description": "โ€ฆ" }] }
Pro move: codify it in CLAUDE.md โ€” "always use subagents for independent tasks, pass explicit context, format output as JSON" โ€” so the whole fleet follows the playbook.
9
Tip nine

Guardrails before autopilot

Subagents inherit your full model tier with no built-in spending cap. Wire in the guardrails before you walk away.

10
Tip ten

Go long: the Ralph Wiggum loop

For missions that take hours, not minutes โ€” ship code while you sleep. A bash loop re-feeds the task until it's actually done.

# iteration beats perfection โ€” each run reads git history + progress log,
# picks the next task, implements, tests, commits, logs, repeats
while :; do cat PROMPT.md | claude ; done
Example ยท copy-paste prompts

Prompts you can steal

Three prompts that put the tips to work. Adapt the paths โ€” keep the structure.

๐Ÿš€

Fleet kickoff

"Run 3 subagents in parallel.
Agent 1: implement TRACK A
in ../app-agentA.
Agent 2: implement TRACK B
in ../app-agentB.
Agent 3: review both against
their specs (read-only tools).
Each returns JSON. Give me a
merged go/no-go."
๐Ÿง

Cold review

"You have fresh eyes and zero
memory of this code. Read spec
TRACK A and the diff in
../app-agentA. Report pass/fail
per criterion, quoting the exact
lines that miss. Do not edit
any files."
๐ŸŒ™

Overnight loop (PROMPT.md)

"Read progress.txt and git log.
Pick the first task in
features.json with passes=false.
Implement it, run tests + lint.
Commit only if green, set
passes=true, log progress,
then exit."
Launch checklist

Your first fleet, in six steps

1. Write one spec per track, with pass/fail criteria
2. git worktree add โ€” one isolated checkout + branch per agent
3. Give each worktree its own port and database
4. Define specialists in .claude/agents/ (+ a read-only reviewer)
5. Name the agent count explicitly โ€” or Claude does it all in one loop
6. Set hooks + cost caps, then merge only on a reviewer pass

Also worth knowing: /loop for recurring jobs (babysit PRs, poll deploys), cross-session messaging so agents pass findings along, and agent teams โ€” experimental auto-coordination with a team lead.

Keep learning

Sources

Anthropic Claude Code docs โ€” best practices (worktrees, agent teams, cross-session messaging) How to Run Claude Code Agents in Parallel โ€” AI Systems Lab Claude Code subagents: parallel tasks without blocking โ€” dev.to Tips from running subagents in production โ€” dev.to Claude Code power-user tips (auto mode, sandbox, /loop, Ralph Wiggum) Claude Code best-practice compendium โ€” agent teams, hooks, permissions Ralph Wiggum loop โ€” autonomous bash-loop harness

๐Ÿพ Built by Meow ยท September 2026

1 / 14 โ† โ†’ navigate ยท Home / End jump