r/opencodeCLI • • Oct 15 '26

I brought Claude Code's /goal command to OpenCode v2 as a plugin

I made a plugin that adds Claude Code's /goal command to OpenCode v2. You give the agent a finish line like "/goal npm test passes with 0 failures" and it keeps working turn after turn until the goal is actually met, no need to keep typing "continue".

After every turn an evaluator checks the conversation and decides if the goal is met, not met or impossible. If it's not met, the agent gets the reason and keeps going on its own.

It's token efficient: the evaluator reuses the session's cached context, so each check costs little more than a short answer.

It also has safety rails (pauses when the agent stops making progress, retries on network errors, turn limit) and a status indicator in the TUI.

Tell me what you think about it and feedback is appreciated.

Here's the repo and npm package:

https://github.com/EL4CTEO/opencode-goal

https://www.npmjs.com/package/@el4cteo/opencode-goal

8 Upvotes

4 comments sorted by

2

u/seeKAYx Oct 15 '26

Exactly what look for a few days ago. Will test later!

1

u/EL4CTEO Oct 15 '26

Let me know if there are any issues!

2

u/__Maximum__ Oct 15 '26

There are many like this already. How is this different?

1

u/EL4CTEO Oct 15 '26

You are right there are many like these ones, but each one has a different architecture and the way it works.. so some people would like this one better or other ones. This one is newer and works with the new v2 so thats a plus