OpenAI debuts GPT‑5.1-Codex-Max coding model and it already completed a 24-hour task internally
OpenAI has unveiled its latest innovation in AI-assisted software engineering: GPT-5.1-Codex-Max. This advanced coding model, now the default in the Codex developer environment, represents a significant leap in the capabilities of AI for coding tasks. With enhanced long-horizon reasoning, efficiency, and real-time interactivity, Codex-Max is designed to serve as a persistent software development agent, adept at managing complex refactors, debugging workflows, and tackling project-scale tasks across multiple context windows. This release comes shortly after Google introduced its Gemini 3 Pro model, yet Codex-Max has demonstrated superior performance in key coding benchmarks, achieving 77.9% accuracy on the SWE-Bench Verified test, surpassing Gemini’s 76.2%. Additionally, it outperformed Gemini on Terminal-Bench 2.0 and matched its performance on LiveCodeBench Pro, showcasing its robust capabilities in agentic coding tasks.
One of the standout features of GPT-5.1-Codex-Max is its architectural improvement that allows for effective long-horizon reasoning through a mechanism called “compaction.” This feature enables the model to retain essential contextual information while discarding irrelevant details, facilitating continuous work over extensive input-output sessions without compromising performance. Internally, Codex-Max has been observed completing intricate tasks lasting over 24 hours, including multi-step refactors and autonomous debugging. Moreover, it boasts improved token efficiency, using approximately 30% fewer thinking tokens than its predecessor for comparable or better accuracy. This efficiency has significant implications for both cost and latency in software development environments.
Currently, GPT-5.1-Codex-Max is integrated into various Codex-based platforms, including the Codex CLI and interactive coding environments, although it is not yet available via public API. OpenAI emphasizes that while Codex-Max enhances coding productivity—evidenced by a reported 70% increase in pull requests among internal engineers—human oversight remains crucial. The model is designed to act as a coding assistant rather than a replacement for human developers, providing transparency through terminal logs and test citations. As OpenAI continues to refine its agentic development tools, Codex-Max sets the stage for the future of AI-assisted programming, emphasizing secure workflows and the importance of human review in an increasingly autonomous coding landscape.
OpenAI has
introduced GPT‑5.1-Codex-Max
, a new frontier agentic coding model now available in its Codex developer environment. The release marks a significant step forward in AI-assisted software engineering, offering improved long-horizon reasoning, efficiency, and real-time interactive capabilities. GPT‑5.1-Codex-Max will now replace GPT‑5.1-Codex as the default model across Codex-integrated surfaces.
The new model is designed to serve as a persistent, high-context software development agent, capable of managing complex refactors, debugging workflows, and project-scale tasks across multiple context windows.
It comes on the heels of
Google releasing its powerful new Gemini 3 Pro model
yesterday, yet still outperforms or matches it on key coding benchmarks:
On
SWE-Bench Verified
,
GPT‑5.1-Codex-Max achieved 77.9% accuracy
at extra-high reasoning effort, edging past Gemini 3 Pro’s 76.2%.
It also led on
Terminal-Bench 2.0, with 58.1% accuracy versus Gemini’s 54.2%,
and matched Gemini’s score of 2,439 on LiveCodeBench Pro, a competitive coding Elo benchmark.
When measured against Gemini 3 Pro’s most advanced configuration — its Deep Thinking model — Codex-Max holds a slight edge in agentic coding benchmarks, as well.
Performance Benchmarks: Incremental Gains Across Key Tasks
GPT‑5.1-Codex-Max demonstrates measurable improvements over GPT‑5.1-Codex across a range of standard software engineering benchmarks.
On SWE-Lancer IC SWE, it achieved 79.9% accuracy, a significant increase from GPT‑5.1-Codex’s 66.3%. In SWE-Bench Verified (n=500), it reached 77.9% accuracy at extra-high reasoning effort, outperforming GPT‑5.1-Codex’s 73.7%.
Performance on Terminal Bench 2.0 (n=89) showed more modest improvements, with GPT‑5.1-Codex-Max achieving 58.1% accuracy compared to 52.8% for GPT‑5.1-Codex.
All evaluations were run with compaction and extra-high reasoning effort enabled.
These results indicate that the new model offers a higher ceiling on both benchmarked correctness and real-world usability under extended reasoning loads.
Technical Architecture: Long-Horizon Reasoning via Compaction
A major architectural improvement in GPT‑5.1-Codex-Max is its ability to reason effectively over extended input-output sessions using a mechanism called
compaction
.
This enables the model to retain key contextual information while discarding irrelevant details as it nears its context window limit — effectively allowing for continuous work across millions of tokens without performance degradation.
The model has been internally observed to complete tasks lasting more than 24 hours, including multi-step refactors, test-driven iteration, and autonomous debugging.
Compaction also improves token efficiency. At medium reasoning effort, GPT‑5.1-Codex-Max used approximately 30% fewer thinking tokens than GPT‑5.1-Codex for comparable or better accuracy, which has implications for both cost and latency.
Platform Integration and Use Cases
GPT‑5.1-Codex-Max is currently available across multiple Codex-based environments, which refer to OpenAI’s own integrated tools and interfaces built specifically for code-focused AI agents. These include:
Codex CLI
, OpenAI’s official command-line tool (@openai/codex), where GPT‑5.1-Codex-Max is already live.
IDE extensions
, likely developed or maintained by OpenAI, though no specific third-party IDE integrations were named.
Interactive coding environments
, such as those used to demonstrate frontend simulation apps like CartPole or Snell’s Law Explorer.
Internal code review tooling
, used by OpenAI’s engineering teams.
For now, GPT‑5.1-Codex-Max is not yet available via public API, though OpenAI states this is coming soon. Users who wish to work with the model in terminal environments today can do so by installing and using the Codex CLI.
It is not currently confirmed whether or how the model will integrate into third-party IDEs unless they are built on top of the CLI or future API.
The model is capable of interacting with live tools and simulations. Examples shown in the release include:
An interactive CartPole policy gradient simulator, which visualizes reinforcement learning training and activations.
A Snell’s Law optics explorer, supporting dynamic ray tracing across refractive indices.
These interfaces exemplify the model’s ability to reason in real time while maintaining an interactive development session — effectively bridging computation, visualization, and implementation within a single loop.
Cybersecurity and Safety Constraints
While GPT‑5.1-Codex-Max does not meet OpenAI’s “High” capability threshold for cybersecurity under its Preparedness Framework, it is currently the most capable cybersecurity model OpenAI has deployed. It supports use cases such as automated vulnerability detection and remediation, but with strict sandboxing and disabled network access by default.
OpenAI reports no increase in scaled malicious use but has introduced enhanced monitoring systems, including activity routing and disruption mechanisms for suspicious behavior. Codex remains isolated to a local workspace unless developers opt-in to broader access, mitigating risks like prompt injection from untrusted content.
Deployment Context and Developer Usage
GPT‑5.1-Codex-Max is currently available to users on
ChatGPT Plus, Pro, Business, Edu, and Enterprise
plans. It will also become the new default in Codex-based environments, replacing GPT‑5.1-Codex, which was a more general-purpose model.
OpenAI states that 95% of its internal engineers use Codex weekly, and since adoption, these engineers have shipped ~70% more pull requests on average — highlighting the tool’s impact on internal development velocity.
Despite its autonomy and persistence, OpenAI stresses that Codex-Max should be treated as a coding assistant, not a replacement for human review. The model produces terminal logs, test citations, and tool call outputs to support transparency in generated code.
Outlook
GPT‑5.1-Codex-Max represents a significant evolution in OpenAI’s strategy toward agentic development tools, offering greater reasoning depth, token efficiency, and interactive capabilities across software engineering tasks. By extending its context management and compaction strategies, the model is positioned to handle tasks at the scale of full repositories, rather than individual files or snippets.
With continued emphasis on agentic workflows, secure sandboxes, and real-world evaluation metrics, Codex-Max sets the stage for the next generation of AI-assisted programming environments — while underscoring the importance of oversight in increasingly autonomous systems.