model-router

by r1305 · ★ 0 · updated 12 days ago

PanesBandsStatus lineCommandsPromptwarnings

0

Middleware que elige el modelo (haiku/sonnet/opus/fable, escalado junior-middle-senior-goat con techo por agente) de todo subagente segun tabla de suelos por agente, complejidad de la tarea y limites de uso de la cuenta, y un unico panel de cuotas y consumo: limites de 5 h y semanal, alertas a umbrales configurables (80 % y 95 % por defecto), tokens por modelo y consumo por dia/sesion...

install model-router

Install

/plugin marketplace add r1305/claude-mods
/plugin install model-router@claude-mods

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.startsession.endui.closecommand.runprompt.composeagent.spawnturn.startturn.stepturn.completesession.measureui.render
API calls
$.clock.every$.clock.now$.command.register$.env.get$.fs.list$.fs.read$.fs.write$.session.cwd$.session.id$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.invalidate$.ui.open$.ui.resolve$.ui.status$.ui.toast
Draws
AbovePromptPane
Can see
subagent spawns
Reach
level 2 of 3 writes filesreads filesreads env varsreads mod statepersists 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/r1305/claude-mods
Path in repo
plugins/model-router
Source commit
2d8b5c6 the exact code the scan read
Author
@r1305
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.

More from r1305/claude-mods

clean-view

r1305/claude-mods

Vista limpia: panel sobre el cuadro de texto con pasos, tiempo y estado (terminado, detenido, pendiente de mi respuesta) y modo simple que oculta las filas técnicas de herramientas. /simple on|off.

★ 0BandsReskinsGuards

session-band

r1305/claude-mods

Band above the prompt: turn number, output speed, turn and session cost, prompt cache countdown and context fill; notifies before the cache expires.

★ 0BandsCommands

session-link

r1305/claude-mods

Coordina sesiones paralelas de Claude Code: panel de sesiones activas y mensajes, pizarra compartida (un archivo por sesion bajo el config dir de Claude) y comandos /link. Usa SendMessage/session.send nativos como transporte.

★ 0PanesCommandsPrompt