agent-model-router

by Deke · ★ 0 · updated 10 days ago

ToastsCommandsvalidates

0

Picks the model each subagent runs on from a per-project table, steps up a model when a task is retried, and logs every choice so an agent can tune the table.

install agent-model-router

Install

/plugin marketplace add lideke/agent-model-router
/plugin install agent-model-router@agent-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.spawncommand.run
API calls
$.clock.after$.clock.now$.command.register$.fs.exists$.fs.list$.fs.read$.fs.stat$.fs.write$.model.complete$.prompt.submit$.session.root$.store.get$.store.set$.ui.log$.ui.toast
Can see
subagent spawns
Reach
level 2 of 3 writes filesdrives Claudereads filespersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/lideke/agent-model-router
Path in repo
repository root
Source commit
e2fd828 the exact code the scan read
Author
Deke @lideke
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.