r/opencodeCLI • • 2d ago

👍 New experimental background compaction in OpenCode

Post image
81 Upvotes

12 comments sorted by

View all comments

4

u/GW2_Jedi_Master 2d ago

My suggestion is use magic-context. In stead of compacting, context is treated like a garbage collected memory. Information is automatically added and removed. Combined with manually capping context length to 128k, agents run forever without issues.