Hacker GitHub

← All repos

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

Mentions per year 6 mentions · busiest year 2026 (6)
20082026
  1. 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.
  2. 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.
  3. 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
  4. opencode has a plugin for similar work: https://github.com/Opencode-DCP/opencode-dynamic-context-pru... It allows the model to remove context pollution.
  5. 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
  6. 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…