logoalt Hacker News

planckscnsttoday at 3:47 AM0 repliesview on HN

I'm working on "context bonsai" which is currently a plugin for OpenCode that allows the LLM to self-edit its own context. It works like compaction, but it can retrieve back the compacted info if needed. And it's not just when the context is completely full, and it doesn't compact the entire context - it picks messages / tool calls where the details are no longer necessary, like a debugging session that is already solved or feature implementation that is complete and you've started on implementing the next feature.

I've also used tweakcc to make this work in Calude Code and plan to also do one for open source coding agents - codex, pi, Gemini, etc. And I'm also doing Livestreams of the development process.

https://github.com/Vibecodelicious/opencode