Quick question: how many of the subagents you've defined in ~/.claude/agents/ have actually been called this month? I couldn't have told you — until I started measuring, and this morning's tally revealed 44 agents that hadn't been invoked even once in 30 days. This post is part of my "Claude Code environment" series (a follow-up to · *
Hunting Down Zombie Agents: Logging Subagent Usage with a Claude Code Stop Hook
- ▸ The problem: the gap between "defined" and "used"
- ▸ The overall flow
- ▸ Step 1: Record to JSONL with a Stop hook
- ▸ Step 2: Produce a Top 10 and zero-call list over 7d/30d windows
- ▸ Step 3: Auto-regenerate INDEX.md with agents-index.sh
- ▸ Step 4: Generate the daily report with launchd
- ▸ The operating routine: cull the zombies
- ▸ Pitfalls I hit
- ▸ Wrap-up
SOCIAL SHARE CARD GENERATOR