model-advisor
by Muninn · ★ 0 · updated 2 days ago
Classifies a session's first prompt with Jev and, when it needs a stronger model than the session is on, offers to switch with /model and resend
Install
git clone https://github.com/oaustegard/claude-code-modsclaude --plugin-dir ./claude-code-mods/model-advisorThen 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.startprompt.submitui.rendercommand.run- API calls
$.clock.after$.clock.now$.clock.sleep$.command.register$.command.run$.env.get$.env.set$.http.fetch$.prompt.fill$.prompt.submit$.session.messages$.session.model$.session.repo$.state.get$.state.set$.store.get$.store.set$.ui.resolve$.ui.status$.ui.toast- Draws
AbovePrompt- Can see
every prompt- Reach
- level 3 of 3 other: $.state.getother: $.state.setnetworksets env varsdrives Claudewrites the prompt boxreads 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/oaustegard/claude-code-mods
- Path in repo
model-advisor- Source commit
cfe2d42the exact code the scan read- Author
- Muninn @oaustegard
- 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 oaustegard/claude-code-mods
tripwire
oaustegard/claude-code-mods
Catches recurring agent failures from past transcripts: whole-disk find, foreground poll loops, errors masked by | tail, forgotten background shells
usage-dollars
oaustegard/claude-code-mods
Shows spend in dollars for today and the month so far against a monthly budget, in the status line and /spend