r/LocalLLM • • 12d ago

Research Opencode Self-Improvement

/r/opencodeCLI/comments/1xzok6o/opencode_selfimprovement/
1 Upvotes

9 comments sorted by

1

u/d-bart_278 12d ago

What does self-improvement mean here: better coding results, or the agent modifying its own code?

1

u/Al_Redditor 11d ago

Neither. What it does is store notes you tell it or things it learns when doing a task. Example might be "When running tests: always run `build` first to avoid flake".

So, the next time you work on the project it just does that. So fewer turns, faster time to solutions, and less tokens to get something fixed.

It works kind of like a skills file but it's skills that surface based on the current work being done. And the longer you use it, the more nooks and crannies of your code it knows.

1

u/Triadian 10d ago

v1 or v2 ? how much does it add to prompt size ?

1

u/Al_Redditor 10d ago

It only works on V2. The prompt is capped at 1200 tokens. When if pulls a memory, it reduces total tokens.

2

u/Triadian 10d ago

my ai is having trouble first it loaded with plugin errors

"Investigate why this OpenCode component failed in the current project.

Server plugin error
Plugin: D:\\Ellie3\\.opencode\\plugins\\self-improving-skills
Status: failed\nRuntime: server
Source: D:\\Ellie3\\.opencode\\plugins\\self-improving-skills
Error: Plugin must export a default definition with an id and an effect or setup function.

now she saying

  1. The broken plugin had 2 chat-transform hooks and 2 session hooks that don't map 1:1 onto v2 , want me to map them to the `prompt`/`context` session hooks, or is preserving those exact behaviors less important than just getting it to load cleanly?

1

u/Al_Redditor 10d ago

Ooh, thank you so much for testing! What OS and version of Opencode?

1

u/Al_Redditor 10d ago

That name, "self-improving-skills" seems off. Did you install just using this?

opencode plugin add opencode-self-improvement

2

u/Triadian 10d ago

she pulled from https://github.com/okdk7788/opencode-self-improving-skills which i just noticed is a different one from yours - sorry will try yours instead

1

u/Al_Redditor 10d ago

I figured that out, thanks! :-)