TL;DR
OpenAI has decreased the context size of its Codex model from 372,000 tokens to 272,000 tokens. The change affects the model’s ability to process longer code snippets, with implications for developers and AI applications.
OpenAI has officially reduced the context window of its Codex model from 372,000 tokens to 272,000 tokens. This change, confirmed by OpenAI representatives, impacts the model’s ability to process longer code snippets and larger projects, which could influence developers’ workflows and AI-assisted coding tasks.
According to OpenAI, the reduction was implemented to optimize model performance and resource efficiency. The change was communicated via official channels and is part of ongoing updates to improve the stability and scalability of their AI models.
OpenAI did not specify whether this reduction affects all versions of Codex or only certain API configurations, but sources indicate that the core model now supports a smaller context window. No immediate performance benchmarks or detailed technical explanations have been provided.
Developers and users of Codex have expressed concern about the potential impact on complex coding tasks, especially those involving extensive codebases or multi-file projects. OpenAI has not yet announced any compensatory features or alternative solutions.
Implications for Developers Using Codex
This reduction in context size could limit the ability of Codex to generate or understand longer code segments, potentially affecting the quality and scope of AI-assisted coding. Developers working on large projects may need to adapt their workflows, possibly breaking code into smaller sections or relying on supplementary tools.
For OpenAI, this move may reflect a strategic shift toward optimizing model efficiency and deployment scalability, but it raises questions about the future capabilities of their AI coding tools and how they will support complex development environments.

The Completion Illusion: Why AI Looks Finished When It's Wrong
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Background on Codex and Context Windows
OpenAI’s Codex, launched in 2021, is an AI model trained to generate code based on natural language prompts. Its large context window allows it to process extensive code snippets, making it useful for code completion, generation, and understanding tasks.
Initially, Codex supported a context size of approximately 372,000 tokens, enabling it to handle sizable codebases and multi-file projects. Over time, OpenAI has periodically updated its models to improve efficiency, but this recent reduction marks a notable change in its core capabilities.
Prior to this, similar models like GPT-4 have supported large context windows, but the specific sizes vary across models and use cases. The reduction may reflect efforts to balance performance and resource constraints.
“Losing 100,000 tokens in context could significantly impact how we manage large codebases, especially for complex projects.”
— AI developer community member
Unanswered Questions About Model Performance
It is not yet clear how this reduction will quantitatively affect Codex’s performance on large or complex coding tasks. OpenAI has not provided detailed benchmarks or user studies to quantify the impact.
Additionally, it remains uncertain whether future updates will restore or further modify the context window, or if this change is permanent across all deployments.
Next Steps for Developers and OpenAI
OpenAI is expected to release more detailed technical information and performance benchmarks in the coming weeks. Developers should monitor official updates for guidance on adapting their workflows to the new context size.
Further updates may include new tools or features to mitigate the impact of the reduced context window, or alternative models designed for larger contexts. Industry analysts will watch how this change influences the competitive landscape of AI coding tools.
Key Questions
Why did OpenAI reduce the Codex model’s context size?
OpenAI stated that the reduction was made to optimize model performance and resource efficiency, though specific technical reasons have not been detailed.
Will this change affect all versions of Codex?
It is not yet clear whether the reduction applies universally across all Codex deployments or only certain API configurations.
How will this impact developers working on large projects?
Developers may need to break large codebases into smaller segments or use supplementary tools, as the model can now process fewer tokens at once.
Is there any plan to restore or increase the context window in the future?
OpenAI has not announced any plans to restore the previous size or increase the context window in upcoming updates.
What should users do now?
Developers should stay updated with OpenAI’s official communications and consider adjusting their workflows to accommodate the smaller context window.
Source: hn