auto-model

auto-model is a Claude Code mod by hussam8988 that reads your first prompt and picks Haiku, Sonnet or Opus for the whole session (never switches mid-session, so the prompt cache stays intact).

Updated 2026-10-24

What is auto-model?

auto-model is a Claude Code mod by hussam8988 that reads your first prompt and picks Haiku, Sonnet or Opus for the whole session (never switches mid-session, so the prompt cache stays intact). It is listed under Cost & usage and has no public popularity data yet.

TypeClaude code mod
Authorhussam8988
Repositoryhussam8988/claude-mods
Popularityno public popularity data yet
CategoryCost & usage
SecurityLow risk (92/100)
Rank#6,300 of 9,397 Claude Code mods; #1,173 in Cost & usage
Last commit2026-10-24
Hooks4 events
Seesonly the events it hooks
Draws onnothing

Is auto-model safe to install?

auto-model scores 92/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 6 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.command.register
$.config.list
$.model.completedrives Claude
$.session.turns
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.logdraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install auto-model?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/hussam8988/claude-mods
    claude plugin validate ./claude-mods/plugins/auto-model
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add hussam8988/claude-mods && claude plugin install auto-model@hussam-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs auto-model for you:

Install the "auto-model" Claude Code mod from https://github.com/hussam8988/claude-mods/tree/main/plugins/auto-model. Run claude plugin validate on it first and show me what it can access before you enable it.

More from hussam8988/claude-mods

This repository has 3 Claude Code mods on MCPMods.

  • prompt-upgrade: /boost asks a few quick questions, then rewrites a short prompt into a detailed one you can run, edit or copy (Low risk)
  • todays-report: /report shows how many tasks Claude did, the hours it saved you and what that time is worth, by day, week, month and yea (Low risk)