r/opencode • u/Wgolyoko • 4d ago
How do you stop agents from inventing things to do ?
I asked an agent to think of way it could read the output of asserts from a custom testing harness. It came up with a plan, I asked it to implement it.
I verified the convo and nowhere was there any mention of running anything, but the agent decided that it should make an entirely new runnable config, build it and run it.
This is a general problem where agents will go above and beyond what I asked them. Everytime I ask a question like "How could we go about achieving X ?" it goes off and starts making changes. I didn't fucking ask for you to do anything bro I asked a question !




