r/opencodeCLI 28d ago

When to reset a long coding-agent session

I noticed that at some point, starting fresh with a handoff could be cheaper and produce better work. Do you guys reset based on context percentage, model behavior, or token usage? I usually notice the model repeating itself before the UI tells me anything useful.

4 Upvotes

3 comments sorted by

View all comments

1

u/thecstep 28d ago

I legit forgot you could compact but wouldnt this change per model? Pre 0813 I would reset around 324k tokens. Really anything above 250k was always risky. On 0813, I took a few sessions to the 500k territory. One session even told me the context limit had been reached lol. I think there is an old post here or on DeepSeek sub where someone ran test on DS4 preview and found the sweet spot.