Claude Code Codex Agents — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Claude Code Codex Agents (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
[日本語版 README はこちら](README_ja.md)
Give Claude Code structured Codex traces, not raw output.
For Claude Code users who want GPT-5.4 as a real tool: claude-code-codex-agents parses the entire JSONL event stream from Codex CLI and returns a structured execution report -- which tools it used, which files it touched, how long it took, and what went wrong. No other Codex MCP bridge does this.
Architecture Overview
graph LR
A["Claude Code<br/>(Opus 4.6)"] -->|MCP Protocol| B["claude-code-codex-agents<br/>MCP Server"]
B -->|"subprocess + stdin"| C[Codex CLI]
C -->|JSONL stream| B
C -->|API call| D["OpenAI API<br/>(GPT-5.4)"]
B -->|Structured Report| AWithout -- You call Codex CLI and get a wall of text. You don't know what tools it used, what files it changed, or if it actually succeeded.
With claude-code-codex-agents -- Claude Code gets a structured execution trace:
[Codex gpt-5.4] Completed
⏱ Execution time: 8.3s
🧵 Thread: 019d436e-4c39-7093-b7ed-f8a26aca7938
📦 Tools used (3):
✅ read_file — src/auth.py
✅ edit_file — src/auth.py
✅ shell — python -m pytest tests/
📁 Files touched (1):
• src/auth.py
━━━ Codex Response ━━━
Fixed the authentication logic. Token validation order was incorrect.There are 6+ Codex MCP bridges on GitHub. Here's what makes this one different:
| Other bridges | claude-code-codex-agents | |
|---|---|---|
| Output | Raw text dump | Structured trace (tools, files, timing, errors) |
| Parallel tasks | 1 at a time | Up to 6 simultaneous |
| Session continuity | Stateless | threadId persistence across calls |
| Security | Pass-through | 3-tier sandbox + terminal injection prevention |
| Tests | Few or none | 59 tests (parsing, security, sessions, edge cases, agent lifecycle) |
| Review | Basic or none | Adversarial Review Loop (GPT-5.4 challenges Claude's code) |
parallel_executesession_continue (threadId persistence)spawn_codex_agent, send_codex_agent_input, and wait_codex_agentdiscussnpm install -g @openai/codex
codex logingit clone https://github.com/tsunamayo7/claude-code-codex-agents.git
cd claude-code-codex-agents
uv syncClaude Code (~/.claude/settings.json):
{
"mcpServers": {
"claude-code-codex-agents": {
"type": "stdio",
"command": "uv",
"args": ["run", "--directory", "/path/to/claude-code-codex-agents", "python", "server.py"],
"env": { "PYTHONUTF8": "1" }
}
}
}<details> <summary><b>Cursor</b> (~/.cursor/mcp.json)</summary>
{
"mcpServers": {
"claude-code-codex-agents": {
"command": "uv",
"args": ["run", "--directory", "/path/to/claude-code-codex-agents", "python", "server.py"],
"env": { "PYTHONUTF8": "1" }
}
}
}</details>
<details> <summary><b>VS Code / Windsurf</b></summary>
Add to your MCP settings:
{
"claude-code-codex-agents": {
"command": "uv",
"args": ["run", "--directory", "/path/to/claude-code-codex-agents", "python", "server.py"],
"env": { "PYTHONUTF8": "1" }
}
}</details>
| Tool | Description | Sandbox |
|---|---|---|
execute | Delegate tasks to Codex with structured trace report | workspace-write |
trace_execute | Same as execute, plus full event timeline | workspace-write |
parallel_execute | Run up to 6 tasks simultaneously | read-only |
review | Adversarial code review by GPT-5.4 | read-only |
explain | Code explanation (brief/medium/detailed) | read-only |
generate | Code generation with optional file output | workspace-write |
discuss | Get GPT-5.4's perspective on design decisions | read-only |
session_continue | Continue a previous Codex thread | workspace-write |
session_list | List session history with thread IDs | - |
spawn_codex_agent | Launch a background Codex worker with default / explorer / worker roles | role-based |
send_codex_agent_input | Continue a background Codex worker with follow-up instructions | same as agent |
wait_codex_agent | Wait for an agent turn and fetch the last structured result | - |
list_codex_agents | Inspect tracked background Codex agents | - |
close_codex_agent | Close an idle Codex agent | - |
status | Check Codex CLI status and auth | - |
The new agent lifecycle tools let Claude Code treat Codex more like a persistent sub-agent than a one-shot CLI call.
spawn_codex_agent to start a background worker with a role preset:default for balanced execution, explorer for read-heavy investigation, worker for implementation.
send_codex_agent_input to continue the same worker after you read its last result.wait_codex_agent to poll for completion without blocking other work.list_codex_agents and close_codex_agent to manage idle workers.Claude Code writes code, then asks GPT-5.4 to review it:
[Codex Review] GPT-5.4 Review Result
⏱ Execution time: 15.7s
━━━ Codex Response ━━━
- [CRITICAL] `run(cmd)` calls `os.system(cmd)` directly -- command injection
if `cmd` contains user input. Use `subprocess.run([...], shell=False)`.
- [WARNING] `divide(a, b)` raises ZeroDivisionError when b == 0.
Add a pre-check or explicit error message.
- [INFO] No type hints on function signatures. Add `def divide(a: float,
b: float) -> float:` for readability.Analyze multiple tasks simultaneously:
[Parallel Execution Complete] 3 tasks
━━━ Task 1 ✅ ━━━
Instruction: Analyze src/auth.py for security issues
⏱ 5.2s
...
━━━ Task 2 ✅ ━━━
Instruction: Review database query patterns in src/db.py
⏱ 7.8s
...
━━━ Task 3 ✅ ━━━
Instruction: Check error handling in src/api.py
⏱ 4.1s
...sequenceDiagram
participant C as Claude Code
participant H as claude-code-codex-agents
participant X as Codex CLI
participant O as OpenAI API
C->>H: MCP tool call (execute)
H->>H: _validate() + _enforce_sandbox()
H->>X: subprocess (stdin prompt)
X->>O: API request (GPT-5.4)
O-->>X: Response
X-->>H: JSONL event stream
H->>H: parse_jsonl_events() → CodexTrace
H->>H: _sanitize() → format_report()
H-->>C: Structured report| Sandbox Mode | File Write | Shell Exec | Use Case |
|---|---|---|---|
read-only | Blocked | Blocked | Review, explain, discuss |
workspace-write | CWD only | Allowed | Execute, generate |
danger-full-access | Anywhere | Allowed | Full system access (use with caution) |
Additional protections:
--ephemeral flag (no persistent Codex state)# Setup
git clone https://github.com/tsunamayo7/claude-code-codex-agents.git
cd claude-code-codex-agents
uv sync --extra dev
# Run tests (59 tests)
uv run pytest tests/ -v
# Run server directly
uv run python server.pyProject structure: Single file (server.py, ~820 lines). Easy to read, modify, and contribute.
discuss.session_continue calls with context preservation.npm install -g @openai/codex)codex login)~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.