Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By omriariavv0.5.0MITIn 1 marketplace
Applies Anthropic's 'Which Claude model should you build with?' guidance: injects model/effort rules at session start, checks every Agent, team-member, and Workflow launch for an explicit, task-appropriate model, and can delegate the choice to a decisions API (OpenAI, Google, any LiteLLM gateway, or a custom command) with an optional local-model tier, and keeps a local ledger of decisions, subagent token usage, cost, and estimated savings with a /model-picker:report view. Stamps subagent results with the model that actually ran, and ships an Ollama MCP tool (ask_local) for a $0 local tier.
Claude hands work to one, or you mention it with @.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Applies Anthropic's Which Claude model should you build with? guidance (Nov 2026) to every session and every agent launch. Optionally hands the choice to a decisions API and adds a local-model tier.
claude plugin marketplace add omriariav/omri-marketplace
claude plugin install model-picker@omri-marketplace
| Component | Behavior |
|---|---|
| SessionStart hook | Injects the <model-picker-guide> rules from guide.md (model by task, effort before model, fan-out limits). |
PreToolUse hook on Agent/Task | Checks subagent and teammate launches. A missing model gets a recommendation (tier + effort); a model two or more tiers off the task gets a note. Skips fork, built-ins that pick their own model, and agents whose definition pins model. |
PreToolUse hook on Workflow | Flags agent() calls in workflow scripts that set no model. |
/model-picker:model-picker [task] | Per-request recommendation (model, effort, why, source, optional split). No argument loads the rules (Codex/Cursor/Grok fallback). |
hooks/model_picker.py route "<task>" | CLI: prints the recommendation as JSON. |
model-picker:scout agent | Haiku read-only scout for search, logs, and test output. |
| SubagentStop hook | Records each finished subagent's tokens, model, cost, and the cost at the session model. |
PostToolUse hook on Agent | With MODEL_PICKER_STAMP=1, stamps each subagent result with the model that actually ran, its effort, tokens, cost, and whether it followed the recommendation. |
ask_local MCP tool | Runs tool-free text work on a local Ollama model at $0, stamped and logged. |
/model-picker:report [period] | Launches, model mix, follow rate, router stats, spend by model, estimated saving; also opens an HTML version. |
Set as environment variables (for example in settings.json → env), or as the same keys in a JSON file at ~/.config/model-picker/config.json (override the path with MODEL_PICKER_CONFIG). Environment wins over the file. Keep company-specific gateway settings in that file, outside any repo.
| Variable | Values | Default |
|---|---|---|
MODEL_PICKER_MODE | advise: note only, launch proceeds. enforce: deny launches without a model, with the recommendation in the reason. off. | advise |
MODEL_PICKER_INJECT | 0 skips the SessionStart injection. | 1 |
MODEL_PICKER_LOCAL_HINT | Turns on the local tier. Text telling Claude how to reach the local model. | unset |
MODEL_PICKER_ROUTER | heuristic, openai-decisions, google-decisions, command | heuristic |
MODEL_PICKER_ROUTER_URL | Base URL. Point openai-decisions at any LiteLLM gateway that serves /v1/decisions. | vendor URL |
MODEL_PICKER_ROUTER_MODEL | Decision model | gpt-6-luna / gemini-decision-1 |
MODEL_PICKER_ROUTER_API_KEY_ENV | Name of the env var that holds the key; none sends no auth header (gateways on a private network) | OPENAI_API_KEY / GEMINI_API_KEY |
MODEL_PICKER_ROUTER_API_KEY_CMD | Command that prints the key (e.g. security find-generic-password -w -s my-gateway) | unset |
MODEL_PICKER_ROUTER_HEADERS | JSON object of extra headers (attribution, redaction) | {} |
MODEL_PICKER_ROUTER_METADATA | JSON object sent as request metadata (openai-decisions) | {} |
MODEL_PICKER_ROUTER_CMD | Executable for command: JSON {task, tiers, efforts} on stdin, JSON {tier, effort, confidence} on stdout | unset |
MODEL_PICKER_ROUTER_INPUT | What task text leaves the machine: description (agent's short description), brief (+ first 500 prompt chars), full (+ up to 8000) | description |
MODEL_PICKER_ROUTER_TIMEOUT | Seconds | 3 |
MODEL_PICKER_ASK | 0 stops noticing a model or effort you name in your prompt (see You asked for it) | 1 |
MODEL_PICKER_ROUTER_PAUSE | Minutes to skip router calls after 3 failures in a row (timeouts, connection or HTTP errors, a router/key command exiting non-zero) or one rejected request (HTTP 400/401/403/404/405/407). Connection failures and rejections pause every call (launches use the keyword heuristic, the prompt line stays off); repeated prompt or launch failures pause only that kind of call (see the decisions API section). One line tells you when a pause starts. Shared by all sessions (router-health.json in the state dir; delete it to retry at once). 0 never pauses | 10 |
MODEL_PICKER_ROUTER_MIN_CONFIDENCE | Below this, the heuristic decides | 0.5 |
MODEL_PICKER_ROUTER_ON_EXPLICIT | 1 also asks the router about launches that already set a model, so every launch gets a real verdict (follow rate and credited savings depend on it). Costs one router call (~0.7 s) per launch | 0 |
MODEL_PICKER_LOG | 0 turns off the local ledger | 1 |
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub omriariav/omri-marketplace --plugin model-picker