New playbooks in your inbox
Hands-on tutorials for people who want to build with AI.
Cover of Claude Code Subagents and Hooks
From the youcanbuildthings catalog · ▸ Build-tested

Claude Code Subagents and Hooks

Run a Multi-Agent Dev Team, Stop Token Burn, and Ship PRs 2x Faster

eBook: $9.99 190 pages
Get on Amazon →

You spawn subagents and they burn 85% of your tokens cold. This ships the working stack: a three-agent dev team, five hooks, worktree isolation, a kill switch, and the settings.json that cuts your token bill 30%.

Turn Claude Code from a smart autocomplete into your own dev team. A small multi-agent stack (planner, coder, reviewer), five hooks that catch silent failures, worktrees that keep parallel workers from clobbering your repo, a kill-switch hook, and the cost routing that drops your token bill 30%. 190 pages of operator discipline, not a 500-page recipe dump.

What You'll Build

01
The 90% Layer (Why You're Using Claude Code Wrong)

The gap between chat-box autocomplete and a multi-agent dev team.

02
How Claude Code Actually Works (Subagents, Skills, Hooks, MCP)

What each of the four primitives is and what context it carries.

03
Tool, Skill, or Subagent? The Decision Framework

The four-axis filter that stops you defaulting to a subagent.

04
Your First Three Subagents (Not Forty-Seven)

Install a working planner, coder, reviewer stack on your own repo.

05
Writing Self-Contained Subagent Prompts

The four-field briefing that stops cold subagents from guessing.

06
Hooks: Stop Flying Blind

Wire a SubagentStop hook and watch every subagent in real time.

07
Running Subagents in Parallel (Without Clobbering)

Git worktree isolation so workers never overwrite each other.

08
The Stack in Action: Skills + Hooks + Subagents Together

One skill, three subagents, one hook, wired into an issue-to-PR pipeline.

09
Pay Less, Bill More: Token Economics + Operator Control

Route workers to cheap models and cut the subagent line item 30%.

10
Catching Silent Failures in Production

Three gates and a kill-switch hook that catch the runaway before it ships.

11
When NOT to Spawn a Subagent (The 47-Specialist Trap)

The Goldilocks Test that retires agents that don't earn their slot.

12
Your Power-User Stack: What to Run This Month

A signed 30-day plan from chat-box habit to multi-agent workflow.