3 ms·
The fact there is no way to disable auto-compaction and no way to go back in the conversation history to before a compact makes codex a no-go for me on any code
by jubilanti 3mo ago
The fact there is no way to disable auto-compaction and no way to go back in the conversation history to before a compact makes codex a no-go for me on any codebase > 5kloc. Even worse it seems to fire randomly at 10-20% of context left. So really you have 80% of 272k as real usable context. Compaction kills my sessions, it hallucinates and is worse than starting fresh. I've had enough times screaming at my computer when it burns tokens on a large codebase, gets to 15%, auto-compacts, and hallucinates so bad it has to read the entire codebase agin, gets to 15%, auto-compacts....
- p1esk 3mo ago[flagged]
- Kye 3mo agoThis would have been a great opportunity to suggest one.
- jubilanti 3mo agoI did find a strategy, thank you very much, and it was easy: npm uninstall -g @openai/codex && curl -fsSL https://claude.ai/install.sh | bash This was the final straw that got me to downgrade my OpenAI subscription and move the bulk of my spending to Anthropic and Claude code. OpenAI devs, if you're reading, this is how you lost a customer.
- no_no_no_yes 3mo agoClaude does the same? It asks you to create new chats (Claude Design) and Claude Code nudges you to start over too, I think `/compact` is optional though?
- jwitthuhn 3mo agoClaude does the same when you hit the context limit, but the difference is that claude's context limit is 1m and Codex's is 272k now. Claude lets you get a lot more done before you have to worry about the start getting compacted away.
- anukin 3mo agoHave you observed any decrease in performance at context higher than 200k? That used to be one of the major issues why clearing or compacting context when the context nears 150 to 170k is usually preferred.
- jwitthuhn 3mo agoNot really, on the project I'm working on right now most of my longer prompts seems to consume somewhere between 300k and 400k tokens (input + output) and I find that both Opus 4.8 and Fable 5 don't seem to get lost with that much context. At least the results still look good to me. I don't think I've ever pushed past 500k though, it may well fall apart at the higher end of what is officially supported.
- ilc 3mo agoOpus: Yeah, it can be a little fuzzy at 600-700k, I prefer it 400K and under in general. But, I've had usable sessions to 850k. It really depends on the session, and what you are doing how far you can push it.
- PeterStuer 3mo agoI see it more past 300-350k these days, but probably there is a smaller decline even past 250k.
- volker48 3mo agoHave you tried using another harness like Pi? You can easily turn off auto compaction and if you leave it on you can use /tree to go back before the compaction if you like.
- sdesol 3mo ago> you can use /tree to go back before the compaction This is really a killer feature in my opinion. I'm currently working on pi brains extension that is designed to solve the compaction issue I have, which is, I don't know what the AI knows after compaction. https://gitsense.com/screenshots/pi-inspect-overview.png https://gitsense.com/screenshots/pi-inspect-overview.png The screenshot shot above contains what I call a compaction capsule which contains all the messages/events at the point of compaction. The "Files" section in the right side panel shows me how many files were read/modified since compaction. After compacting, I can easily tell what Pi use to know and use `/tree` to go back in time. I still wouldn't compact more than 5 times before starting a new session since compaction messages persists in Pi.
- maherbeg 3mo agoYou also might like https://github.com/nicobailon/pi-boomerang https://github.com/nicobailon/pi-boomerang that lets you effectively do some work, compact that section with a summary and continue on.
- mycall 3mo agoSo the practical workaround is to set model_auto_compact_token_limit very near, but still below, the model’s context window. This postpones compaction rather than disabling it. config.toml model_context_window = 27000 model_auto_compact_token_limit = 17000 model_auto_compact_token_limit_scope = "total"
- behnamoh 3mo ago> The fact there is no way to disable auto-compaction and no way to go back in the conversation history to before a compact makes codex a no-go for me Same. I've told @tibo many times about these issues but apparently OpenAI's focus is on features that buy them the most users ASAP instead of increasing harness quality.