codex icon indicating copy to clipboard operation
codex copied to clipboard

Auto-compact when approaching context limit

Open Alfredo-Sandoval opened this issue 4 months ago • 2 comments

What feature would you like to see?

Auto-compact when approaching context limit

Are you interested in implementing this feature?

No response

Additional information

No response

Alfredo-Sandoval avatar Sep 01 '25 02:09 Alfredo-Sandoval

Are there any body working on this feature? I'm willing to implement this if needed

caibirdme avatar Sep 03 '25 01:09 caibirdme

This is indeed very desired, especially with the gpt-oss models, which have default context length on ollama set to 8024 tokens.

Mondonno avatar Sep 06 '25 07:09 Mondonno

For this to be implemented, this issue https://github.com/openai/codex/issues/2927 should probably be fixed first. Otherwise it would become "auto-delete" AGENTS.md instead of auto-compact.

thekoc avatar Sep 10 '25 07:09 thekoc

was auto-compact implemented?

hasnastudio-andrei avatar Sep 18 '25 08:09 hasnastudio-andrei

not yet

caibirdme avatar Sep 18 '25 10:09 caibirdme

So people are paying money to access a coding system, but CODEX inevitably burns out and simply cannot continue working without a dramatic change in workflow that makes the tool more frustrating than useful. I'm not able to ask it to summarize itself so that it can fit into context length because it's at context length. So, there is effectively no point in continuing the project using CODEX.

In other words, your system, which people paid for, simply stops working at a certain point. It becomes useless.

I argue this a problem, not a desired feature or request for enhancement.

chloelcdev avatar Sep 25 '25 19:09 chloelcdev

So people are paying money to access a coding system, but CODEX inevitably burns out and simply cannot continue working without a dramatic change in workflow that makes the tool more frustrating than useful. I'm not able to ask it to summarize itself so that it can fit into context length because it's at context length. So, there is effectively no point in continuing the project using CODEX.

In other words, your system, which people paid for, simply stops working at a certain point. It becomes useless.

I argue this a problem, not a desired feature or request for enhancement.

Is this comment made with the new auto-compaction taken into account?

aehlke avatar Sep 26 '25 03:09 aehlke

So people are paying money to access a coding system, but CODEX inevitably burns out and simply cannot continue working without a dramatic change in workflow that makes the tool more frustrating than useful. I'm not able to ask it to summarize itself so that it can fit into context length because it's at context length. So, there is effectively no point in continuing the project using CODEX. In other words, your system, which people paid for, simply stops working at a certain point. It becomes useless. I argue this a problem, not a desired feature or request for enhancement.

Is this comment made with the new auto-compaction taken into account?

It is not, no. I didn't see the open PR for auto-compact that was made this week, but it's still odd to me that this is marked as "enhancement".

chloelcdev avatar Sep 26 '25 16:09 chloelcdev

We've enabled auto compact at 90% of the context window.

pakrym-oai avatar Oct 28 '25 23:10 pakrym-oai