Codex: via the codex plugin, not MCP
Use thecodex Claude Code plugin’s /codex-review or
/codex-adversarial-review command, which shells out to the Codex CLI
runtime directly. There is no codex MCP tool any more. It was removed
from the nix-ai catalog. The plugin reads the repository itself instead of
needing file contents pasted into the prompt.
- Sandbox:
read-only; approval-policy:never; cwd: the repo under review. - Point it at the plan or diff path in the prompt.
Gemini: via the Antigravity (agy) CLI
The reliable command-line path for a Gemini review is Google’s Antigravity agy CLI, not a raw Gemini API call.
-pruns one non-interactive prompt;--add-dirgrants read access to the files it must see;--modelpicks the tier.- It is read-only without
--dangerously-skip-permissions, so it can’t modify anything.
Local model: direct HTTP call
A locally served model that speaks the OpenAI-compatible API needs no wrapper. Call the endpoint directly with the review prompt (see how the Nix stack serves a model for the serving mechanics). If nothing answers on the serving port, the local serving daemon isn’t running. Start it with your platform’s service manager, then poll until the model is loaded:Ground the small modelA local model with 30 billion parameters can confidently claim current tools
“don’t exist.” Stale-cutoff cloud models can do the same. Name current tools in
the system prompt to ground the review. For example: “Claude Code, Codex CLI,
and Gemini CLI are all real, current tools.”
Quick reference
Where to go next
How the Nix stack serves a model
The serving stack and port behind the local endpoint used here.
Choosing a local model
How to pick and verify a model before trusting its review output.
Writing prompts for small models
How to shape the review prompt itself once a small local model is in the loop.
AI orchestration stack
Where multi-model review fits among the rest of the AI tooling.