Well, it shouldn't be needed, the model should already automatically compress when its context is approaching its limit. You can also manually force the model to compress with /compress. I never really tested the model you're using; I mostly use Deepseek and GLM. I also used to have OpenCode-DCP installed but I deleted it a month or so ago and never had any issues. That being said both the model and the harness should automatically trigger a compress when your context is approaching the model's limit. Then again, if your session is approaching the model's limit, that means you should consider starting a new session, or you might run into information loss and general bad results due to compression issues (every time you compress you lose information), that's just unavoidable, so you really should not push a model to its context limit. Try to split your task in multiple tasks instead of using a single huge session.
It also causes issues with a lot of models, if you have “soft “ hints turned on. It appends its hints to the assistants answer, which often causes the assistant to confuse it with a system message and forget what it was actually sending, and just send “No response required “ instead (particularly common with Claude). Spent a while debugging that before narrowing it down to DCP
3
u/Chromiell 5d ago
You probably have something like https://github.com/Tarquinen/opencode-dynamic-context-pruning installed. You should probably remove it, it's pretty useless nowadays...
2
u/fapmasterr69 5d ago
/compact in the chat.
3
u/viitorfermier 5d ago
Read the text. Context window filled up (each model has a limit) a summary is written then the agent continues to work.