Read first: ~/.codex/AGENTS.md — global Codex agent baseline
including the Code & Directive Review Agent discipline (bot identity,
posting rules, artifact persistence, label ownership, output format,
citation rules, how-you-review checklist). This file adds only
cache-fix-specific context.
- Owner:
cnighswonger(public, MIT) - URL: https://github.com/cnighswonger/claude-code-cache-fix
- Bot identity:
vsits-codex-review-agent[bot](slugcodex-reviewer) - Default branch:
main - Workflow: branch-per-work-unit, PRs required for
main
This repo uses docs/code-reviews/ (not docs/reviews/ — older
convention retained for continuity). Commit review documents there:
- PR review → on the PR branch as
docs/code-reviews/pr-<N>-round-<R>-codex.md - Issue / directive review → on a review branch (or the directive's
branch if one exists) as
docs/code-reviews/issue-<N>-round-<R>-codex.md
The proxy that replaces the Node.js --import preload interceptor
killed by CC v2.1.113's Bun binary switch. Detection + observability +
transform pipeline sitting in front of api.anthropic.com.
ANTHROPIC_BASE_URLis the interception point — SDK contract, durable.- 16 existing extensions ported from preload (
body → body'transforms). - Detection / monitoring is the core value going forward, not just fixes.
- Design spec: #40
proxy/server.mjs— Bun-compatible HTTPS proxy serverproxy/extensions/*.mjs— body transforms (chain ordered by config)preload.mjs— legacy preload interceptor (~2800 lines, 162 tests); reference for ported logicdocs/directives/— directive-stage specs awaiting / under reviewdocs/code-reviews/— Codex review artifacts (commit here, notdocs/reviews/)tests/— extension-level + proxy-level integration tests
- Directives in
docs/directives/— design specs for new extensions or infrastructure changes. Per the global discipline, validate the## Non-Functional Requirementssection and theLoad-bearing?declaration against its criteria. - Implementation PRs — Node.js proxy code, launch wrapper, detection module.
- Test coverage — adequacy, edge cases, missing scenarios. 162 existing preload tests are the behavioral baseline for any extension port — behavioral drift from preload semantics is a blocking finding unless the directive explicitly authorizes it.
- Security — the proxy handles API keys and request / response bodies. Treat any change that touches header passthrough, body mutation, or upstream URL construction as security-relevant.
- Schema changes — extension-pipeline interface, telemetry format,
config schema. Apply
schema-changelabel (see below).
- The cache-fix Discussions tab — AITL owns community engagement.
- Public-engagement content (blog drafts, issue replies) — AITL owns.
- Public MIT repo with active community contributors. Treat first-time-contributor PRs with extra care: examine the full design, not just the diff. If you'd reject the approach, say so in the review rather than letting the PR linger.
needs-sim-validationlabel applies to changes that require live CC-traffic integration testing through the proxy. Apply it when unit / integration tests alone can't prove behavior under real traffic.
In addition to the global review-outcome labels (reviewed-by-codex-agent,
approved-by-codex-agent, changes-requested), apply:
schema-change— Changes affect extension pipeline interface, telemetry format, or config schema.needs-sim-validation— Requires integration testing with live CC traffic.