cd /news/ai-agents/i-route-claude-code-steps-by-decisio… · home › topics › ai-agents › article
[ARTICLE · art-146548] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

I route Claude Code steps by decision type, not difficulty

A developer built a Claude Code plugin called maddog that routes each step of a task to a subagent on a model chosen by the kind of decision the step requires rather than by task difficulty. In 49 advisor-mode sessions compared against 30 sessions without it, the developer found that routing by decision type reduced the share of output tokens coming from top-tier models such as Opus and Fable, though small changes cost more to dispatch than to perform directly and Haiku failed on tasks that only appeared mechanical. The plugin is MIT-licensed and available via the /plugin command in Claude Code.

by read1 min views5 publishedOct 7, 2026

In my Claude Code sessions, 69% of the output came from the top models (Opus, Fable), including reading a changelog, applying an edit I'd already decided on, and running tests.

"Hard task → strong model" didn't fix it. Difficulty is the wrong signal: once a refactor is decided, applying it needs no judgment, however complex the code. What worked was routing by the kind of decision a step needs:

I built this as advisor-mode in a plugin called maddog. Your main session splits the goal and sends each piece to a subagent (a separate Claude instance with its own context) on the right model. Only a short result comes back, and the main session checks it before accepting. Merges and pushes need your go-ahead. That's a rule the agents follow, backed by a hook in subagents, not a hard lock.

My numbers, from my own 49 advisor-mode sessions against 30 sessions without it over the same weeks (output tokens, not cost or quality):

In my use, small changes cost more to dispatch than to just do, and Haiku fails on tasks that only look mechanical.

The plugin also has section-by-section, which reviews a skill or agent file with you one section at a time.

Video (~100 s): https://youtu.be/b_mFbVY5jzk Try it: in Claude Code, run /plugin and search "maddog" on the Discover tab, then start with /maddog:advisor-mode <your task>. Run the main session on Sonnet or above. MIT, repo: https://github.com/Harish-here/maddog

Do you route work across models, or run everything on one?

── more in #ai-agents 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-route-claude-code-…] indexed:0 read:1min 2026-10-07 · —