Fast codebase search. Haiku model. Read-only. Searches files fast.
claude-haiku-4-5 · read-onlyClaude Code — Hidden Feature #004
Build your own agent team.
Custom subagents are isolated workers with their own model, tools, and memory. Route cheap tasks to Haiku. Route complex ones to Sonnet. Main context stays clean.
How subagents work
ArchitectureIsolated workers that keep your main context clean
context: fork — they see your project but changes stay isolated. Main context only receives the final summary.Creating a custom agent
SetupOne file in .claude/agents/ — that's all it takes
mkdir -p .claude/agents/agent security-reviewerModel routing — pick the right tool
CostMatch the model to the task. Never use Opus for what Haiku can handle.
| Model | Cost | Best for |
|---|---|---|
| claude-haiku-4-5cheap | ~$0.25/M | Search, summarize, classify, extract, route. Read-only agents, research tasks. |
| claude-sonnet-4-6default | ~$3/M | Complex reasoning, multi-step tasks, writing code, general work. |
| claude-opus-4-6premium | ~$15/M | Architecture decisions, complex debugging, high-stakes output. Use sparingly. |
Built-in agents (already available)
Built-inThese ship with Claude Code. No setup needed.
Read-only planning. Used before plan mode executes.
claude-haiku-4-5 · read-onlyFull tools, complex tasks. Full access.
claude-sonnet-4-6 · full accessTerminal in isolation. Runs terminal commands separately.
claude-haiku-4-5 · bash onlyReal agent examples
Copy-pasteFour production-ready agents. Drop them into .claude/agents/ and use immediately.
don't miss what's next.
playbooks, templates, and tools that actually save you hours. straight to your inbox. no spam. unsubscribe anytime.