subagent-router
by ekinertac · ★ 0 · updated 3 days ago
Picks a model for each subagent from its task: small models for lookups, big models for hard work, while the main thread keeps its own model
Install
/plugin marketplace add ekinertac/claude-code-mods/plugin install subagent-router@ekinertac-modsThen 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.runagent.spawn- API calls
$.command.register$.model.classify$.state.get$.state.set$.store.delete$.store.get$.store.set$.ui.notice- Can see
subagent spawns- Reach
- level 2 of 3 drives Claudereads 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/ekinertac/claude-code-mods
- Path in repo
subagent-router- Source commit
0c50160the exact code the scan read- Author
- @ekinertac
- License
- No license declared — ask the author before reusing code.
- First published
- Last pushed
- First listed here
- On X
- Mentioned in 1 post on X
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.
Posts about this repo
@bcherny already wrote two useful mods. rewrite prompt and write for me. pretty useful stuff so far. https://github.com/ekinertac/claude-code-mods
More from ekinertac/claude-code-mods
prompt-box
ekinertac/claude-code-mods
Draws your own prompts in the scrollback inside a thick colored box; /prompt-color sets the color
rewrite-prompt
ekinertac/claude-code-mods
Ctrl+P rewrites the draft in the prompt box before you send it
tool-oneline
ekinertac/claude-code-mods
Folds tool calls in the scrollback into one line per call, or one line per run of calls, with no result block
write-for-me
ekinertac/claude-code-mods
Ctrl+N writes your next prompt from the conversation so far; a draft in the box is used as a hint