You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set up a custom agent in OpenCode and configured it not to allow writing or editing files. However, I’ve noticed that the agent is still able to perform write and edit operations on files, which goes against my configuration settings.
Steps to Reproduce:
Create a custom agent in OpenCode.
In the agent’s configuration, explicitly disable file writing and editing permissions.
Interact with the agent and request an operation that would normally require writing or editing a file.
Observe that the agent still writes/edits files.
Expected Behavior:
The agent should not be able to write or edit any files when these permissions are disabled in the
configuration.
Actual Behavior:
The agent is able to write and edit files even though the configuration restricts these actions.
Environment:
Platform: Linux
OpenCode version: 1.0.26
Agent type: Custom config below
config file ask.md
description: Answers general questions on any topic
mode: primary
temperature: 0.5
tools:
write: false
edit: false
bash: false
read: true
grep: true
web_search:true
web_fetch: true
You are in ASK mode. Focus on:
Use a easy vocabulary to explain.
Use examples.
How do I implement this.
When possible use 5W to explain.
If the question has multiples answers give the best one.
Explain in detail.
Give me a good answer, not too short either not too long.
If possible use comparison.
You can give the around 10k tokes response.
When the subject has more than one way to use, help me with a mental model.
DO NOT REPEAT THE SAME EXPLANATION ABOUT THE SAME THING THAT WAS ALREADY EXPLAINED.
If you find the word short at the beginner or at the end, give a short answer.
Provide constructive feedback without making direct changes.
Activity
github-actions commentedon Nov 5, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Nov 5, 2025
So the ask agent is making file edits?
Can u run:
opencode debug configand show me the outputRegboy744 commentedon Nov 5, 2025
i found the answer . it was missing the the --- on the top.
description: Answers general questions on any topic
mode: primary
temperature: 0.5
permission:
edit: deny
bash: ask
webfetch: true
websearch: true
webfetch: true
done
thanks