Skip to content

Option to review patches before applying? #1070

Closed

Description

@akriegman

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?

Activity

  1. rekram1-node commented on Oct 12, 2025

    @rekram1-node
    Collaborator

    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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions