Claude Code Subagents: A Five-Step SOP for Cheaper AI Coding
A hands-on SOP for Claude Code subagents (basis: October 8, 2026; pairs with the site's Haiku 5.5 hotspot): from the /agents command to a parallel fleet of specialized workers. File locations and priority: .claude/agents/ (project) overrides ~/.claude/agents/ (user); a markdown file with YAML frontmatter is all it takes. Fields covered one by one: name (lowercase-hyphen), description (drives auto-delegation - learn to write Use PROACTIVELY / MUST BE USED trigger phrases), tools (omitted means inherit-all; least privilege says list them explicitly), model (sonnet/opus/haiku/inherit; default sonnet), permissionMode, skills (not inherited from parent), and hooks (PreToolUse/PostToolUse/Stop; once unsupported). Model routing: search/summarize/classify/extract to haiku, multi-file changes to sonnet, architecture to opus (community-sourced per-task cost comparison $0.03/$0.24/$1.20, labeled single-source). Isolation: subagents run in their own context and return only summaries; they cannot spawn subagents (no Task tool); implementation stays with the main agent (Anthropic's own guidance). Haiku 5.5 tie-in: model: haiku picks up the new model, and Claude Code v2.1.292 adds an effort parameter on the Agent tool plus claude plugin install --marketplace (release-note caliber). Four copy-ready skeletons (code-reviewer/security-reviewer/debugger/test-writer) and four failure patterns to avoid.