Cache-Friendly Context Compacting Plugin for OpenCode Cuts Local Model Time from 10min to 1-2min

schennardo · reddit · 2026-09-23

The author released the open-source plugin opencode-cache-compact to fix a pain point in OpenCode's default context compacting: it strips tokens from the start of the conversation (system prompt, tools), which is fine for hosted models but forces a full prefill of the already-cached conversation on local models.

The plugin keeps the conversation intact, has the model write a summary, then rewrites the conversation to just system prompt + tools + summary. Since the full conversation remains cached, compacting drops from >10 minutes to 1-2 minutes on the author's Strix Halo. It's their first open-source project in the local LLM space, and feedback is welcome.

Original post →

More from coding & agent

coding & agent channel →