auto-model
by AneeqMalik · ★ 0 · updated 18 Oct 2026
Routes each turn to Haiku, Sonnet or Opus by workload, and only switches when the prompt-cache re-write cost is worth it.
Install
/plugin marketplace add AneeqMalik/claude-code-mods/plugin install auto-model@claude-code-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.runturn.startturn.stepturn.complete- API calls
$.clock.now$.command.register$.model.classify$.session.model$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.toast- 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/AneeqMalik/claude-code-mods
- Path in repo
auto-model- Source commit
36f0d02the exact code the scan read- Author
- @AneeqMalik
- 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 AneeqMalik/claude-code-mods
token-usage
AneeqMalik/claude-code-mods
Narrow pane beside the transcript with this session's input, output and cache tokens. /tokens opens it.
trim-startup-context
AneeqMalik/claude-code-mods
Finds MCP servers whose tool schemas bloat startup context but are never used, and denies them automatically per project; /trim-context undo reverts.
usage-status
AneeqMalik/claude-code-mods
A pill above the prompt showing model, context, cost and rate limits; auto-compacts at 250k tokens.