r/opencode • • Oct 29 '26

🔥 /goal is finally in OpenCode

Post image

...

403 Upvotes

36 comments sorted by

View all comments

Show parent comment

3

u/Takumi-0 Oct 29 '26

I think it really depends on how your harness is and how you manipulate AI conversation. I'm trying multiple things like writing specific tasks (coding oriented) or only run a task from a PRD with making sure the PRD is fully implemented and running as goal (product oriented).

I'm also very interested by how people use it 🤓

1

u/chhola 19d ago

Also trying to understand when to use goal.

What I normally do for a task is to get the agent to create a ticket on github first following by a pr. So the ticket becomes the reference point of the task. Sometimes I create multiple prs for the same ticket using different models, that way I can compare the results and pick the one I like.

1

u/Takumi-0 16d ago

Ok i just had an excellent usecase

I am actually working on a heavy plan that i know the agent would stop anytime. I need to do a big migration of code a legacy work and my 'goal' is to verify on the end result tests are all green based on a plan. During the session, the agent compacted the context multiple time keeping the harness (opencode with deepseek) goal constantly active.

I have the feeling that if your harness is focusing on a task and need to compact, its gonna compact on the current task with a smaller summarize on the "said goal". so the "harness goal" will keep the objective always true.

Does it make sense?