feat(mods): model-router mod, wave 1-A — per-request model/effort routing

Function-hooks plugin under mods/model-router: routes effort (and, behind a
flag, the model) of every main-loop request, sets built-in sub-agents' model
at spawn with full ids, answers Skill(effort-*) itself (single writer, no
pairing rule), exposes the route tool and /route, validates the optional
~/.claude/model-router.json. 11 plugin tests, validate + tsc clean.
Contract .claude/tasks/contracts/2026-10-08-model-router-w1a-1533.md.
This commit is contained in:
bchanot
2026-10-08 16:26:57 +02:00
parent b73d1b127e
commit b721c94dcb
4 changed files with 1045 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
{ "modules": ["./register.ts"] }