AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

OpenAI has decreased the context size of its Codex model by 100,000 tokens, from 372,000 to 272,000. This change affects how much code the model can process at once, 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, impacts the model’s ability to process larger blocks of code or text in a single interaction, affecting developers and AI-powered coding tools.

The reduction was announced by OpenAI on its official channels without specifying the reason behind the change. The update is effective immediately and applies to all instances of the Codex model used in API services. OpenAI did not specify whether this change was driven by technical constraints, cost considerations, or performance optimization.

Prior to the update, Codex could handle up to 372,000 tokens, enabling it to process extensive codebases or lengthy prompts. The new limit of 272,000 tokens represents a decrease of approximately 27%, which could influence workflows relying on large context windows. OpenAI has not indicated plans to restore or further modify the token limit in the near future.

Industry analysts note that this change may affect applications such as code completion, large-scale code analysis, and complex prompt engineering, potentially requiring developers to adjust their prompts or split tasks into smaller segments.

At a glance
updateWhen: announced March 2026
The developmentOpenAI announced a reduction in the Codex model’s context window, lowering it from 372,000 tokens to 272,000 tokens, effective immediately.

Implications for Developers and AI Code Tools

This reduction in context size is significant because it limits the amount of code or text the Codex model can process at once, potentially impacting productivity and the scope of projects that rely on the model. Developers may need to modify workflows, split large codebases, or optimize prompts to work within the new limit.

For AI-powered coding tools, this change could influence performance, especially in scenarios demanding large context windows, such as analyzing extensive codebases or generating lengthy code snippets. The move might also reflect OpenAI’s balancing of computational costs and model efficiency.

Overall, this adjustment underscores ongoing trade-offs in AI model deployment, highlighting the importance of understanding model limitations for effective integration into development pipelines.

Amazon

code completion AI tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background on Codex and Its Context Limits

The Codex model, developed by OpenAI, is a descendant of GPT-3 optimized for code generation and understanding. It has been widely used in tools like GitHub Copilot and various API integrations, enabling developers to automate coding tasks and generate code snippets efficiently.

Prior to this change, Codex supported a context window of 372,000 tokens, allowing it to handle large code files or complex prompts in a single request. This capacity was seen as a key advantage for large-scale coding projects and detailed prompt engineering.

The reduction in token capacity marks a notable change in the model’s capabilities, with no prior indication from OpenAI of plans to alter the context window size. The change aligns with recent trends in AI model deployment, where balancing computational costs and performance remains a key concern.

Amazon

large codebase analysis software

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Unclear Reasons and Future Plans for Token Limit Changes

OpenAI has not publicly explained the specific reasons behind the reduction in the context window or whether further adjustments are planned. It is unclear if this change is temporary or part of a broader strategy to optimize model performance and cost efficiency.

Additionally, the impact on existing integrations and whether OpenAI will offer options to customize or extend context limits remains unknown. Developers are awaiting further clarification from OpenAI.

Amazon

AI-powered coding assistant

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Next Steps and Developer Considerations

OpenAI is expected to provide additional guidance or updates regarding the rationale for the change and potential future modifications. Developers should review their workflows to accommodate the new token limit, possibly splitting large codebases or prompts into smaller segments.

Monitoring OpenAI’s official channels for further announcements or API updates will be essential. There may also be future improvements or alternative solutions to mitigate the impact of the reduced context window.

Amazon

prompt engineering tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

Why did OpenAI reduce the Codex model’s context size?

OpenAI has not publicly detailed the specific reasons but indicated that the change is aimed at optimizing performance and resource utilization.

How does this change affect existing applications using Codex?

Applications may need to adapt by splitting large prompts or codebases into smaller segments, as the maximum context size has decreased by approximately 27%.

Will OpenAI restore or increase the context window again?

There has been no official announcement about future increases or reversals; the current change appears to be permanent for now.

Does this impact the performance of AI coding tools like GitHub Copilot?

Potentially, especially in scenarios involving large code files or complex prompts, which may require workflow adjustments.

Are there alternatives to handle large codebases with Codex?

Developers can split code into smaller chunks or use multiple requests to process extensive codebases within the new token limits.

Source: hn

You May Also Like

Build vs Buy a Prebuilt AI Workstation

Struggling to choose between building or buying your AI workstation? Discover the latest insights, real costs, and practical tips for 2026’s AI boom.

The stake. Why the answer to automation is broad-based ownership, not a bigger transfer.

Experts argue that expanding ownership of capital, not increasing transfers, is the market-friendly solution to automation’s impact on labor and income.

Kimi Linear: An Expressive, Efficient Attention Architecture (2025)

Kimi Linear introduces ‘Kimi Linear,’ a novel attention architecture claimed to be more efficient and expressive, marking a significant advance in AI model design.

The Delegation Ladder: The Four Agentic Loops, And What Each One Lets You Stop Doing

An analysis of the four agentic loops in AI engineering, detailing their functions, implications, and how they enable stopping at different levels of automation.