Option to review patches before applying? #765

Closed
opened 2026-02-16 17:28:12 -05:00 by yindo · 1 comment
Owner

Originally created by @akriegman on GitHub (Jul 16, 2025).

Originally assigned to: @adamdotdevin on GitHub.

Hi! Thanks for creating this awesome program.

So iiuc, I can configure tools to either be allowed or not allowed, but there is no option to make the model ask for my approval before running a tool. I guess the intended workflow is that I have the model make a plan in plan mode, then switch to build mode to implement it. But I would really like to see exactly the changes that are going to be made before making any edits.

So am I right that opencode does not provide this feature? Is there any plan to add this feature? We could change the tool config to take three values, say 'enabled', 'disabled', and 'request', instead of a bool. Or does the plan mode and build mode workflow actually give me more control than I realize and I should just use that?

Originally created by @akriegman on GitHub (Jul 16, 2025). Originally assigned to: @adamdotdevin on GitHub. Hi! Thanks for creating this awesome program. So iiuc, I can configure tools to either be allowed or not allowed, but there is no option to make the model ask for my approval before running a tool. I guess the intended workflow is that I have the model make a plan in plan mode, then switch to build mode to implement it. But I would really like to see exactly the changes that are going to be made before making any edits. So am I right that opencode does not provide this feature? Is there any plan to add this feature? We could change the tool config to take three values, say 'enabled', 'disabled', and 'request', instead of a bool. Or does the plan mode and build mode workflow actually give me more control than I realize and I should just use that?
yindo closed this issue 2026-02-16 17:28:12 -05:00
Author
Owner

@rekram1-node commented on GitHub (Oct 12, 2025):

realize this is an older issue but we have had permissions for a while, docs here: https://opencode.ai/docs/permissions/

in your opencode.json put:

{
  "$schema": "https://opencode.ai/config.json",
  "permission": {
    "edit": "ask",
  }
}

And it will give option to review edits before they take place

@rekram1-node commented on GitHub (Oct 12, 2025): realize this is an older issue but we have had `permissions` for a while, docs here: https://opencode.ai/docs/permissions/ in your opencode.json put: ``` { "$schema": "https://opencode.ai/config.json", "permission": { "edit": "ask", } } ``` And it will give option to review edits before they take place
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#765