Loading files
# Tasks: Add local Codex CLI provider
## 1. Provider
- [x] 1.1 Add the official Codex SDK dependency.
- [x] 1.2 Implement a provider using the installed Codex CLI and saved ChatGPT login.
- [x] 1.3 Constrain Codex to a read-only, no-approval, no-web reasoning thread.
- [x] 1.4 Generate structured output from the currently exposed Copperhead tool catalog and validate returned calls.
- [x] 1.5 Preserve one Codex thread across Copperhead loop turns and map token usage.
- [x] 1.6 Retry one rejected structured turn with validation feedback before failing the run.
- [x] 1.7 Allocate a unique temporary working directory per provider instance.
- [x] 1.8 Validate decoded arguments against the selected Copperhead tool schema.
- [x] 1.9 JSON-frame untrusted prompt content and avoid duplicate context on corrective retries.
- [x] 1.10 Remove owned provider working directories when the agent loop exits.
- [x] 1.11 Derive load-bearing adapter options from SDK types and narrow setup guidance.
## 2. Selection and configuration
- [x] 2.1 Route `codex` and `codex:<model-id>` in `makeProvider`.
- [x] 2.2 Accept `--model codex` without an OpenAI or Anthropic API key.
- [x] 2.3 Add `COPPERHEAD_CODEX_PATH` as an optional CLI path override.
- [x] 2.4 Load the Codex SDK lazily as an optional peer dependency.
## 3. Tests and documentation
- [x] 3.1 Add offline tests for sandbox settings, structured call mapping, continuation, unavailable tools, and malformed arguments.
- [x] 3.2 Add Codex to the opt-in live provider-parity suite.
- [x] 3.3 Update the technical specification, README, generated repo docs, and documentation site.
- [x] 3.4 Run typecheck, build, offline tests, docs build, and live saved-login smoke verification.
- [x] 3.5 Run the fixture agent-loop acceptance test through `--model codex` with KiCad installed.
- [x] 3.6 Make the live rollback test structurally deterministic across providers with a one-turn budget.
7f2688d19This file is pinned to the selected release. Download the original to open it in your design tool.