codexray
X-ray vision into a Codex run — live progress + real token usage from Claude Code.
See inside the run
Built for visibility
Live progress
A tail-able progress file streams Codex activity into your Claude session in real time. No more staring at a silent terminal.
Real token usage
Captures Codex token-usage events that the stock plugin drops. Input, output, reasoning, cached — every number accounted for.
Drop-in subagent
codexray:codex-runner replaces codex:codex-rescue with a single Agent dispatch. Same interface, full visibility.
Stable transport
Built on codex exec --json, the stable surface that OpenAI's own SDK wraps. No undocumented APIs.
Optional streaming
The Monitor plugin pushes live Codex progress directly into the Claude Code conversation. Requires Claude Code >= 2.1.105.
Zero runtime deps
Pure ESM with JSDoc types checked by tsc --checkJs. Nothing to install beyond Node >= 18.17 and the Codex CLI.
Two commands, zero config
Add the plugin from the marketplace, install it, and you're done.
Then verify: codexray doctor
Requires Node >= 18.17 and codex CLI on PATH (or CODEX_BIN).
Configure your agent
Just ask
The codex-run skill auto-triggers. Try these prompts:
- Delegate this refactor to Codex and show me the token usage.
- Have Codex investigate this bug (read-only) and report back.
- codexrayλ‘ μ΄ λͺ¨λ 리ν©ν°νκ³ ν ν°λ μλ €μ€
Make it the default
Paste into ~/.claude/CLAUDE.md or a project CLAUDE.md:
Zero-overhead streaming
- Live progress is free. Streaming is handled by a local Node process parsing
codex exec --json— no Claude agent is involved, so watching a run costs zero model tokens. - Main session reads only the result. Launch via
Bash run_in_background, get notified on completion, and read the final output once. No middleman, no token pass-through. - Subagent is a thin launcher.
codexray:codex-runnerruns on Haiku and returns only a job handle (jobId + resultPath) — it never pipes Codex output through itself.
Verified
Slash commands & CLI
Also available: /codexray:cancel,
codexray watch,
codexray list,
codexray doctor.
Model, effort & speed
Three flags control cost, latency, and thoroughness. They map 1:1 to Codex CLI flags.
--model <id>
The Codex model. Use gpt-5.5 for substantial work. The fast, low-cost, text-only model for quick lookups is gpt-5.3-codex-spark.
-m--effort <level>
Reasoning effort: minimal | low | medium | high | xhigh. Lower is faster & cheaper; higher is more thorough.
-c model_reasoning_effort--fast
Requests the fast service tier (service_tier=fast) for lower latency where your account supports it.