Products & Tools

OpenAI's Codex Agent Runs on codex-1, a Tuned o3 for Coding

OpenAI's system card addendum details Codex, a cloud coding agent built on codex-1 — an o3 variant RL-tuned to run tests until they pass and cite terminal logs as proof.

Addendum to o3 and o4-mini system card: Codex
Addendum to o3 and o4-mini system card: CodexAI-generated
By Sophie Lindqvist5 min read

Updated

Why it matters

  • Codex is a cloud-based coding agent powered by codex-1, a version of OpenAI o3 optimized for software engineering.
  • codex-1 was trained with reinforcement learning on real-world coding tasks to mirror human code style and iterate on tests until passing results are achieved.
  • Each agent runs in its own cloud container with no internet access, preloaded with the user's code and user-defined development environment; Codex can read and edit files and run tests, linters, and type checkers.
  • Codex is trained to cite terminal logs and files as verifiable evidence of its actions; users can inspect results, request refinements, and export diffs as GitHub pull requests.

OpenAI has published an addendum to its o3 and o4-mini system card detailing Codex, a cloud-based coding agent powered by codex-1 — a version of the company's o3 reasoning model optimized specifically for software engineering.

The document, released alongside the full o3 and o4-mini system card, fills in the technical picture behind a product OpenAI positions at the center of its push into agentic development tools. Codex is not a new base model. It is o3 retrained for a narrow, high-stakes domain: writing, editing, and validating production code.

How codex-1 was trained

According to the addendum, OpenAI trained codex-1 with reinforcement learning on real-world coding tasks across a variety of environments. The training objectives are precise. The model generates code that "closely mirrors human style and PR preferences," adheres precisely to instructions, and "iteratively runs tests until passing results are achieved."

That last point matters most. A model that keeps running tests until they pass is a model built for verification, not just generation. It reflects a broader industry shift from code-completion tools — which suggest the next line — toward agents that own an entire task loop: write, test, fail, fix, and repeat.

Users can ask Codex to perform coding tasks or answer questions about a codebase. The agent handles both the mechanical work of editing files and the judgment work of understanding how a repository fits together.

Sandboxed by design

Each Codex agent runs in its own cloud container with no internet access. The container comes preloaded with the user's code and a development environment the user defines — including any dependencies, configuration, or tooling they specify. Only after that setup completes does OpenAI disable internet access and start the model's trajectory.

Inside the sandbox, Codex can read and edit files and execute commands, including tests, linters, and type checkers. The isolation architecture addresses two concerns at once: it stops the agent from reaching beyond the user's environment, and it makes the agent's behavior reproducible within a known configuration.

Evidence over assertions

Codex is trained to provide verifiable evidence of its actions through citations of terminal logs and files, according to the addendum. A user does not have to trust the agent's claim that a fix works — the agent points to the log output that proves it.

That verifiability requirement reflects a hard problem in AI-assisted coding. When an agent edits a codebase, the developer's central question is not whether the output looks plausible but whether it is correct and traceable. By grounding claims in terminal logs and file references, codex-1 gives reviewers the same artifacts they would demand from a human contributor.

Once a task is complete, users can inspect the results, request refinements, or export the generated diff. Export options are concrete: convert the diff into a GitHub pull request, or copy it for local testing and development. The workflow maps directly onto existing code-review pipelines rather than asking teams to change how they merge changes.

Why the system card addendum matters

OpenAI has committed to publishing system cards — detailed safety and capability documentation — for its frontier models. This addendum extends that practice to a derivative model tuned for a specific application. For enterprises evaluating coding agents, the document serves as the authoritative description of what codex-1 does, how it is constrained, and what its outputs look like.

The disclosure also lands at a moment of intense competition in agentic coding. Developers now choose between a growing field of cloud-based agents that can execute multi-step engineering work autonomously. OpenAI's differentiators, as stated in the addendum, are threefold: a base model (o3) tuned with RL on real-world tasks, a network-isolated execution environment, and trained behavior around citing verifiable evidence.

Each of those choices involves tradeoffs. RL training on PR preferences means codex-1 is optimized to produce diffs human reviewers will accept — useful, but a shaping of style as much as correctness. Sandboxing without internet access limits what tasks the agent can attempt but contains the blast radius of any failure. Requiring log citations slows output but gives teams the audit trail regulators and security teams increasingly expect from automated tooling.

The stakes

Software engineering has become the clearest commercial test of agentic AI. Code is verifiable in a way most knowledge work is not: tests either pass or they do not. That makes it the natural proving ground for models that must demonstrate reliability before enterprises trust them with broader tasks.

Codex's design — iterative testing, sandboxed execution, cited evidence — is OpenAI's answer to the trust question. The company is betting that developers will adopt agents not because the code looks good, but because the agent can show its work.

The full o3 and o4-mini system card, which the addendum links to, covers the safety evaluations and capability assessments for the underlying models. Readers looking for the complete picture of o3's behavior, limitations, and risk mitigations should consult that document directly on OpenAI's site.

For now, the addendum confirms the shape of OpenAI's coding strategy: take a frontier reasoning model, tune it relentlessly on real engineering tasks, cage it in a container, and make it show receipts. Whether that formula wins the agentic coding market will depend on how codex-1 performs against real repositories — and how its rivals answer the same verification challenge.

Source: OpenAI News

Share this article:

More from Sophie Lindqvist

Sophie Lindqvist

Show full bio

Staff writer covering regulation, policy and their impact on artificial intelligence and machine learning at AI In Context.

257 articles

Related articles

  1. OpenAI details codex-1: an o3 variant tuned for real coding work
  2. OpenAI Upgrades Codex: Faster, More Reliable, More Autonomous
  3. OpenAI Takes Codex Coding Agent to General Availability
  4. OpenAI to Acquire Ona, Pushing Codex Toward Persistent Cloud Agents
  5. OpenAI says Codex runs 'daily' across its engineering teams

« Previous articleNext article »