Model and effort suggestions for Codex and Claude Code that follow your task as it grows.
When a task gets harder, it asks TypeSafe's JEV model which of your host's models and effort levels fit the work, then shows the answer in chat. You make the switch; the plugin never changes a setting.
Start a short summary on a big model and the first check can point you to a lighter one.
When the session turns into a multi-tenant architecture review, the reply starts with this (Claude Code names Claude models and /model and /effort):
JEV recommends gpt-6-astra / high.
Select it in the model picker if useful. No settings were changed.
You need macOS or Linux, Python 3.9 or later, and a
TypeSafe API key, billed separately from your
Codex or Claude plan. Both hosts read the same key: export TYPESAFE_API_KEY
where the host runs, or on macOS store it in Keychain:
security add-generic-password -a "$USER" -s jev-codex-api-key -wThen add the plugin to your host:
# Codex (with plugin hooks), in a terminal
codex plugin marketplace add Tatendaz/model-picker
codex plugin add codex-model-advisor@model-picker
# Claude Code (2.1.257 or later), inside a session
/plugin marketplace add Tatendaz/model-picker
/plugin install claude-model-advisor@model-pickerCodex runs the hook only after you trust it: open /hooks in the Codex CLI and
trust the codex-model-advisor@model-picker command. Claude Code needs no such
step. Start a new session in either host; its first real prompt runs a check.
Or paste this to Claude Code or Codex and let it do the install:
Install the Model Picker plugin from github.com/Tatendaz/model-picker. Add the marketplace, install the plugin for this host, then tell me how to store my TypeSafe API key and, in Codex, how to trust the hook.
| Send as a prompt | What happens |
|---|---|
model advisor recheck |
Reassesses your last request now and always shows the result. |
mute model advisor |
Silences alerts for this session. |
unmute model advisor |
Turns alerts back on. |
The hook checks your first real prompt, any prompt that brings a new kind of scope (architecture, integration, migration, security, repeated failures), and every fourth prompt. It stays quiet for replies such as "ok", repeats, prompts within 30 seconds of a check, and non-upgrades after the first check. Each suggestion shows once, with at most one upgrade alert every 15 minutes.
It never blocks your prompt: after the check (5-second timeout) the turn runs on the model you selected, so a suggestion applies to your next turn. In Claude Code, two local hooks track your active model. Full rules.
- Sent to
api.typesafe.aion each check, under your key: the latest prompt (3,000 characters), the first task excerpt, the last four requests, your model and effort, and the previous suggestion. - Kept locally: session files, mode 0600, in
~/.codexor~/.claude. - Never read: your source files or the full transcript. No telemetry.
- Off switch:
"enabled": falsein the host'smodel-advisor.json. Privacy details.
No host lets this hook switch models: UserPromptSubmit has no model or effort output
(why). Claude Code does not tell hooks your effort level. No native Windows.
Suggestions come from a classifier and can be wrong.
| Page | Covers |
|---|---|
| How it works | Check rules, alert rules, the TypeSafe request, both hosts |
| Configuration | Config keys, environment variables, host defaults, uninstall |
| Privacy and trust | Data sent, local state, hook trust, credentials |
| Limitations | Automatic switching, what has been verified |
| Brand assets | Logo files, colour, clearspace, how to redraw them |
To uninstall, disable the plugin and delete the files in Configuration.
make test runs the suite with no network or key. Diagram sources.
Contributing · Security · Roadmap · MIT © Tatenda Zhou · Not affiliated with OpenAI, Anthropic or TypeSafe.