← Բաց կոդի կատալոգ

Debug Codex Requests

Open-source Codex skill for capturing, inspecting, and benchmarking outgoing provider requests through a local OpenAI-compatible proxy.

Դիտել GitHub-ում

skill-debug-codex-requests

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.

When To Use It

Use it when you need to debug:

  • request size and payload shape
  • injected instructions or system_prompt
  • exposed tools and provider or model overrides
  • profile differences from ~/.codex/config.toml
  • TTFT, warm generation speed, and near-context behavior

Default Behavior

The skill is designed to execute the workflow end-to-end and return findings.

  • It defaults to capture only when 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.

Model Selection

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.4 with medium reasoning.
  • The final summary reports the requested model, resolved model, actual model, and any fallback reason.

Main Flows

  • 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-context to inspect system_prompt, instructions, and sanitized input.
  • Benchmark throughput: run the bundled multi-phase benchmark to measure cold TTFT, warm speed, and near-context behavior.

Included Files

  • SKILL.md with the operational contract and workflow
  • locales/metadata.json with localized user-facing metadata
  • .skill_triggers/<locale>.md as the single source of truth for localized trigger catalogs
  • scripts/codex_proxy.py for request capture and forwarding
  • scripts/inspect_proxy_log.py for log inspection
  • scripts/run_codex_benchmark.py for throughput benchmarking
  • references/ with field semantics and benchmark guidance

Install

Install or update the managed copy with:

make install MODE=global LOCALE=ru-en

This 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.

About Relux Works

This project is part of the open-source ecosystem of Relux Works, an AI-native software development studio. We build fixed-price MVPs, rescue vibe-coded apps, run local AI inference, and train teams to work with coding agents. Much of the infrastructure behind that work is open source.

License

MIT

MIT License

Copyright (c) 2026 Ivan Oparin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.