model-router

by Wesley Stagg · ★ 0 · updated 12 Oct 2026

CommandsAutomationwarnings

0

Picks the model and effort for every subagent by having your session's own model judge the task, instead of a fixed model per agent type. /router to pause, check, or read its log.

install model-router

Install

/plugin marketplace add wesleystagg/model-router
/plugin install model-router@model-router

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startagent.spawnturn.stepcommand.run
API calls
$.clock.after$.clock.now$.command.register$.model.fork$.session.messages$.state.get$.state.set$.store.get$.store.set
Can see
subagent spawns
Reach
level 2 of 3 drives Claudereads the transcriptreads mod statepersists state

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/wesleystagg/model-router
Path in repo
repository root
Source commit
4ebba3b the exact code the scan read
Author
Wesley Stagg @wesleystagg
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.