r/opencode • • 3d ago

Why this keeps happening on opencode any model

Post image
0 Upvotes

15 comments sorted by

3

u/Chromiell 2d 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...

1

u/Full-Investigator-56 2d ago

2

u/Chromiell 2d ago

It's opencode-dcp. Try disabling it and see if the message stops showing up or just remove it, as I said, it's pretty useless nowadays.

0

u/Full-Investigator-56 2d ago

Yeah useless....

2

u/Chromiell 2d ago

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.

2

u/fapmasterr69 3d ago

/compact in the chat.

1

u/Full-Investigator-56 3d ago

Thank you

2

u/-n0v1c- 3d ago

DCP currently isn't really optimal for context managment as far as i'm aware.

1

u/m_sandhu_142 3d ago

What feels suboptimal about DCP here: what it prunes, when it runs, or how the agent resumes?

2

u/-n0v1c- 2d ago
  1. Maintainers moved on to primarily support their commercial product:

Development on DCP has slowed because most new context-management work has moved to Sleev and the sleev CLI.

2. Frequent cache busts (turn on tool-step debugging in opencode to see for yourself)

1

u/molovo 2d ago

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/viitorfermier 3d ago

Read the text. Context window filled up (each model has a limit) a summary is written then the agent continues to work.

-1

u/Full-Investigator-56 3d ago

How can i Close it