CtxRay – see and lock what Codex loads before a task CtxRay, a local-first observability and control layer for OpenAI Codex, launched with benchmark results showing a 73.3% reduction in estimated model-visible prompt and a 29.1% reduction in exact aggregate turn tokens across 10 paired tasks. The tool, which requires no API key and has no telemetry, provides commands for auditing context, compiling profiles, detecting drift, and generating usage receipts. A second maintainer run measured a 28.5% exact aggregate reduction across nine pairs, though the project notes these are bounded microbenchmark results, not universal claims. The local-first observability and control layer for OpenAI Codex. Audit context, compile intentional profiles, catch configuration drift, and attach honest usage receipts. Install quick-start · · /FramY2/ctxray/blob/main/benchmarks/demo/ctxray-demo.mp4 20-second demo · /FramY2/ctxray/blob/main/benchmarks/results/2026-08-09-v1/report.md Benchmark evidence Reproduce it CtxRay is a local-first CLI and Codex plugin for context diagnostics, safe profile compilation, drift detection, reproducibility lockfiles, and honest post-turn usage receipts. It calls no model of its own, requires no API key, and has no telemetry. Community project. Not affiliated with or endorsed by OpenAI. The demo uses the public benchmark and the shipped CLI behavior. Click it for the compact MP4, or use the square social cut /FramY2/ctxray/blob/main/benchmarks/demo/ctxray-demo-square.mp4 . | You should not have to... | CtxRay gives you... | |---|---| | Guess which skills, instructions, plugins, or MCPs load | A private audit and bounded context map | | Hand-edit model profiles and hope the change is reversible | Reviewable YAML, native Codex TOML, dry-runs, and automatic backups | | Discover context changes only after a worse or costlier run | A redacted lockfile plus a CI-ready drift check | | Confuse token estimates, subscription quota, and API bills | Receipts that label exact, estimated, comparison, and unknown data | The first public microbenchmark ran 10 paired tasks across requested GPT-5.6 Luna, Terra, and Sol profiles: 20/20 answers passed the same exact validator . Removing irrelevant discovered context reduced the estimated model-visible prompt by 73.3% and exact aggregate turn tokens by 29.1% . Every pair holds task, requested model, effort, sandbox, commit, and quality gate constant. These are bounded microbenchmark results, not a universal productivity claim. The runtime stream records the requested profile but does not independently attest the served model, and prompt size remains a character-based estimate. Read the method and limitations /FramY2/ctxray/blob/main/benchmarks/results/2026-08-09-v1/report.md , inspect the machine-readable summary /FramY2/ctxray/blob/main/benchmarks/results/2026-08-09-v1/summary.json , or watch the 20-second MP4 /FramY2/ctxray/blob/main/benchmarks/demo/ctxray-demo.mp4 . A second maintainer run measured a conservative 28.5% exact aggregate reduction across nine comparable pairs and exposed a stale package-name validator. The raw repeat run and erratum /FramY2/ctxray/blob/main/benchmarks/results/2026-08-09-v2/ERRATUM.md are public; it is evidence of repeatability and fixture hardening, not an independent community reproduction. Codex already exposes excellent runtime primitives such as /status , /usage , /statusline , codex exec --json , profile files, and the app-server. The hard part is connecting them into one answer: - Which instructions, skills, plugins, agents, and MCP declarations are active? - Is a large context intentional or accidental? - Which model/subagent profile should this task use? - Can another developer reproduce the same capability surface safely? - Was a dollar amount actually billed, or is it merely an API comparison? CtxRay does that glue work without becoming another chat wrapper. | Command | What it does | Network/model call | |---|---|---| ctxray audit | Inventories Codex config layers, guidance, skills, plugins, agents, and MCP declarations | None | ctxray map | Renders a bounded Mermaid map of context sources and discovery overhead | None | ctxray xray | Summarizes model-visible prompt JSON without echoing its text | None | ctxray profile | Compiles YAML into native ~/.codex/