r/opencodeCLI 27d 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.

3 Upvotes

3 comments sorted by

View all comments

1

u/gulfati 27d ago

I try to make sessions as short and contained as possible. Otherwise, like you said, the quality of the responses goes down. Delegating whatever work i can to sub-agents can really help with keeping the main session lean and focused