Skip to content

About

Model Picker: JEV-powered Codex model and effort recommendations as task scope grows. Manual switching, private local state, MIT licensed.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Model Picker

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.

CI License: MIT Python: stdlib only Codex plugin Claude Code plugin

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):

🔶 Model recommendation


JEV recommends gpt-6-astra / high.

Select it in the model picker if useful. No settings were changed.

Install

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 -w

Then 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-picker

Codex 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.

Use it

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.

How it works

Sequence: you send a prompt; Codex or Claude Code passes the event to advisor.py; advisor.py reads session state and the API key, sends a bounded snapshot to TypeSafe JEV, saves the result, and returns a warning plus a chat callout. You switch models yourself.

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.

What leaves your machine

Data flow: your prompt and API key enter advisor.py. It writes bounded excerpts to local session state, sends a bounded snapshot with your API key over HTTPS to TypeSafe JEV, and shows only an allowlisted model and effort label in chat.
  • Sent to api.typesafe.ai on 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 ~/.codex or ~/.claude.
  • Never read: your source files or the full transcript. No telemetry.
  • Off switch: "enabled": false in the host's model-advisor.json. Privacy details.

Limits

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.

Documentation

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.

About

Model Picker: JEV-powered Codex model and effort recommendations as task scope grows. Manual switching, private local state, MIT licensed.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages