Tarquinen/opencode-dynamic-context-pruning
View on GitHub ↗ ★ 4,477 TypeScript
Dynamic context pruning plugin for OpenCode - intelligently manages conversation context to optimize token usage
6 mentions on Hacker News by 4 people: 0 stories, 6 comments · first 2026-03-01 · latest 2026-09-14
20082026
-
this is what I use: https://github.com/Opencode-DCP/opencode-dynamic-context-pru... ; this and openviking appear to be all I need to get a proper 'do anything' setup.
comment by cyanydeez · 2026-09-14 · in Notes on gotchas while migrating 35kb preprompts from Opus to self-hosted Ollama -
I recommend that Opencode users try Dynamic Context Pruning as well: https://github.com/Opencode-DCP/opencode-dynamic-context-pru... It works great for long-horizon tasks, and feels like it saves a boatload of tokens.
comment by bigyabai · 2026-07-12 · in Claude Code sends 33k tokens before reading the prompt; OpenCode sends 7k -
I don't really think you're making reasonable decisions at that size; but I suppose if you're not allowed to refactor it, maybe. I think the way these models work excludes sane behaviors the larger the context gets as each token introduces…
comment by cyanydeez · 2026-06-16 · in Running local models is good now -
opencode has a plugin for similar work: https://github.com/Opencode-DCP/opencode-dynamic-context-pru... It allows the model to remove context pollution.
comment by cyanydeez · 2026-05-31 · in Cache hit rates of Inference are more meaningful than the headline costs -
I've done some very long sessions on OpenCode with Dynamic Context Pruning. Highly recommend it. https://github.com/Opencode-DCP/opencode-dynamic-context-pru...
comment by cassianoleal · 2026-04-07 · in GLM-5.1: Towards Long-Horizon Tasks -
I've been running https://github.com/rtk-ai/rtk for a week seems to be a good balance between culling out of context and not just killing everything. I've been running https://github.com/Opencode-DCP/opencode-dynamic-context-pru... in…
comment by WesBrownSQL · 2026-03-01 · in MCP server that reduces Claude Code context consumption by 98%