model-router

by Ethan Duffy · ★ 1 · updated 30 days ago

Status lineCommandsPromptwarnings

0

Haiku reads each prompt and routes it to the cheapest capable model and effort.

install model-router

Install

/plugin marketplace add DuffyEthan/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.startprompt.submitclassic.PostModelSwitchcommand.runturn.stepsession.compact
API calls
$.clock.now$.command.register$.env.get$.fs.read$.fs.write$.model.complete$.session.id$.session.messages$.store.get$.store.set$.ui.status
Can see
every promptclassic hookscompaction
Reach
level 2 of 3 writes filesdrives Claudereads filesreads env varsreads the transcriptpersists 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/DuffyEthan/model-router
Path in repo
plugin
Source commit
95ce59b the exact code the scan read
Author
Ethan Duffy @DuffyEthan
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.