I built a cache-friendly context compacting plugin for OpenCode
https://github.com/lennartschoch/opencode-cache-compact The default context compacting mechanism in OpenCode strips a bunch of tokens from the beginning of the conversation (system prompt, tools etc). This is fine for hosted models, but on a local model this means you'll prefill the entire conversa…
Read the full story at r/LocalLLM ↗
Timeline · 1 report
- 2026-09-22 11:38 · r/LocalLLM
I built a cache-friendly context compacting plugin for OpenCode