Getting started
After a one-time permission, Claude consults Codex before significant changes and asks it for a review at the end, without you managing the exchange. Codex only advises and reviews, read-only; Claude writes every change. If you prefer to approve each call, that mode stays available, and it is the default until you give the permission.
ModelQuad is an early release for Windows. Four steps: clone the repository, install the package with pip, add the Claude Code plugin, and ask for a review.
Requirements
- Windows (native Windows, not WSL). Other systems are not supported, and install refuses to run there.
- Python 3.11 or newer.
- Git for Windows, to clone and update the repository.
- Claude Code, installed and signed in.
- The OpenAI Codex CLI, version 0.160.0 or newer, installed and signed in. If
OPENAI_API_KEYorCODEX_API_KEYis set, Codex may use that key instead of your ChatGPT sign-in, and OpenAI then bills the key's API account per use.
Install the package
There is no installer. In PowerShell, install the package from PyPI:
pip install modelquad- The package is on PyPI as
modelquad. This puts themodelquadandmodelquad-mcpcommands on PATH. The plugin has no programs of its own and runs these two.
- The package is on PyPI as
Add the plugin to Claude Code
Sign in to Claude Code and to the Codex CLI first. Then:
claude plugin marketplace add razbenaharon/modelquad#stable claude plugin install modelquad@modelquad modelquad doctor- The plugin installs straight from the repository on GitHub; Claude Code fetches it with Git, and there is nothing to clone. Its
stablebranch moves to each release once it is on PyPI, so the plugin and the package are the same version. - The plugin carries the server, six commands only you start (
/modelquad:review, the three focused reviews/modelquad:check-requirements,/modelquad:plan-reviewand/modelquad:challenge-decision,/modelquad:setupand/modelquad:settings), the guide skill Claude reads (/modelquad:guide), and the review reminder with its two gates. modelquad doctorchecks Windows, the Codex CLI, the connection to Claude Code, your settings and the current folder's rules, and says what to do about each.- Restart Claude Code. The first Codex call shows, once, what ModelQuad sends where, instead of starting; ask again to go ahead.
- If the code belongs to an employer or a client, check that you may send it to OpenAI first.
Without the plugin
modelquad install claudewrites the server entry and the commands into Claude Code's user configuration itself. Run it after the pip install, instead of the two plugin commands. It prints what ModelQuad sends where before it writes anything; add--dry-runto see the changes first. This install has no hooks, so there is no review reminder and no gate: Claude asks Codex when its instructions say to, or when you ask. Without the plugin the commands are named/modelquad-review,/modelquad-check-requirements,/modelquad-plan-review,/modelquad-challenge-decision,/modelquad-setupand/modelquad-settings, and the guide skill/modelquad.- The plugin installs straight from the repository on GitHub; Claude Code fetches it with Git, and there is nothing to clone. Its
Ask for it in Claude Code
Name the files, for example: “Ask Codex to review src/server.py and src/auth.py.”
- Codex receives the task text and the files the call lists, at most 32. ModelQuad does not pick files or search the repository.
- A call that names a credential file such as
.env, or a file your Claude Code Read deny rules, Git or a.modelquadignoreexclude, is refused with the reason before Codex starts. - Codex runs with its read-only sandbox in an empty temporary folder, with its tool features switched off. Requests for task types that would write files are refused.
- You need not ask: by default, Claude asks Codex on its own when a change that touched several files is complete, before a commit or PR, when a bug survived one fix attempt, or before a design choice with real trade-offs.
- Claude Code shows its approval prompt before every call that would start Codex, unless you turned on a standing grant for that folder (below). ModelQuad never pre-approves its tools and adds no permission rule for them.
- Do not use bypass-permissions mode on code that matters: everything else Claude does then happens without a prompt, and the live checks recorded for this build did not cover that mode.
modelquad offstops every Codex call on this computer;modelquad onturns ModelQuad back on.
When you need more
Optional settings and housekeeping. Open a topic for the details.
See the package firstLook at exactly what Codex would get, before anything is sent.
Before a call, ModelQuad can show the context package: each file with its size as sent, what is left out and why, the limits, and a package id. In Claude Code, ask “Show me what Codex would get.” In a terminal:
modelquad review package- Add or remove files and look again. Showing a package starts nothing and sends nothing.
- A package holds only the files named in the request, at most 32 files and 128 KiB by default; a repository can lower both.
- The package covers what ModelQuad sends; Codex adds its own instructions, its tool declarations and your global Codex
AGENTS.mdto the request. - The package id covers the task text and every file's content. A call given that id sends that package or nothing, and if a file changed after the package was shown, nothing is sent.
- If Codex says it needed a file it was not given, the reply says so and nothing is added by itself: you see the larger package and agree, for at most two more rounds.
Settings for one repositoryTurn Codex off, or limit it, in one repository.
Run from inside the repository:
modelquad settings repo offoffturns Codex off there,offer-onlykeeps Claude to offering,onlets Claude decide on its own there, andinheritgoes back to your global setting. Add--project DIRfor another folder.- A repository can also carry a
.modelquad.tomlthat narrows Codex use for everyone who opens it. It can only restrict: it can never approve a call, add files or change how Codex runs. The repository's REPO-POLICY.md has the format.
Who decides to ask CodexHave Claude offer a review instead of asking Codex on its own.
By default Claude decides on its own when a second opinion would help. To have Claude offer a review in one sentence instead, and call Codex only when you agree or ask:
modelquad settings proactive offon goes back. It takes effect in new Claude Code sessions. Either way, Claude Code's approval prompt appears before each Codex call, until you give the one-time permission below.
Working without prompts: the one-time permissionOptional. Off until you turn it on yourself, for one repository or every folder.
The one-time permission, the standing grant, is off until you turn it on yourself. In Claude Code, choose automatic in /modelquad:settings: it shows what that means and asks you once more before it runs the same command. Or run it in a terminal, in the repository (or with --project DIR; --global for every folder, including new ones). It shows what it means first and asks you to type yes; where it cannot ask, it changes nothing until you run it again with --yes after reading the notice:
modelquad settings auto on- Claude never turns a grant on, turns ModelQuad back on or undoes an exclusion by itself, and no MCP tool can turn a grant on. When a call is refused because the grant is off or the folder is excluded, Claude tells you and changes nothing.
- New Claude Code sessions there register the tool Claude uses to ask Codex without the per-call approval mark, so Claude Code's own permissions apply. Add the rule it prints to
permissions.allow, or answer “don't ask again” the first time Claude Code asks. - Files then go to OpenAI with no per-call prompt and no file list shown to you first; what is sent does not change, and each call is recorded as before.
- In a granted repository, Claude consults Codex before a large, architectural or sensitive change, and asks for a review when a change of three files or more (or one sensitive file) is done. The first edit of a sensitive file, or the edit that makes the change three files, is stopped once until Codex was consulted, and if Claude stops without a review, the review gate stops it once and asks for one. The gate never stops twice.
- If Codex fails or is unavailable, Claude says so, and ModelQuad tells you directly that the change was not reviewed.
modelquad settings auto offturns it off; a session that started with the grant refuses its next Codex call.modelquad off,modelquad settings repo offand a.modelquad.tomlthat turns Codex off outrank the grant.
Settings and the review reportSee your settings, and the record of what was sent, found and confirmed.
/modelquad:settings in Claude Code shows three things: whether ModelQuad is on, whether Codex calls are automatic or approved one by one, and the history of consultations and reviews here. It then asks which change you want and runs only the one you pick; turning automatic on shows what that means and asks you once more. The same view in a terminal, with the command for each change:
modelquad settings showmodelquad settings alone does the same, and --project DIR shows another folder. Excluding a folder stays a command: modelquad settings repo off.
Each Codex finding names its file and line or line range when one applies, the claim, Codex's reasoning, a severity and Codex's confidence with a short reason. Claude checks the claim against the code and your requirements and records its verdict and evidence before fixing, and again after the fix. Neither Codex's confidence nor Claude's agreement counts as proof. To see the record:
modelquad review report- It shows each call and its package, what Codex found, what was confirmed with independent evidence (a test, a reproduction, CI or your own verdict), what Claude only agreed with, what was wrong, what was fixed and verified, and the time and the token counts Codex reported.
modelquad review verdict <decision_id> <F1> confirmed|refuted|undecidablerecords your own verdict, which outranks Claude's.- The record holds no task text, no file contents and no full answer.
Terminal or desktop appWorks in both.
ModelQuad works in Claude Code in a terminal and in the Claude desktop app's Code tab. In the live checks recorded so far, the approval prompt before a Codex call appeared in both, also in auto mode.
UpgradingClose Claude Code first, then run python -m modelquad update.
- Close every Claude Code window (in a terminal session, type
/exit). - In PowerShell, run
python -m modelquad update. It upgrades the package, refreshes the plugin and runs the checks ofmodelquad doctor. Nothing updates unless you run it.
Claude Code keeps a copy of the plugin per version number, so an update alone can keep old files when the version did not change. A running Claude Code keeps ModelQuad's MCP server program open, and Windows does not let pip replace a running program: the upgrade then fails halfway and leaves ModelQuad uninstalled until you run it again with Claude Code closed.
What it changes on your machineThe plugin changes nothing outside Claude Code's own plugin folder.
The plugin changes nothing outside Claude Code's own plugin folder. Without the plugin, modelquad install claude writes this to Claude Code's user configuration:
%USERPROFILE%\.claude.json: an MCP server entry namedmodelquad, with a 15-minute timeout for ModelQuad's tool calls only. If one already existed, ModelQuad records it so uninstall can put it back.%USERPROFILE%\.claude\skills\modelquad\: the/modelquadskill, and beside itmodelquad-review,modelquad-check-requirements,modelquad-plan-review,modelquad-challenge-decision,modelquad-setupandmodelquad-settings: the commands only you start.- Before changing an existing file, ModelQuad saves a copy beside it named
<file>.modelquad-backup-<time>.
While it runs, ModelQuad writes only to its state folder: your settings, per-repository choices and any standing grant in preferences.json, keyed by a hash of the repository, never its path or name; the review record; small records of the review reminder per session and of a running Codex call; and an installation id.
ModelQuad does not write your global CLAUDE.md and adds no permission rule; its guidance reaches Claude through its MCP server instructions and the guide skill (/modelquad:guide in the plugin, /modelquad without it). It does not read or change Codex's config.toml: Codex is started with its user configuration ignored.
How to remove itFive steps: the plugin, the configuration, the backups, the state folder, the package.
- If you installed the plugin,
claude plugin uninstall modelquad@modelquadremoves it andclaude plugin marketplace remove modelquadremoves the local marketplace. modelquad uninstall clauderemoves the MCP entry with its timeout and the skills. Amodelquadentry that is not ModelQuad's own is left in place, and uninstall puts back amodelquadentry that install replaced. Use--dry-runto preview.- Delete the
*.modelquad-backup-*files, which install left beside each file it changed. Check them first: they are full copies and can hold secrets you put in your configuration. - Close the Claude Code sessions that use ModelQuad, then delete the state folder (
modelquad privacyshows it). pip uninstall modelquad.