laya-router
by Marc Reichel · ★ 6 · updated 2 days ago
0
Auto-route each Claude Code session to Haiku, Sonnet, Opus or Fable from its first prompt. Classified locally, zero tokens.
Install
/plugin marketplace add marcreichel/laya-router/plugin install laya-router@laya-routerThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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.startcommand.runsession.endprompt.submitskill.promptturn.steptool.call- API calls
$.clock.now$.clock.sleep$.command.list$.command.register$.http.fetch$.session.id$.session.model$.state.get$.state.set$.store.get$.store.set$.ui.status- Can see
every promptevery skillevery tool call- Reach
- level 3 of 3 networkreads 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/marcreichel/laya-router
- Path in repo
- repository root
- Source commit
5f0d605the exact code the scan read- Author
- Marc Reichel @marcreichel
- 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.