Marks / Runtime
codex
Programmable capabilities
- 4 Capability interface Two or more mechanisms with policy filtering; host-executed dynamicTools (experimental API counts per R8); tool_search deferral
Review finding
Built in. A tool registry is rebuilt every turn from core tools, MCP (stdio or streamable HTTP), extension tools, hosted tools and host-executed "dynamic tools" (experimental).
tool_searchcan defer large catalogs. Plugins bundle skills, MCP servers, apps and hooks; there is no in-process code ABI. P1P2P3P4 - 2 Reusable computation Skills with scripts and rules rediscovered; no unit re-run with inputs; code-mode store/load in memory only
- 3 Capability transfer Skill MCP dependencies checked with install offer; thread/fork and fork_context give fork-vs-fresh choice; no closure-packaging operation
Review finding
Built in. A fresh thread rediscovers on-disk skills, plugins, MCP config and rules, but dependencies must already be installed on that host.
thread/forkand subagentfork_contextcarry the full history. Skills can declare MCP dependencies, which the user is offered to install. Code-mode values and live PTYs do not transfer. P9P10P11P12
Evidence and memory
- 2 Durable evidence Full JSONL rollouts kept, revert writes new file; no explicit rollout retention policy (logs only) (level 3 unmet)
Review finding
Built in. One JSONL rollout per thread under
~/.codex/sessions/, plus SQLite state/log DBs. No age-based deletion of rollouts. Revert writes a new rollout file and leaves the old one. archive/delete remove history on request. Logs are pruned after 10 days.history.jsonl(prompts) can be turned off E1E2E3E4E13. - 2 ↑3 Context recovery opt: memories feature Rollout stored, default reachable only by file re-read; memories tools list/read/search when enabled
- 0 ↑3 Memory maintenance opt: memories feature memories off by default; when on, phase-2 consolidation agent runs; retry/leases only [D] (level 4 unmet)
Specialist collaboration
- 4 Specialist definition Roles set prompt/model and can only disable tools; approval, permission profile copied from parent turn (inherit-only); no widening path
- 3 Continuation Child rollout reloaded by resume_agent after restart; L4 unmet: v2 mailbox off by default; unresolved: mailbox durability across crash
- 2 Coordination Depth 1, 6 concurrent, close_agent cascades below a closed child; no evidence that interrupting the parent stops running children (R5, unresolved)
Execution controls
- 3 Confinement Default-on bwrap/seccomp/Seatbelt for shell and apply-patch, network denied; L4 unmet: MCP stdio servers unsandboxed
Review finding
Built in, on by default for shell, unified-exec and apply-patch: Seatbelt (macOS); bwrap + seccomp + no_new_privs (Linux); restricted token (Windows, only when enabled). Default
read-onlymode can still read the whole filesystem. Trusted projects getworkspace-write. Network is denied inside the sandbox. MCP stdio servers run unsandboxed. An approval can lift a sandbox denial. X1X2X3X4X5X6 Note X-1 - 2 ↑3 Credential handling opt: shell_environment_policy inherit=core/none Default denylist KEY/SECRET/TOKEN; a named config key gives an allowlisted env (R1); auth.json likely readable
Review finding
Partial filtering, built in. Shell tools inherit the full environment minus case-insensitive
*KEY*/*SECRET*/*TOKEN*(*PASSWORD*is not excluded); configurable via[shell_environment_policy]. MCP stdio servers get an allowlist. Login credentials sit inauth.jsonby default and are likely readable under the read-/profile (inferred). Redaction covers memories and command display only. X7X8X9X10X11 - 1 ↑4 Budget enforcement opt: rollout_budget (under development) Default token_budget only steers, cost display only; rollout_budget is pre-call tree-wide admission, in-flight calls billed
Review finding
Goal
token_budget(goals on by default) is soft: once tokens reach the budget the goal becomesBudgetLimitedand a steering message is injected. [opt:rollout_budget, under development, off] adds a hard weighted-token admission gate shared across the agent tree; in-flight responses are still billed. $ turn cost is polled from the backend for display. No turn cap. X12X13X14X15X16X17
Product integration
- 2 Embedding interfaces Full lifecycle, approvals and several transports exist, but app-server is labelled [experimental] (codex-rs/cli/src/main.rs:177), which the L2 anchor names
Review finding
Built in:
codex app-serverJSON-RPC (about 200 methods plus typed notifications and server-to-client approval requests) over stdio by default [opt: unix socket, WebSocket]. Non-loopback WebSocket refused without auth. Python SDK wraps app-server; TypeScript SDK wrapscodex exec --experimental-json. Some fields are experimental. Not an MCP server. I1I2I3I4I5I6 - 3 Declarative configuration Unknown keys only warn by default, but a documented
--strict-configmeets level 3. Level 4 not met because strictness is not the default - 2 ↑3 Durable execution opt: app-server daemon recovery Steer and writer lock serialize input. A crash cold-resumes without closing out the turn; only the opt daemon resumes eligible turns, with no idempotency rule
Review finding
Built in: a client disconnect drops subscriptions, but a live thread keeps running. Input to an active turn becomes a steer. Cross-process rollout writer lock. Request/stream retries 4/5. Daemon restart continues eligible local turns; a crash cold-resumes from the rollout (Note I-2). I12I13I15I16I17I18
Operations and verification
- E * Service dependencies Single local process with embedded SQLite; MCP children; nothing idle. The daemon is optional
- 2 Execution records Rollout JSONL persists TurnAborted, but rollout policy marks Error events transient, so failures are not structured records. Level 3 unmet; mutable
Review finding
Built in.
RolloutRecorderappends a session JSONL. Tracing goes to thelogs_2.sqlitediagnostic DB (10-day retention). OTLP is off by default; metrics go to the vendor (Statsig) only when analytics consent is on. Records can be altered by archive/delete RPCs and by compression (replace-by-rename); none is tamper-evident. O3O4O5O6O7 - 2 Result checks Owner Stop hooks re-prompt with no stated cap. The schema is enforced provider-side only, so level 3's stated-cap/block condition is unmet
Review finding
Hooks: command/MCP-tool hooks (on by default). A Stop-hook block re-prompts the turn, with no runtime cap (Note O-2).
--output-schemagoes to the provider as a strict schema; no local validation was found.codex reviewis an explicit review agent. No built-in check of task correctness. O8O9O10O11O12
Reproducibility
- Repository
- https://github.com/openai/codex
- Branch
- main
- Exact revision
065e18b04021008e2e7d504db8dc50275f589f73- Commit date
- 2026-11-28T06:13:28Z
Metadata
- Exact revision
065e18b04021008e2e7d504db8dc50275f589f73, committed 2026-11-28T06:13:28Z- Version (source)
- No release version in tree: workspace
0.0.0, npm0.0.0-dev, no tags. Nearest anchor: Python SDK pinsopenai-codex-cli-bin==0.153.4(not this build's version) M1M2 - License
- Apache-2.0 (
LICENSE,NOTICE;codex-rs/Cargo.toml) M1 - Audited component / deployment
- Rust workspace
codex-rs/(core, app-server JSON-RPC, exec, cli, config, rollout, state, hooks, sandboxing, MCP, ext/*) plus TS/Python SDKs. Default: localcodexbinary (TUI /exec/app-serverstdio) against OpenAI Responses API - Supported runtime platforms
- Prebuilt linux-musl x64/arm64, macOS x64/arm64, Windows x64/arm64; Node ≥16 launcher; sandbox backend per OS (Seatbelt, bwrap+seccomp, Windows restricted token opt-in) M3M4
- Evidence coverage
- Deep: tool router, multi-agent, sandbox/permissions, env, budgets, hooks, rollout, app-server. Skimmed: compaction, code-mode, plugins, memories. Not: TUI, cloud-tasks, Windows sandbox, realtime/voice, exec-server (~170 crates)
Pinned external dependencies (capability-supplying)
- Package@version
rmcp@3.6.0(git revb11a40d8)- Role
- MCP client
- Lockfile / source
codex-rs/Cargo.toml:496,Cargo.lock:13768-13770M36
- Package@version
- bubblewrap
0.11.2(vendored, built in-tree);landlock@0.4.4,seccompiler@0.5.0 - Role
- Linux sandbox
- Lockfile / source
codex-rs/vendor/bubblewrap/meson.build:4M37;Cargo.lock
- Package@version
sqlx@0.9.0,libsqlite3-sys@0.39.1;zstd@0.13.3;tokio@1.52.3;v8@152.2.0(openai-oss-forks)- Role
- state DBs; rollout compression; async; code mode
- Lockfile / source
codex-rs/Cargo.lock
- Package@version
- OpenAI Responses API (external service)
- Role
- model backend; remote compaction, strict schema, cost reporting [D]
- Lockfile / source
- n/a
Specialist collaboration: Supporting table: parent→child authority
Operations and verification: Notes
- Finished process
- Turn completes
- Delivered answer
- Turn completes
- Structural validity
- Provider-side, when a schema is requested
- Task correctness
- Opt-in only (see below)
Part A: platforms, clients, IDE, messaging
- Native platforms
- Linux, macOS, Windows binaries M3
- Terminal / web / desktop clients
- Full-screen TUI; headless
codex exec(JSONL events);resume/fork/archiveA1.codex applaunches Desktop on macOS/Windows; the app itself is not in this repo (outside audited component) A2.codex cloud(experimental) browses cloud tasks (outside audited component) - IDE & coding integrations
- app-server defaults
--session-source vscode, implying a VS Code client; extension not in repo [D] A3 - Messaging channels
- None built in; Slack appears only as a curated plugin id A4
Part B: voice/media, onboarding/routing, fleet administration
- Voice / media
- Realtime
thread/realtime/*methods,realtime-webrtcandvoice-hostcrates [S skimmed]; image view and generation tools A42 - Onboarding & session routing
- ChatGPT, API-key, Bedrock or GCP login methods; project/thread sections A43
- Fleet administration
- Managed
requirements.toml, MDM / EnterpriseManaged config layers, cloud config bundles, managed OTel [S skimmed] A44
Source/doc conflicts
- Conflict
codex-rs/memories/README.mdplaces orchestration incore/src/memories/, which does not exist; code is inmemories/write/src/M51- Which side the audit entry follows
- code
- Conflict
- Sandbox/skills/execpolicy docs only link to external pages; behaviour taken from code
- Which side the audit entry follows
- code (no in-tree doc to conflict)
Coordinator re-checks
- Claim
- Default env excludes
- Lines read
codex-rs/protocol/src/shell_environment.rs:148-150- Result
- Confirmed
*KEY*,*SECRET*,*TOKEN*(case-insensitive);*PASSWORD*absent