Builds on step 5. Once you have rules and a bigger codebase, some jobs read a lot and return little: searching, auditing, syncing docs.
Read time1 min
SectionClaude Code Setup Playbook
01 — 6 · subagents
What to do
Why: a subagent does that reading in its own context window and hands back only the conclusion. Your main conversation stays small.
Do this:
Start with a read-only scout that finds where things live.
Give each agent the fewest tools that work. Begin with none and add.
Write the output contract in the prompt: what comes back, how long it can be.
Save it as .claude/agents/<name>.md.
02 — 6 · subagents
Example
Example..claude/agents/scout.md:
markdown
---
name: scout
description: Read-only search. Use when you need to know where something lives and only need the answer.
tools: Read, Grep, Glob
---
Find the best starting files for the topic you are given.
- Read only. Never edit files or run commands.
- Return at most 10 results as `path:line - why it matters`.
- Do not plan or fix. If the topic is ambiguous, list the two likeliest readings.
03 — 6 · subagents
Check it works
Check: ask Claude to "find where invoice totals are calculated". It should hand off to the scout. Then try to make the scout edit a file. It can't, because Edit isn't in its tool list.
Watch out:
Each subagent starts cold. Spawning several for a small task costs more than doing it inline.
Review agents with "all tools" can write when you only wanted them to look.
Don't add one agent per idea. Two or three well-scoped ones beat ten vague ones.