OpenAI’s GPT-5.2-Codex advances software engineering with better reasoning and context understanding

OpenAI Group PBC today released a new version of GPT-Codex, its agentic artificial intelligence coding model that’s designed to automate complex software engineering tasks.
The latest version, GPT-5.2-Codex, builds upon the capabilities of GPT-5.2, adding improvements in context compaction, large code refactoring, Windows environment performance and cybersecurity, the company said.
According to OpenAI’s blog post, GPT-5.2-Codex achieved an unma…
OpenAI’s GPT-5.2-Codex advances software engineering with better reasoning and context understanding

OpenAI Group PBC today released a new version of GPT-Codex, its agentic artificial intelligence coding model that’s designed to automate complex software engineering tasks.
The latest version, GPT-5.2-Codex, builds upon the capabilities of GPT-5.2, adding improvements in context compaction, large code refactoring, Windows environment performance and cybersecurity, the company said.
According to OpenAI’s blog post, GPT-5.2-Codex achieved an unmatched score on the SWE-Bench Pro benchmark, with 56.4% accuracy, besting all other coding models launched so far. It also racked up a score of 64% on the Terminal-Bench 2.0 benchmark, outperforming earlier versions of Codex. It’s aided by stronger vision capabilities that allow it to better interpret screenshots, technical diagrams and user interfaces, so it can translate software design mockups into functional prototypes.
OpenAI said GPT-5.2-Codex is meant to advance software engineering, which is the process of designing, developing, testing and maintaining applications by combining engineering principles with programming knowledge. The goal is to create high-quality, reliable and maintainable software that’s able to evolve to meet user’s needs.
The new model’s ability to tackle time-consuming tasks makes it especially good at “refactoring,” which is a key element of software engineering that involves adapting an application’s codebase, not to add new features, but to enhance its quality. For instance, it can tweak an application’s codebase to reduce its memory usage or increase its response times, OpenAI said.
GPT-5.2-Codex represents the culmination of several iterative advances in OpenAI’s generative AI coding capabilities. Earlier models such as GPT-5-Codex and GPT-5.1-Codex-Max progressively improved aspects such as multistep reasoning, long-context understanding and tool integration within coding environments, and GPT-5.2-Codex builds on this work in various ways.
Meet GPT-5.2-Codex, the best agentic coding model yet for complex, real-world software engineering.
With native compaction, better long-context understanding, and improved tool-calling, it is a more dependable partner for your hardest tasks.
Available in Codex starting today.…
— OpenAI Developers (@OpenAIDevs) December 18, 2025
For instance, OpenAI said it performs better at long-range task execution thanks to its context compaction capabilities, which allow it to undertake sustained, multistep coding tasks without forgetting context. It’s also better at large-scale code management, improving its code refactoring, migration and feature-building capabilities, the company said. Moreover, it shows improved performance in Windows-based coding environments, and there are more advanced cybersecurity features that enable AI-assisted bug detection, testing and mitigation.
OpenAI said the focus on improving security is critical to AI-driven software engineering, because modern enterprise infrastructures demand reliable software. Developers and security teams need all the help they can get when it comes to uncovering and fixing complex software vulnerabilities, and they also need to be sure that whatever AI coding tools are being used don’t create more.
Codex’s ability to fix software was highlighted earlier this month when the security researcher Andrew MacPherson used GPT-5.1-Codex-Max to examine the CVE-2025-55182 vulnerability in React. In a blog post, he explained how the model used a combination of iterative assessments, fuzz testing and exploit analysis to mitigate the issue, while also surfacing and mitigating previously unknown vulnerabilities in the process.
OpenAI said the improvements introduced in GPT-5.2-Codex will have real implications for enterprises, enabling them to automate the most complex and repetitive software engineering tasks and integrate more sophisticated features in their applications. By simultaneously supporting cybersecurity operations, it can help organizations to improve efficiency, reduce human error and maintain a competitive advantage in software engineering, the company promised.
The company said GPT-5.2-Codex is available from today to all paid ChatGPT users. It’s planning to extend access to application programming interface users in the coming week, and will also launch an invite-only trusted access pilot program for vetted security professionals focused on defensive cybersecurity.
Image: OpenAI
A message from John Furrier, co-founder of SiliconANGLE:
Support our mission to keep content open and free by engaging with theCUBE community. Join theCUBE’s Alumni Trust Network, where technology leaders connect, share intelligence and create opportunities.
- 15M+ viewers of theCUBE videos, powering conversations across AI, cloud, cybersecurity and more
- 11.4k+ theCUBE alumni — Connect with more than 11,400 tech and business leaders shaping the future through a unique trusted-based network.
About SiliconANGLE Media
SiliconANGLE Media is a recognized leader in digital media innovation, uniting breakthrough technology, strategic insights and real-time audience engagement. As the parent company of SiliconANGLE, theCUBE Network, theCUBE Research, CUBE365, theCUBE AI and theCUBE SuperStudios — with flagship locations in Silicon Valley and the New York Stock Exchange — SiliconANGLE Media operates at the intersection of media, technology and AI.
Founded by tech visionaries John Furrier and Dave Vellante, SiliconANGLE Media has built a dynamic ecosystem of industry-leading digital media brands that reach 15+ million elite tech professionals. Our new proprietary theCUBE AI Video Cloud is breaking ground in audience interaction, leveraging theCUBEai.com neural network to help technology companies make data-driven decisions and stay at the forefront of industry conversations.