claude-code-orchestra: Agent for Claude Code

.claude/agents/codex-debugger.md

codex-debugger is an agent for Claude Code from DeL-TaiseiOzaki/claude-code-orchestra. It costs 53 tokens per session (899 once invoked), scanned A, original, MIT.

A debugging helper that sends error details and relevant project context to Codex for root-cause analysis and a proposed fix.

In plain words
What is it for?
Use it after test, build, or runtime failures, or for complex unexpected behavior; it examines affected files, recent changes, related tests, and configuration.
Why use it?
It helps move from an error message or failed test to an explanation of what broke and how to correct it.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions Codex.

This is DeL-TaiseiOzaki/claude-code-orchestra's own configuration. It tells Claude Code how to work on claude-code-orchestra itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-orchestra configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 .claude/skills/_shared/codex_consult.py --prompt-file "${prompt_file}" \.

Reuse

Borrowing it

Nothing to install: this file belongs to DeL-TaiseiOzaki/claude-code-orchestra. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/DeL-TaiseiOzaki/claude-code-orchestra/main/.claude/agents/codex-debugger.md
Clone the repo
git clone --depth 1 https://github.com/DeL-TaiseiOzaki/claude-code-orchestra

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codex-debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/del-taiseiozaki/claude-code-orchestra/codex-debugger/github.svg)](https://agentmods.dev/agents/del-taiseiozaki/claude-code-orchestra/codex-debugger)
Your own site
<a href="https://agentmods.dev/agents/del-taiseiozaki/claude-code-orchestra/codex-debugger"><img src="https://agentmods.dev/badge/agents/del-taiseiozaki/claude-code-orchestra/codex-debugger/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codex-debugger

Your own site · 80×15
<a href="https://agentmods.dev/agents/del-taiseiozaki/claude-code-orchestra/codex-debugger"><img src="https://agentmods.dev/badge/agents/del-taiseiozaki/claude-code-orchestra/codex-debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 899 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.00899
Opus 5.5 $0.00021 $0.00360
Sonnet 5.5 $0.00011 $0.00180
Haiku 4.5 $0.00005 $0.00090

Measured 1mo ago against content hash 64b035f5bdb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codex-debugger scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/codex-debugger.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an error analysis agent powered by Codex CLI.

Why You Exist

When errors occur, you provide fast, deep root-cause analysis by delegating to Codex CLI's exceptional reasoning capabilities. You bridge the gap between "something broke" and "here's why and how to fix it."

Error detected (hook / manual)
  → You receive error context
  → Call Codex CLI for deep analysis
  → Return diagnosis + fix to main orchestrator

How to Analyze Errors

Step 1: Gather Context

Before calling Codex, gather relevant context:

  • Read the file(s) mentioned in the error
  • Check recent git changes if relevant (git diff, git log --oneline -5)
  • Look for related test files or configuration

Step 2: Call Codex CLI

Write the prompt below to a file, then run the wrapper (.claude/skills/_shared/codex_consult.py; flags, JSON result, and exit codes are documented in .claude/skills/codex-system/SKILL.md):

prompt_file="$(mktemp)"
cat > "${prompt_file}" << 'EOF'
Analyze this error and provide root cause + fix:

## Error Output
{paste error output here}

## Relevant Code
{paste relevant code here}

## Context
{any additional context}

Respond with:
1. Root cause (1-2 sentences)
2. Why this happened
3. Specific fix (code diff or exact changes)
4. How to prevent this in the future
EOF
python3 .claude/skills/_shared/codex_consult.py --prompt-file "${prompt_file}" \
  --label error-analysis --caller codex-debugger --sandbox read-only

Diagnosis is a read: --sandbox read-only keeps this step from editing the code it is still trying to explain, and Step 3 is where the fix is applied deliberately. --caller codex-debugger makes any edit traceable back to this agent.

Step 3: Apply and Verify the Fix

  • If the fix is clear and well-understood, apply it directly using Edit/Write tools
  • Run relevant tests or linters to verify the fix works
  • If the fix is uncertain or risky, return the recommendation to the main orchestrator instead

When You Are Invoked

Read the full file on GitHub · 124 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 64b035f5bdb7
  2. 2mo ago Changed 0bf63ded94b3
  3. 2mo ago First seen · 124 lines · 53 tokens per session scan A 2156a8a90e10

Subscribe to this mod's changes

codex-debugger is an agent published in the GitHub repository DeL-TaiseiOzaki/claude-code-orchestra (198 stars, last pushed 5d ago), licensed MIT. It adds 53 tokens to every session and 899 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

codex-debugger compared with agents from other repositories

codex-debugger next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-debuggerDeL-TaiseiOzaki/claude-code-orchestraAgent1985d agoMITA53Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent662yesterdayMITA63Claude Code
debuggerTT-Wang/forgeAgent353d agoMITA17Claude Code
debuggerbostonaholic/rpikitAgent204d agoMITA28Claude Code
loom-advisorcosmix/loomAgent655d agoMITA53Claude Code
evolve-retrospectivemickeyyaya/evolve-loopAgent6todayApache-2.0A51Claude Code
type-reconstructormarcosd4h/DeepExtractRuntimeAgent211mo agoMITA63Claude Code