Skip to content
ModelQuad

Open source · Apache-2.0 · Windows

A read-only second-opinion review of only the selected project files, with a local record of every review. On Windows.

Works with Claude Code and your own OpenAI Codex CLI. Not affiliated with Anthropic or OpenAI.

After a one-time permission, Claude asks your own Codex CLI for an opinion before a significant change and for a review before it hands a change over, 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. Codex gets only the files you name, and every review is recorded on your computer.

Free · Version 0.5.4 · On PyPI · Windows only · No ModelQuad account · Early release

claude code · an illustration
  1. youRefactor the retry logic in billing/.
  2. claudeThis change touches four files. Here is what Codex would get if I ask it for a review.
  3. modelquadpackage 7c41e0a9… · task text and 4 files, 9,214 bytes · nothing left outretry.py 3,862 · client.py 2,107 · charge.py 1,940 · test_retry.py 1,305
  4. youApprove. (Claude Code's prompt, unless you turned on a standing grant for this folder.)
  5. modelquadCodex started · Codex is working (16s) · Codex answered
  6. codexTwo findings. F1 retry.py:48, high: a timeout can send the charge twice. F2 client.py:12, low: an unused import.
  7. claudeConfirmed F1 with a failing test. I'll fix it.
  8. claudeRefuted F2: client.py:12 is used by a type hint. Both verdicts are recorded on your computer.
An illustration of one exchange. Your files, the findings and the wording will differ.

How it works

Claude consults, Codex reads, Claude checks, you see the result.

  1. 1

    A moment for a second opinion

    Before a large or sensitive change, when a multi-file change is done, before a commit or PR, or after a bug survived one fix. You can also ask with /modelquad:review.

  2. 2

    You see the package, and you approve

    Claude names the files. You can see the context package first. Claude Code asks you before the call, unless you gave the one-time permission for that folder.

  3. 3

    The review runs read-only

    ModelQuad screens the named files for secrets and hands their text to your Codex CLI, which runs read-only in an empty temporary folder with its tool features switched off.

  4. 4

    Each finding is checked, and the review is recorded

    Codex's findings come back as claims to check. Claude checks each one against the code and records its verdict and evidence. modelquad review report shows what was sent, found and confirmed.

The sandbox is OpenAI's code; ModelQuad relies on it and checks what Codex reports doing, but cannot prove more than that. Install steps

Who it is for

Developers on Windows who already use Claude Code and the OpenAI Codex CLI, each under their own sign-in, and who want a second model to look over Claude's work while keeping control of what that model receives.

Needs
Native Windows, Python 3.11 or newer, Git, Claude Code and the Codex CLI, both signed in with your own accounts.
Install
Run pip install modelquad, then add the Claude Code plugin straight from GitHub. There is no installer and nothing to clone. The package is on PyPI as modelquad.
Sends
The task text and the files the call names go to OpenAI through your Codex CLI, after a screen for secrets. Codex's answer becomes part of your Claude conversation.
Does not
Let Codex change files, pick or search for files by itself, change either provider's usage limits, or connect anywhere but loopback from its own processes.

What it does today

ModelQuad itself runs on your computer. It works with Claude Code and the Codex CLI, and you keep working in Claude Code. Open any item for the details.

A read-only second opinion

Claude Code can ask Codex for a review, an exploration or an architecture opinion about the files you name. ModelQuad passes Codex the text of those files with the task. Codex runs with its read-only sandbox in an empty temporary folder, with its file, command, web and MCP tool features switched off. Requests for task types that would write files are refused.

A package you can see, and what you saw is sent

Before a call, ModelQuad can show the context package: each file with its size as sent, what is left out and why, and a package id. Ask Claude “Show me what Codex would get”, or run modelquad review package in a terminal. Showing a package starts nothing and sends nothing. A call given that id sends that package or nothing; if a file changed after the package was shown, nothing is sent. If Codex needed a file it was not given, nothing is added by itself: you see the larger package and agree, for at most two more rounds. At most 32 files and 128 KiB by default; a repository can lower both.

Secrets are screened first

ModelQuad refuses a call that names a credential file such as .env or auth.json, replaces secret-looking values, and refuses text that holds a private key or a recognizable access token. The screen works on file names and on the shape of values and cannot be complete, so choose the files you name.

A record of every review

Each Codex finding names its file and line, the claim, Codex's reasoning, a severity and Codex's confidence with a reason. Claude checks the claim against the code and records its verdict and evidence before and after a fix. modelquad review report 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, and the time and the token counts Codex itself reported. Before a run, the package preview gives the exact size of what would be sent and, once your own record holds enough reviews, an input-token range labelled as an estimate, not a count. ModelQuad estimates no price. The record stays on your computer and holds no task text, no file contents and no full answer.

Commands and settings inside Claude Code

Six commands only you start: /modelquad:review asks Codex about files you name; /modelquad:check-requirements, /modelquad:plan-review and /modelquad:challenge-decision ask it one defined question (are the requirements met, does the plan hold, does the decision hold); /modelquad:setup explains any setup problem in plain words, and /modelquad:settings shows whether ModelQuad is on, whether Codex calls are automatic or approved one by one, and the history, then runs only the change you pick; turning automatic on asks you once more. Claude cannot start them on its own, and Claude Code still asks before every Codex call, unless you turned on a standing grant for that folder. In a terminal: modelquad settings show.

Per-repository settings and one switch

modelquad settings repo off turns Codex off in one repository; offer-only, on and inherit are the other choices. A repository can also carry a .modelquad.toml that narrows Codex use for everyone. That file can only restrict: it can never approve a call or add files. modelquad off stops every Codex call on this computer; modelquad on turns ModelQuad back on, and no MCP tool can.

Approve each call, or give a one-time permission.

  • By default, Claude Code asks you before every call that would start Codex.
  • Turn on a standing grant for a repository yourself, and Claude consults Codex there without a prompt for each call. Claude never turns a grant on.
  • Turn it off, exclude a folder, or stop every Codex call with modelquad off, at any time.
Every rule, in full (11)
  • By default, Claude decides on its own to ask Codex for a read-only review at set moments: 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. You need not ask.
  • modelquad settings proactive off makes Claude offer a review in one sentence instead, and call Codex only when you agree or ask. on goes back. It takes effect in new Claude Code sessions.
  • Claude Code shows its approval prompt before every call that would start Codex, unless you turned on a standing grant for that folder yourself: the one tool that starts Codex is marked as needing your interaction. 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.
  • The one-time permission, the standing grant, is off until you turn it on yourself: choose automatic in /modelquad:settings, which shows what that means and asks you once more, or run modelquad settings auto on in a terminal, for one repository or with --global for every folder. It removes the per-call approval mark from the tool Claude uses to ask Codex, so Claude Code's own permissions decide: you add the allow rule it prints, or answer “don't ask again”. modelquad settings auto off turns it off, and modelquad off, modelquad settings repo off or a .modelquad.toml that turns Codex off outranks it.
  • Claude never turns a grant on, turns ModelQuad back on or undoes an exclusion by itself. When a call is refused because the grant is off or the folder is excluded, Claude tells you and changes nothing.
  • In a repository with the grant, two gates act, each at most once per change: the first edit of a sensitive file, or the edit that makes a change three files, waits until Codex is consulted, and a multi-file or sensitive change is not handed over before one Codex review is asked for. If Codex fails or is unavailable, ModelQuad tells you that the change was not reviewed, and the change is not stopped again.
  • The prompt shows the files the call lists. Codex receives only those files, at most 32. A call that names a file your Claude Code Read deny rules, Git or a .modelquadignore exclude is refused with the reason, before Codex starts.
  • To see more than the prompt shows, ask for the package first: each file and its size, what is left out and why, and a package id. A call given that id sends that package or nothing.
  • 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 appeared in both, also in auto mode.
  • To stop every Codex call on this computer, run modelquad off. modelquad on turns ModelQuad back on.
  • Treat Codex's answer as input to check, not as a verified result.

What it is not

ModelQuad works with Claude Code and the OpenAI Codex CLI, and with no other coding agent or provider.

Not a way to change any usage limit

Each provider's limits apply as they are. ModelQuad reads no quota and shows none.

Not a file chooser

ModelQuad sends what Claude names and you approve. It does not pick files, rank them or search the repository, and Git is not asked which files changed.

Not a proof that Codex has no tools

Codex has no mode without tools. ModelQuad turns off what Codex lets it turn off, and withholds an answer when Codex's event stream shows a tool call. A few built-in tools stay listed to the model; the security page says which.

Not a way to have Codex change your code

ModelQuad's Codex runs are read-only. Codex gives an opinion; Claude Code and you decide what to do with it. To have Codex change code, use OpenAI's Codex plugin for Claude Code: ModelQuad works alongside it, and you can use both.

Not a proxy or a hosted service

ModelQuad does not extract your provider credentials or relay provider traffic. It runs OpenAI's command-line tool, under your own sign-in. There is no ModelQuad server and no account.

Not a product of Anthropic or OpenAI

ModelQuad is an independent project. It is not affiliated with, endorsed by or sponsored by either company.

ModelQuad runs on your computer. The agents still talk to their providers.

  • ModelQuad has no server of its own, no update check and no telemetry. Its own processes connect only to loopback addresses; the Codex CLI it starts connects to OpenAI under your own sign-in.
  • For a Codex call, the task text and the text of the files the call lists go to OpenAI through the Codex CLI, under OpenAI's terms. ModelQuad refuses a call that names a credential file and replaces secret-looking values first.
  • Anything ModelQuad returns to Claude Code, including Codex's answers, becomes part of your Claude Code conversation, which Claude Code sends to Anthropic, or to the cloud provider you set Claude Code up to use.
  • ModelQuad never reads a conversation transcript.
  • The review record stays on your computer until you delete it. It holds no task text, no file contents and no full answer.
  • Turn off model training with both providers while you use ModelQuad.

Read the full privacy page

Common questions

What is ModelQuad?

A local MCP server and Claude Code plugin with one job: Claude can ask your own OpenAI Codex CLI for a read-only second opinion on the files it names, as a review, an exploration of your code or an architecture opinion. Claude writes every change; Codex advises.

ModelQuad packs those files, runs Codex read-only in an empty temporary folder, and keeps a local record of what was sent, what Codex found and what became of each finding.

After a one-time permission, Claude consults Codex before a significant change and asks it for a review before it hands a change over. Until you give the permission, approving each call is the default. Version 0.5.4 is an early release for Windows, on PyPI.

Which coding agents does it work with?

Claude Code, with the OpenAI Codex CLI for the second opinion. No other coding agent or provider is supported; support for another one starts with an issue in the repository.

Does ModelQuad ever start Codex on its own?

No. Claude decides when to ask Codex, and every call waits for Claude Code's approval prompt, which only you can answer, unless you turned on a standing grant for that folder yourself. Claude never turns a grant on, turns ModelQuad back on or undoes an exclusion by itself.

Showing a package starts nothing and sends nothing. modelquad off stops every Codex call on this computer.

Can I see what Codex would get before it is sent?

Yes. Ask Claude “Show me what Codex would get”, or run modelquad review package in a terminal. You see each file with its size as sent, what is left out and why, the limits, and a package id. Showing a package starts nothing and sends nothing.

A call given that id sends that package or nothing; if a file changed after the package was shown, nothing is sent. The package holds only the files named, at most 32 files and 128 KiB by default. ModelQuad does not pick, rank or search for files.

Codex adds its own instructions, its tool declarations and your global Codex AGENTS.md to the request; the repository's SECURITY.md describes that.

Who approves a call to Codex?

You do. Claude Code shows its approval prompt before every call that would start Codex, with the task and the files the call lists, unless you turned on a standing grant for that folder yourself (next question). ModelQuad never pre-approves its tools and adds no permission rule for them.

By default Claude decides on its own when to ask: 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. modelquad settings proactive off makes Claude offer a review instead; on goes back, in new Claude Code sessions.

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.

Can I let Claude consult Codex without a prompt each time?

Yes, with a one-time permission, the standing grant. It is off until you turn it on yourself: choose automatic in /modelquad:settings, which shows what that means and asks you once more, or run modelquad settings auto on in the repository (--global for every folder).

Claude Code's own permissions then decide: add the rule it prints to permissions.allow, or answer "don't ask again" the first time Claude Code asks. Files go to OpenAI with no per-call prompt and no file list shown first; what is sent does not change, and each call is recorded as before.

In a granted repository, the first edit of a sensitive file, or the edit that makes the change three files, is stopped once until Codex is consulted, and a review gate asks once for a review before a change of three files or more (or one sensitive file) is handed over. If Codex fails, ModelQuad tells you the change was not reviewed.

Claude never turns a grant on by itself, and no MCP tool can. modelquad settings auto off turns it off; modelquad off, modelquad settings repo off and a .modelquad.toml that turns Codex off outrank it.

Can Codex change my files?

Not through ModelQuad. Codex runs with its read-only sandbox in an empty temporary folder, with its file, command, web and MCP tool features switched off. Requests for task types that would write files are refused before Codex starts.

If Codex's event stream shows a command, a file change or a tool call anyway, ModelQuad withholds the answer. The sandbox and its feature settings are OpenAI's code; ModelQuad relies on them and checks what Codex reports, but cannot prove more than that.

Codex still lists a few built-in tools to the model that ModelQuad cannot remove; the security page says which. Treat Codex's answer as input to check, not as a verified result.

Does ModelQuad send my code to its own server?

No. There is no ModelQuad server, no update check and no telemetry. ModelQuad's own processes connect only to loopback addresses.

Your work still leaves your computer through the provider programs. For a Codex call, the task text and the text of the files the call lists go to OpenAI through the Codex CLI, under OpenAI's terms. ModelQuad first refuses credential files and files you excluded, and replaces secret-looking values.

Anything ModelQuad returns to Claude Code becomes part of your Claude Code conversation, which Claude Code sends to Anthropic, or to the cloud provider you set Claude Code up to use.

Is ModelQuad free?

Yes. ModelQuad is free and open source under the Apache License 2.0. There is no account, subscription, billing, or paid or hosted version, and it takes no payments or donations. You still use your own Claude Code and Codex accounts, under their terms and limits.

Which operating systems are supported?

Windows only, native Windows and not WSL. Other systems are not supported, and install refuses to run there.

All questions →

Install it with pip and one plugin command.

Free and open source under the Apache License 2.0. Install the package with pip from PyPI and add the plugin to Claude Code straight from GitHub.

Windows only · Python 3.11 or newer · Git for Windows · Claude Code and the Codex CLI 0.160.0 or newer, both signed in