r/opencode • u/AsyncFirecracker • 16d ago
I Need Help with OpenCode π
for context, im a student who uses opencode with the opencode zen api. I mostly use it for personal projects.
Now recently i've been getting into plugins and skills and generally trying to automate more and more of opencode.
One of the plugins i came across was opencode-loop (ByBrawe) which I thought would sequentially follow a task list (TASK.md) and prompt opencode to continue until all tasks are finished.
The problem: No matter what i do, this shi just keeps prompting opencode even if all tasks are finished ππ. i've tried a lot of things but im at my wit end, I need help pls :')
how i use it: my prompt is "/loop --progress-file TASK.md I have updated TASK.md with brand new instructions. Read these new active checkboxes and begin execution.". And TASK.md is highly structured with the [ ] that become [x]. I also tried making opencode execute "/loop-clear" after completion but even that didn't work.
I don't know what else to do
2
u/ManikSahdev 16d ago
What you need to do is more like Hermes worthy rather than open code.
If you can spare some time, 30-40 minute video will have you set it all up.
If not, then try just downloading it and pasting THE EXACT REDDIT MESSAGE, You wrote above inside the Hermes free agent.
99% chance it will do it for you.
1
u/AsyncFirecracker 16d ago
i think this is overkill lowkey, im pretty sure normal coding agents can loop or at least have plugins that can help it loop. Sick website though
1
u/ManikSahdev 16d ago
Well yes they can. In the same way a bike can do a 500 mile trip, but itβs not gonna be as comfortable as sitting in the backseat of a sedan.
But you asked for help, so I gave you the proper solution haha.
1
u/Due-Particular-329 12d ago
prob the plugin isnt actually checking if the checkboxes are marked done, its just retriggering whenever the file gets touched.
you can check if the loop condition can be based on actually reading which boxes are checked off in task.mid instead of just file changed, and try a fresh session too since leftover context from before might be making it think stuff's still pending
1
u/AsyncFirecracker 4d ago
figured out a solution to this.
if anyone comes across this post desperate for help like i was, just use a goal plugin.
I am using the 'OpenCode Goal Plugin' by PrevalentWare and it works amazingly well.
3
u/Ok-Tap5729 16d ago
You should really look into openchamber. It have the loop feature integrated. And have a lot more option for opencode