codex-exec

Delegates rescue, review, and adversarial-review tasks to the Codex CLI from Claude Code.

Updated May 20, 2026
One-click install
npx skills add https://github.com/TeXmeijin/agent-skills --skill codex-exec-texmeijin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex-exec
Source: https://github.com/TeXmeijin/agent-skills/tree/main/.apm/skills/codex-exec
Command: npx skills add https://github.com/TeXmeijin/agent-skills --skill codex-exec-texmeijin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? When a coding task needs a second opinion or a different model's reasoning, manually switching to Codex CLI and crafting a well-structured prompt is tedious and error-prone. This Skill standardizes how Claude Code hands off diagnosis, fix, and code review work to codex exec with consistent prompt templates and sandbox settings. ## Core Features & Use Cases - Three execution modes: rescue (diagnose and fix with workspace-write sandbox), review (read-only diff review), and adversarial-review (hostile review that tries to prove the change should not ship). - Model and effort selection: Prompts the user once to pick from tiered Model x Effort combinations (e.g., gpt-5.5 + xhigh for hard problems, gpt-5.3-codex + high for standard reviews). - Structured prompt templates: Ships XML prompt block templates (task, grounding rules, output contracts, verification loops) so Codex receives grounded, contract-driven instructions instead of vague requests. - Use Case: You have a large uncommitted diff and want a harsh second opinion before merging. Invoke the skill, choose adversarial-review with the top model tier, and receive a severity-ordered findings report with file:line evidence. ## Quick Start Ask the agent to run codex-exec in review mode on the current working tree changes and return the findings report.

Frequently Asked Questions about codex-exec

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a Codex CLI code review from Claude Code?

Invoke the skill with a review trigger phrase like "codex review" and it gathers git status and diff stats, lets you pick a model and effort tier, then calls codex exec in read-only sandbox mode. The output is a markdown report with a verdict and severity-ordered findings.

What is the difference between review and adversarial-review mode?

Review mode looks for material correctness and regression risks in local changes. Adversarial-review actively tries to disprove the change, targeting auth boundaries, data loss, race conditions, and rollback gaps, and only approves when no substantive finding survives.

Does codex-exec require the Codex CLI to be installed?

Yes, the codex command must be on PATH and authenticated with OpenAI before use. If authentication is missing, Codex returns an auth error and you need to run codex login first.

Can codex-exec modify files or is it read-only?

It depends on the mode. Rescue mode runs with workspace-write sandbox so Codex can edit files and apply fixes, while review and adversarial-review modes run read-only and only return findings without touching the working tree.

How do I continue a previous Codex session with new instructions?

Ask to resume or continue the previous task and the skill calls codex exec resume --last with the same flags. Only the new delta instruction is sent in the prompt since prior context is already preserved.