This skill runs a fresh Codex request through a local OpenAI-compatible proxy, inspects the captured log, and summarizes what Codex actually sent to the provider.
Use it when you need to debug:
- request size and payload shape
- injected
instructionsorsystem_prompt - exposed tools and provider or model overrides
- profile differences from
~/.codex/config.toml - TTFT, warm generation speed, and near-context behavior
The skill is designed to execute the workflow end-to-end and return findings.
- It defaults to
capture onlywhen the request is underspecified. - It inspects the resulting log before answering.
- It does not stop at printing commands unless the user explicitly asked for instructions only.
- Context dumping is opt-in because sanitized captures may still contain sensitive user content.
The diagnostic run uses the model named by the user, with exact or approximate matching against configured models and profiles.
- If the requested model is unavailable or unloaded, the default fallback is
gpt-5.3-codex-spark. - If Spark is unavailable, the next fallback is
gpt-5.4withmediumreasoning. - The final summary reports the requested model, resolved model, actual model, and any fallback reason.
- Capture request metadata: run a fresh proxied
codex exec, inspect the log, and summarize request shape, tool surface, overrides, and errors. - Capture sanitized context: use
--dump-contextto inspectsystem_prompt,instructions, and sanitizedinput. - Benchmark throughput: run the bundled multi-phase benchmark to measure cold TTFT, warm speed, and near-context behavior.
SKILL.mdwith the operational contract and workflowlocales/metadata.jsonwith localized user-facing metadata.skill_triggers/<locale>.mdas the single source of truth for localized trigger catalogsscripts/codex_proxy.pyfor request capture and forwardingscripts/inspect_proxy_log.pyfor log inspectionscripts/run_codex_benchmark.pyfor throughput benchmarkingreferences/with field semantics and benchmark guidance
Install or update the managed copy with:
make install MODE=global LOCALE=ru-enThis creates a managed runtime copy under ${XDG_DATA_HOME:-~/.local/share}/agents/skills/skill-debug-codex-requests, renders localized metadata plus trigger previews from .skill_triggers, and refreshes the symlinks in ~/.claude/skills/skill-debug-codex-requests and ~/.codex/skills/skill-debug-codex-requests.
For backward compatibility, ./setup.sh global --locale ... still works as a thin wrapper around the same install flow.
MIT