From Model Fit
Before the first real task of a session, a quick Haiku check asks whether the session model fits it, on four tiers: Haiku, Sonnet, Opus, Fable. On a mismatch you get a Switch or Stay dialog before anything runs. It respects your cap and your availableModels setting and, in auto, probes each model once a day; a transient error counts as available.
5 events · 21 calls
Ships in Model Fit. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
env.getsettings.readcommand.runmodel.completeprompt.submitEach event it registers a hook on, with the matcher when it sets one
prompt.submitui.render{component=AskUserQuestion}turn.stepturn.startturn.completeEvery mods API method its source calls, by namespace
nowlistrungetcompletefillreadidmessagesmodelsurfacesusagereadgetsetgetsetabortaskstatustoastANTHROPIC_DEFAULT_FABLE_MODELANTHROPIC_DEFAULT_HAIKU_MODELANTHROPIC_DEFAULT_OPUS_MODELANTHROPIC_DEFAULT_SONNET_MODELWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.tsx (written ./register.tsx)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub maksymskuibida/mskuibida-ai-tools --plugin model-fit