Skip to content

[FEATURE]: Opt-out for "NEVER commit changes unless the user explicitly asks you to." #24370

Closed as not planned

Description

@thameraltoimi

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

i like letting smart models like gpt manage my commits. i have a section on continuous commits in my global AGENTS.md.

however opencode currently hard-codes a rule in packages/opencode/src/tool/bash.txt:

Only create commits when requested by the user. If unclear, ask first.
...
- NEVER commit changes unless the user explicitly asks you to. It is VERY IMPORTANT to only commit when explicitly asked, otherwise the user will feel that you are being too proactive.

please make this configurable. i get the safety aspect and think the current default is sensible, but i would just like an opt-out.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Apr 25, 2026
  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 25, 2026
  3. github-actions commented on Apr 25, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Please review those issues to see if your request is already covered or can be addressed there.

  4. CloudedQuartz commented on Apr 26, 2026

    @CloudedQuartz

    This is in almost every provider system prompt as well. Commits are very useful when you prompt the model to do them correctly, they allow for clean delimitation. 'Do not commit' shouldn't be mandatory

  5. hildebrandt commented on Apr 30, 2026

    @hildebrandt

    Agree. As written, this statement creates conflicting instructions in my workflow. Please remove it, or make it configurable. Thank you for your continued amazing work!

  6. gabrielwerneckms commented on May 2, 2026

    @gabrielwerneckms

    I have this issue too. I have thorough commit discipline rules in my AGENTS.md and they keep being ignored half the time, and I'm pretty sure it's because it conflicts with that section (the agent says so anyway.)

  7. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  8. simonknittel commented on May 19, 2026

    @simonknittel

    I would also like to have it opt-out.
    I just stumbled over this after using OpenCode to refactor and move parts of my codebase. While doing so, all existing comments got removed even though they were still relevant.

  9. github-actions commented on Jul 19, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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