Claude Code Sub Agents: From Disappointment to Maximum Efficiency
Claude Code Sub Agents feel slow, burn tokens and don't do any better? The problem is we use them wrong: they're built to research and gather context, not to code in place of the main agent.
Also in: Tiếng Việt · 中文 · 한국어 · 日本語
The initial problem with Sub Agents
When Claude Code first launched Sub Agents, a lot of people (me included) ran into this:
Sluggish
Noticeably slower than the main agent.
Token-hungry
Tokens flowing like water.
No better results
No better than just letting the main agent do everything.
This happens because most of us misunderstand what Sub Agents were actually designed for.
Why does Claude Code need Sub Agents?
The Claude Code agent works with a bunch of tools: read files, list files, edit files… The problem is that the read tool can “eat” thousands of tokens because it puts the entire file content into the conversation history.
| Before Sub Agents | Sub Agents were created to |
|---|---|
| Main agent reads lots of files → uses 80% of the context window | Delegate research tasks to a helper agent |
| Triggers “compact conversation” → the conversation gets summarized | Helper agent works in isolation and only returns a short summary |
| Performance drops hard because context is lost | Main agent gets condensed info instead of raw data |
Common mistake: Using Sub Agents for implementation
Lots of people (me too at first) think:
- Frontend Dev Agent → does the frontend
- Backend Dev Agent → does the backend
- Parent Agent → just orchestrates
Locked section: Best Practice: Sub Agents as a context-collecting army
Locked section: Examples of effective Sub Agents
Locked section: Context Management: the File System as Memory
Locked section: Folder structure
Locked section: Workflow
Locked section: Real demo: ChatGPT Clone
Locked section: ShadCN Expert
Locked section: Vercel AI SDK Expert
Locked section: Parent Agent
Locked section: Takeaways
The rest is for Knowledges members
Plus 10 more sections (about 2 min) for members
You are reading roughly the first third. Knowledges, Combo and Community plans unlock paid articles in full; the Zuey AI plan reads previews only.