codex-review-gate
Skill17 starsChanged 3 months agoMITView on GitHub
Submit completed work to Codex through the local llm-cli-gateway stdio MCP server and continue until an evidence-backed, unconditional approval. Use after implementation, before merging, or whenever a process requires Codex sign-off.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- aaronartistzhang-afk/DailyWorktheir own version, first seen Aug 29, 2026
- jonhpark7966/my-skillstheir own version, first seen Dec 31, 2025
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- aaronartistzhang-afk/DailyWork★ 1same name
- jonhpark7966/my-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- site/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- site/llms.txtllms.txt
- async-job-orchestrationSkill
- implement-review-fixSkill
- least-cost-routingSkill
- multi-llm-reviewSkill
- personal-agent-config-kitSkill
- provider-claudeSkill
- provider-codexSkill
- provider-cursorSkill
- provider-devinSkill
- provider-geminiSkill
- provider-grokSkill
- provider-mistralSkill
- public-demo-sessionSkill
- retrospective-walkSkill
- secure-orchestrationSkill
- session-workflowSkill
- supply-chain-guardSkill
- agent-codex-gateSkill
- design-review-cycleSkill
- model-routingSkill
- multi-llm-consensusSkill
- multi-llm-orchestrationSkill
- red-team-assessmentSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this gate after implementation and local verification.
- Distinctive: line 19
Use sandboxMode: "read-only" for an inspection-only review.
- Distinctive: line 25
Do not impose a review-round, turn, token, price, cost, or wallclock cap.
- Distinctive: line 26
Do not use a provider equivalent of those controls to shorten a mandatory review.
- Very specific: line 33
Keep fixing and re-reviewing until the required verdict arrives.
- Very specific: line 46
Do not combine that posture with fullAuto, a resume that needs a new sandbox, or a gateway tool/MCP restriction.
- Distinctive: line 86
If the normal review needs to run a command that writes generated output, use sandboxMode: "workspace-write" for that call.
- Distinctive: line 116
Do not use a numerical round count as a reason to escalate or accept work.
- Distinctive: line 121
When async jobs are registered and the gateway returns status: "deferred", poll through gtwy using llm_job_status and collect the terminal …
- Distinctive: line 159
Use exactly one of prompt or promptParts.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex Review Gate
Use this gate after implementation and local verification. Dispatch reviews only through the local gtwy stdio MCP server, never through a direct codex CLI command. In Codex the gateway tools normally have names such as mcp__gtwy__codex_request and mcp__gtwy__codex_request_async; some clients show their short names instead.
Non-Negotiable Review Rules
- Omit model unless the user selected one.
- Pass approvalStrategy: "legacy". Codex cannot use mcp_managed, and approvalPolicy has no effect for it.
- Use sandboxMode: "read-only" for an inspection-only review. Use sandboxMode: "workspace-write" only when the reviewer needs to create build or test artifacts. Do not use fullAuto; it is deprecated shorthand for workspace-write.
- Require this exact terminal JSON verdict:
APPROVED_UNCONDITIONALLY,CHANGES_REQUIRED, orBLOCKED_EXTERNAL. - Do not impose a review-round, turn, token, price, cost, or wallclock cap. Do not use a provider equivalent of those controls to shorten a mandatory review. The configured idle-timeout safeguard only detects a process that stops producing output.
- Accept only explicit, evidence-backed
APPROVED_UNCONDITIONALLY. Conditional approval, residual findings, a malformed verdict, inability to verify, cancellation, timeout, or provider error does not pass the gate.
Keep fixing and re-reviewing until the required verdict arrives. Stop only on
explicit user cancellation or a terminal external provider failure. A terminal
failure is BLOCKED_EXTERNAL with its exact error, never permission to skip the gate.
Explicit user-authorized full-access override
The normal safe posture above does not apply when the user explicitly grants
full provider permissions and native MCP access for this review. Build the
target checkout and start node dist/index.js --transport=stdio from that
checkout. Do not call a global or stale gtwy process. On a fresh Codex session
use approvalStrategy:"legacy", sandboxMode:"danger-full-access", and
dangerouslyBypassApprovalsAndSandbox:true.
Do not combine that posture with fullAuto, a resume that needs a new sandbox,
or a gateway tool/MCP restriction. Let Codex's ambient native MCP configuration
be the MCP surface, verify it live, and ask the reviewer to use available MCP
tools when useful. Full capability remains review-only unless separately
authorized: prohibit edits, staging, commits, resets, and destructive actions
in the reviewer prompt.
Give the reviewer a corrective-program verification report, the exact base and
diff or exhaustive changed-file list including relevant untracked files, and
durable job/test output locations. It must inspect code, documentation, tests,
and commands directly, not accept the report as proof. Require
APPROVED_UNCONDITIONALLY, CHANGES_REQUIRED with file/command evidence, or
BLOCKED_EXTERNAL with its exact error. Set no caller caps. If the user asks
for 90-second progress checks, do not poll earlier, and reapply the full posture
on every new job: the gateway drops sandboxMode on resume, so a resumed
request cannot select one that way (configOverrides still can), and the
resumed posture is not guaranteed to match
the original either.
Submit the Initial Review
State the change, target paths, acceptance criteria, and requested evidence. Pass Codex a local workingDir on the first new session. The gateway's own working directory does not scope the review: an unscoped local child runs in a fresh private neutral cwd, not the repository the gateway was started in.
codex_request({
prompt: "Review the changes in [paths]. They implement [feature or fix].
Check correctness, edge cases, test coverage, regressions, and project
conventions. Read the repository and validation evidence. Return terminal
JSON verdict APPROVED_UNCONDITIONALLY, CHANGES_REQUIRED, or
BLOCKED_EXTERNAL with inspected evidence.",
sandboxMode: "read-only",
workingDir: "[repo]",
approvalStrategy: "legacy",
correlationId: "review-initial"
})If the normal review needs to run a command that writes generated output, use sandboxMode: "workspace-write" for that call. Do not use danger-full-access as the normal review mode. Use it only through the explicit user-authorized full-access override above.
Handle Results
APPROVED_UNCONDITIONALLY: record the response and its evidence. The gate passes.CHANGES_REQUIRED: fix every finding, build and test, then submit the updated work.- A qualified approval: treat it as
CHANGES_REQUIREDuntil every condition is explicitly resolved and Codex gives a fresh strict verdict. - Cannot verify: correct repository targeting, sandbox access, or missing evidence and submit again. Do not accept a conclusion based on an inaccessible target.
- Failed, canceled, orphaned, or malformed response: diagnose and retry through
gtwy. If the provider has a terminal external failure, report
BLOCKED_EXTERNAL.
codex_request({
prompt: "Re-review [paths] after these fixes: [finding and evidence list].
Verify every prior finding and inspect for regressions. Return terminal JSON
verdict APPROVED_UNCONDITIONALLY, CHANGES_REQUIRED, or BLOCKED_EXTERNAL with
inspected evidence.",
sandboxMode: "read-only",
workingDir: "[repo]",
approvalStrategy: "legacy",
correlationId: "review-follow-up"
})Do not use a numerical round count as a reason to escalate or accept work. Continue while a meaningful repair or verification action remains.
Deferred Jobs
When async jobs are registered and the gateway returns status: "deferred", poll through gtwy using llm_job_status and collect the terminal response with llm_job_result. Use the orchestrator's non-blocking wakeup mechanism between polls. Do not cancel a review because it is long-running.
SQLite and Postgres persistence make jobs durable; memory persistence lasts only for the gateway process and requires explicit ephemeral acknowledgement. persistence.backend = "none" does not expose async or job tools. Reuse a job identifier or an identical deduplicable request only when the reviewed inputs have not changed.
Continuity and Stable Prompts
On a new Codex session, establish the target working directory and sandbox
correctly, because a resume cannot select them through those fields: the gateway
filters -C/--cd, --add-dir and --sandbox out of the resume argv. Do not
read that as a
guarantee that the resumed session keeps the original posture, though;
configOverrides still passes through and Codex re-resolves configuration on a
cold resume, so verify the posture when it matters. resumeLatest:true or a real
Codex session UUID can continue a legacy Codex session; a gateway-generated
gw-* identifier cannot be supplied as a native Codex sessionId.
For repeated reviews of the same target, Codex supports promptParts:
codex_request({
promptParts: {
system: "Stable review policy",
context: "Stable paths and acceptance criteria",
task: "Re-review the fixes. Return terminal JSON verdict APPROVED_UNCONDITIONALLY, CHANGES_REQUIRED, or BLOCKED_EXTERNAL with inspected evidence."
},
sandboxMode: "read-only",
workingDir: "[repo]",
approvalStrategy: "legacy"
})Use exactly one of prompt or promptParts. Cache-state resources expose aggregate hash and token evidence only; they do not prove a review verdict.
Cross-LLM Requirements
This is a Codex gate. If the task requires a full cross-LLM review, call provider_tool_capabilities through gtwy first, use the required roster from Claude, Codex, Gemini, Grok, Mistral, Devin, and Cursor, and follow the multi-llm-consensus workflow. Do not treat an unavailable required reviewer as a successful Codex-only substitute.
Final Checklist
- The request used the local gtwy stdio MCP tool, not a direct provider CLI.
- The target repository and paths were verified.
- The request used legacy approval and a current Codex sandbox mode.
- Findings, conditions, and verification gaps were all resolved.
- Codex returned explicit
APPROVED_UNCONDITIONALLY. - A terminal provider failure, if any, was reported as
BLOCKED_EXTERNAL.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

