Security
This page describes what the code does today. It is a description, not a promise. The full policy is in the repository's security document.
Local only
ModelQuad has no server of its own. Its own processes connect only to loopback addresses: each entry point adds an audit hook that refuses any other connect or send made through Python's socket module. The hook does not see a connect made by Windows asyncio's default event loop or a host name lookup; ModelQuad's own code makes neither. It does not cover the programs ModelQuad starts either. Provider traffic is made by the provider programs: the Codex CLI talks to OpenAI under your own sign-in, and Claude Code talks to Anthropic. Codex needs its own connection to OpenAI to review anything.
Claude Code starts ModelQuad's MCP server as a child process and talks to it over standard input and output. The MCP server does not listen on a port, and ModelQuad has no local service. It has four tools, and only one of them starts Codex. That tool is marked as needing your interaction, so Claude Code asks you before every call. The other three only read, or write only the local review record; none of them starts Codex or sends anything. ModelQuad adds no permission rule for its tools.
The one exception is the standing grant, which you turn on yourself, for one repository or for every folder, after a notice: with modelquad settings auto on in a terminal, or by choosing automatic in /modelquad:settings, which asks you once more and then runs the same command. No MCP tool can turn it on, and Claude never turns a grant on, turns ModelQuad back on or undoes an exclusion by itself. A Claude Code session that starts in a granted folder registers the tool Claude uses to ask Codex without that mark, so Claude Code's own permissions decide: your allow rule, or “don't ask again” on the first prompt, lets the calls run. Every call re-checks the grant for its own folder and refuses when it is missing or was turned off, and a repository set to Codex off outranks it. Codex stays read-only either way.
modelquad off is the one switch for everything: every Codex call and every package preview is then refused before any project file is opened, and the plugin's hooks do nothing. Settings that cannot be read count as off, not on. No MCP tool can turn the switch on.
The package and its id
Before a run, ModelQuad packs the named files with the same rules, screening and limits the run uses, and returns a manifest: relative paths, sizes as sent, digest prefixes, what was left out and why, the limits, and a package id. The id is a digest over the task kind, the task text and each sent file's path, size and digest. A run given a package id sends that exact package or nothing, and every run sends nothing if a file changed between the start of the call and the moment Codex is about to start. The id is a digest, not a signature: it binds what was shown to what is sent, and does not prove who made the request.
The manifest is not the whole model input. It lists the files ModelQuad sends and nothing else. Codex builds the request to the model itself and adds its own parts, which ModelQuad neither chooses nor sees: its base instructions, the declarations of the built-in tools it still lists, and your global Codex instructions file if you have one. The token counts in a reply and in the record are Codex's totals for the whole request, not for the package.
When Codex's reply names files it needed and was not given, ModelQuad adds nothing by itself. A new call that names those files is a new review call, with the same consent as any other, and a review has at most two such rounds.
How Codex is started
Only review, exploration and architecture tasks are accepted. Requests for task types that would write files are refused before Codex starts, and so is resuming a Codex session. Codex runs with its read-only sandbox in a new, empty temporary folder, with your Codex configuration ignored, and with web search, its agents, and its shell, unified exec, hooks, code mode, apps, plugins, browser and computer-use features turned off. ModelQuad first reads Codex's own feature listing, and refuses a Codex CLI older than 0.160.0, one whose listing does not confirm that these features are off, or one that rejects the agents setting.
ModelQuad reads the files the call lists itself, within fixed limits, refuses a call that names a credential file and screens the text for secrets. It checks what Codex reports doing and withholds the answer if Codex's event stream shows a command, a file change, an MCP tool call or a collaboration call, or if Codex left processes running. The sandbox and the feature settings are OpenAI's code, not ModelQuad's; ModelQuad relies on them and cannot prove more than that. Codex has no mode without tools, and it still lists a few built-in tools to the model that ModelQuad cannot remove: on Codex 0.164.0, 0.165.0-alpha.1.2 and 0.169.0, a code runner and its wait, two requests for user input and a sleep. The code runner's host is disabled; every call to it failed in the probes of 0.164.0 and 0.165.0-alpha.1.2, and none was tried on 0.169.0. Codex's event stream also leaves some tool calls out, so a clean stream is evidence that nothing it reports acted, not proof that no tool was called. A Codex call cannot start another Codex call.
Codex releases checked by hand: 0.160.0, 0.164.0, 0.165.0-alpha.1.2 and 0.169.0; the repository's security document says what was run on each. A newer release is admitted when its own feature listing confirms the switches, and is otherwise unchecked. The test suite uses a stand-in for Codex: a passing suite shows how ModelQuad handles the answers it was given, not how a particular Codex release behaves.
A Codex program anywhere under the project folder Claude Code was opened in is never used, even when a folder there is on PATH, such as an activated virtual environment. A project folder that is your home folder or above it is the exception, so that your own Codex install is still found. Keep PYTHONPATH absolute or unset: a relative entry could let a project replace ModelQuad's own code.
The review record, your settings and the other files in the state folder stay on your computer. Any process running as you can read them, change them or run the CLI: ModelQuad does not defend against hostile software running under your own account. An administrator can read any file.
Credentials
ModelQuad does not extract or proxy provider credentials. The Codex CLI and Claude Code use their own sign-ins.
Two kinds of files can still hold secrets you put in your configuration. When install replaces an existing modelquad entry in Claude Code's settings, ModelQuad keeps a copy in its state folder so uninstall can restore it. If that entry had env values, such as API keys, the copy has them too. And the backups ModelQuad saves beside the Claude Code files it changes are full copies of the originals.
Only the plugin installs hooks, and they do nothing while ModelQuad is off. They never approve a Claude Code tool call, and they never open a conversation transcript. They are advisory, except two gates that work only in a folder with the standing grant, at most once per change each: the consultation gate stops one edit (the first of a sensitive file, or the one that makes the change three files) until Codex is consulted, and the review gate stops Claude once to ask for a Codex review. A consultation or review that failed or was not done is told to you and never stops the change again.
Releases
ModelQuad is distributed as source only. There are no signed binaries. Install it from the repository. Only the latest release and the main branch receive security fixes.
Reporting a vulnerability
Please report vulnerabilities privately, through GitHub's private vulnerability reporting: open the repository's Security tab and choose Report a vulnerability.
Do not open a public issue, pull request or discussion for a vulnerability. If you cannot use GitHub's form, write to security@modelquad.com.
This is a small project maintained in spare time. Reports are read and answered as soon as practical. Please give a reasonable time to fix the problem before you disclose it.