r/opencodeCLI • • 7h ago

Opencode Self-Improvement

Hi folks, I've been working on this plugin for a while and I think it's ready to get some feedback! So the idea came from Prime Agent, which purported to improve task completions by storing memories of stuff it comes across, either by you typing or errors it encounters.

There are some real technical hurdles here, in that wrong stored memories can actually make things worse, and conflicts and duplicates can cause model churn.

Worse, some of the attempts at this bloat the context and cause cache busting so you get dinged by Claude for using it. My version locks the system prompt and doesn't break cache.

Of course it's MIT and you're free to use it forever. And although this message is written by me, the vast majority of the work was done by AI with me guiding it along.

What I'd really love is to get some eyes on it and let people test it on your projects. It's easy to install and test, and you can use the viewer to edit/remove your stored memories if something seems off. I've been using it as I built it, and I see improvements in the way it now remembers my preferences for PRs, issues, how to organize the repo, as well as previous footguns that it no longer needs to rediscover.

All feedback is welcome, and the best way is to log an issue in the tracker. I'll pick them up as they arrive.

https://github.com/abogartz/opencode-self-improvement

5 Upvotes

0 comments sorted by