What feature would you like to see?
Codex effective context window is set at 272k (400k-128k). After applying auto-compaction threshold of 0.95, the users are left with 258k usable context window. In my opinion this configuration is too conservative, and in net effect hurts the experience more than it should. I recommend the effective context window be set at a more sensible 350k.
Codex should perform auto-compaction as late as possible, to improve quality of work on large-context codebases. The current configuration prioritizes unlikely scenario of model returning 128k message in a single turn (not whole response). That's about 6500 lines of code. I believe most people would benefit more having 30% more context window and supporting at most 2500 LoC output (50k tokens) per turn, at the edge of the context. I can't imagine that ever being an issue in the context of Codex CLI.
This would trade off supporting 128k edge case support, for legitimate and broad improvement for users in large-context scenarios.
Additional information
I've been running this patch for about a week now, and the improvements are great. I can't go back to a 272k window now.
Context window: 63% left (130K used / 332K)
diff --git c/codex-rs/core/models.json i/codex-rs/core/models.json
index 537a42e27..72e08fe20 100644
--- c/codex-rs/core/models.json
+++ i/codex-rs/core/models.json
@@ -10,7 +10,7 @@
"limit": 10000
},
"supports_parallel_tool_calls": true,
- "context_window": 272000,
+ "context_window": 350000,
"reasoning_summary_format": "experimental",
"slug": "gpt-5.2-codex",
"display_name": "gpt-5.2-codex",
@@ -53,7 +53,7 @@
"limit": 10000
},
"supports_parallel_tool_calls": true,
- "context_window": 272000,
+ "context_window": 350000,
"reasoning_summary_format": "none",
"slug": "gpt-5.2",
"display_name": "gpt-5.2",
@@ -99,7 +99,7 @@
"limit": 10000
},
"supports_parallel_tool_calls": false,
- "context_window": 272000,
+ "context_window": 350000,
"reasoning_summary_format": "experimental",
"slug": "gpt-5.1-codex-max",
"display_name": "gpt-5.1-codex-max",
@@ -145,7 +145,7 @@
"limit": 10000
},
"supports_parallel_tool_calls": false,
- "context_window": 272000,
+ "context_window": 350000,
"reasoning_summary_format": "experimental",
"slug": "gpt-5.1-codex",
"display_name": "gpt-5.1-codex",
@@ -187,7 +187,7 @@
"limit": 10000
},
"supports_parallel_tool_calls": false,
- "context_window": 272000,
+ "context_window": 350000,
"reasoning_summary_format": "experimental",
"slug": "gpt-5.1-codex-mini",
"display_name": "gpt-5.1-codex-mini",
@@ -225,7 +225,7 @@
"limit": 10000
},
"supports_parallel_tool_calls": true,
- "context_window": 272000,
+ "context_window": 350000,
"reasoning_summary_format": "none",
"slug": "gpt-5.1",
"display_name": "gpt-5.1",
@@ -267,7 +267,7 @@
"limit": 10000
},
"supports_parallel_tool_calls": false,
- "context_window": 272000,
+ "context_window": 350000,
"reasoning_summary_format": "experimental",
"slug": "gpt-5-codex",
"display_name": "gpt-5-codex",
@@ -309,7 +309,7 @@
"limit": 10000
},
"supports_parallel_tool_calls": false,
- "context_window": 272000,
+ "context_window": 350000,
"reasoning_summary_format": "none",
"slug": "gpt-5",
"display_name": "gpt-5",
@@ -355,7 +355,7 @@
"limit": 10000
},
"supports_parallel_tool_calls": false,
- "context_window": 272000,
+ "context_window": 350000,
"reasoning_summary_format": "experimental",
"slug": "gpt-5-codex-mini",
"display_name": "gpt-5-codex-mini",
What feature would you like to see?
Codex effective context window is set at 272k (400k-128k). After applying auto-compaction threshold of 0.95, the users are left with 258k usable context window. In my opinion this configuration is too conservative, and in net effect hurts the experience more than it should. I recommend the effective context window be set at a more sensible 350k.
Codex should perform auto-compaction as late as possible, to improve quality of work on large-context codebases. The current configuration prioritizes unlikely scenario of model returning 128k message in a single turn (not whole response). That's about 6500 lines of code. I believe most people would benefit more having 30% more context window and supporting at most 2500 LoC output (50k tokens) per turn, at the edge of the context. I can't imagine that ever being an issue in the context of Codex CLI.
This would trade off supporting 128k edge case support, for legitimate and broad improvement for users in large-context scenarios.
Additional information
I've been running this patch for about a week now, and the improvements are great. I can't go back to a 272k window now.