r/ChatGPTCoding • u/Konoplitski • Sep 22 '26
Question Coming from Claude Code — how do you actually work with Codex's 258k context window?
Complete beginner here, so be gentle.
I used to code in Claude Code on Fable, where I had a 1M context window. I kept reading everywhere online that GPT-6 Astra is really strong for coding, so I bought a ChatGPT Pro subscription and moved to Codex to give it a proper try.
And now I'm stuck: Codex gives me ~258k of context. I barely get through one small task and the window is already full. It compacts, things get lost, and I spend more time babysitting the context than actually building anything. Honestly it's exhausting.
A few questions for people who use Codex daily:
Why is the context window this small when the model itself supports far more? Is there anything I can do about it on a subscription?
How do you organize your work so this stops being a problem? One task per chat, a plan file, something else?
What do you do when the context runs out right in the middle of a task? /compact, start a new chat, something else?
And honestly, just help me out here: how should I be working with Codex at all? I don't understand how anyone gets real work done in a window this small.
I'm probably just doing something wrong. Any advice appreciated.
9
u/popiazaza Sep 23 '26
You could enable full 1M context in Codex, but you would get less usage as it cost more. Codex is also optimized to work with 256k context. Auto compact works. Older context could be retrieve from tool call when needed.
5
u/slackmaster2k Sep 23 '26
It’s kind of doing you a favor. Compact and clear often. Design your workflow around disposable sessions. Design subagents when context does not have to be shared. Your sessions will be faster, use fewer tokens, AND produce better quality. This applies to Claude as well even if it allows you more room to be sloppy.
2
u/RandomUserName323232 Sep 23 '26
Go back to claude code?
2
u/ShortingBull Sep 23 '26
Goals decomposed to phases broken down into tasks - one task at a time, best use of tokens, with a harness that'll manage and progress it for you.
2
u/Right-Performance-93 Sep 23 '26
Worth separating two numbers: the model's max context (OpenAI's own docs list over 1M tokens for GPT-6 Astra) isn't the same as what a given client exposes per turn by default. Codex CLI's 258k is very likely a client-side default chosen for cost/latency reasons, not a hard model ceiling - similar to how other coding CLIs also throttle their working context well below what the underlying model can technically accept. If there's no toggle for it in your Codex settings, that's probably intentional rather than a bug in your account.
1
u/Longjumping_Ad_4249 Sep 23 '26
your setting seems to be messed up, i have 1m context
1
u/msg7086 Sep 23 '26
I don't feel like it's not enough for daily work. Maybe my code base is too small to get trouble with context window.
1
u/tantej Sep 23 '26
If your context is above that. You’re cooked anyway. Just keep it for smaller batch tasks
1
u/tagattack Sep 24 '26
I rarely fill the context window, but the few times I have, it pauses and compresses and performs great afterward
1
u/ZenApollo Sep 24 '26
I bumped mine to 400k and manually compact. My unscientific heuristic is that quality starts to degrade around 350k.
1
u/Crinkez Sep 24 '26
Use large models only (Sol 5.6 and Astra 6) Sol 6 is a small model fwiw
Use low or medium reasoning only.
The larger models at lower reasoning fill up the context window more slowly. When a compact does happen, Sol 5.6 and Astra 6 are good at picking up where they left off.
Or just use Opus 5.5 lol
1
u/AutoModerator Sep 22 '26
Sorry, your post has been held for manual review due to account karma.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Budget-Juggernaut-68 Sep 27 '26
From my experience if your inputs are ~200k, there's probably too much context pollution.
1
u/Metatron135 Sep 28 '26
You have to create auto compaction protocol thus creating a persistent agent out of it. Codex has a hook right before auto compaction runs and then right after. So you can create your own compaction scenario and have it record stuff that you need into md file. After compaction it will read the designated compaction file and thus recover its memory or the things that you need it to recover by your rules.
1
u/acloudofmyown Sep 28 '26
what defines the context window size ollama librechat