GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: edit/write permission with deny,allow,ask using glob · Issue #4287 · anomalyco/opencode

[FEATURE]: edit/write permission with deny,allow,ask using glob #4287

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: edit/write permission with deny,allow,ask using glob#4287
Copy link
Assignees
thdxr

Description

@AceCodePt
AceCodePt
opened on Nov 13, 2025
Issue body actions

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

Maybe allow certain agents to edit specific files would be helpful for documentation agents.

Reacted by Kyle Moore, Pablo Hörtner, Bence Ferdinandy and Nicholas Pace

Activity

  1. AceCodePt
    added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Nov 13, 2025
  2. github-actions commented on Nov 13, 2025

    @github-actions
    github-actionsBot
    on Nov 13, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • BUG: Overriding built-in agents, doesn't allow overriding permissions #3575: Similar request for agent-specific file permissions, includes examples of permission syntax with glob patterns for documentation use cases
    • Plan agent ignores permissions and always forbids file edits #3991: Related issue about agents not respecting edit permissions configuration
    • Support {file:...} references for agent permissions #2208: Feature request for external permission file references to make agent permissions more manageable

    Feel free to ignore if none of these address your specific case.

  3. AceCodePt commented on Nov 13, 2025

    @AceCodePt
    AceCodePt
    on Nov 13, 2025
    Author
    More actions

    The first one is the closest. Though in my case I wasn't able to limit the agents permissions to just *.md

  4. iamhenry commented on Nov 13, 2025

    @iamhenry
    iamhenry
    on Nov 13, 2025
    More actions

    The ability for my planning agent just to edit markdown files would be useful

  5. rekram1-node commented on Nov 13, 2025

    @rekram1-node
    rekram1-node
    on Nov 13, 2025
    Member
    More actions

    Yeah we definitely wanna do this

    Reacted by sandip, Kyle Moore and Bence Ferdinandy
    Reacted by Henry Moran and AceCodePt
    Reacted by atkr
  6. rekram1-node
    assigned
    thdxr
    on Nov 13, 2025
  7. redtux commented on Nov 22, 2025

    @redtux
    redtux
    on Nov 22, 2025
    More actions

    Does it depend on the used LLM provider or model if this is being respected? Sometimes I'm being told "I'm in read-only mode and can't edit", but sometimes the agent just starts working. Often it even starts to implement the plan without asking me for approval, while other times it tells me that the task tool can't be used in plan mode, and so on.

  8. rekram1-node commented on Nov 22, 2025

    @rekram1-node
    rekram1-node
    on Nov 22, 2025
    Member
    More actions

    @redtux if you are using plan agent it will say its in read only mode, you can hit tab to change agents. But also the plan agent isn't that great we are improving it soon

    Reacted by Pablo Hörtner
  9. redtux commented on Nov 23, 2025

    @redtux
    redtux
    on Nov 23, 2025
    More actions

    Well, it seems to depend 😃 I tried again in a fresh session (and using the most recent version) after asking my question here, and it did commit, move files, and other operations (without being instructed to do so). Only after explicitly being asked to edit a file the agent told me that it's in read-only mode. So lessons learned: 1. it doesn't depend on the model (I didn't switch the model), 2. it is being reminded that it's in plan mode when trying to call a tool, 3. I better not trust that plan mode is strictly read-only. It also tried commands that are in the deny list in my settings. Here at least the CLI tells the agent that it's not allowed to run this command, but I would expect the agent not even trying to run that command in plan mode (mv, rm, git reset, git checkout, edit files using bash/sed/pipe, etc.) But thanks for the explanation, now at least I seem to understand how it's expected to work. 👍

  10. AceCodePt commented on Jan 2, 2026

    @AceCodePt
    AceCodePt
    on Jan 2, 2026 via email
    Author
    More actions
    Amazing! Thank you so much.
    …
    On Fri, Jan 2, 2026, 02:24 Ramiro Rivera ***@***.***> wrote: *ramarivera* left a comment (anomalyco/opencode#4287) <#4287 (comment)> This feature has been implemented in the codebase. The permission system now supports pattern-based file permissions for edit, write, read tools using glob patterns like { "*.env": "deny", "*.md": "allow", "*": "ask" }. — Reply to this email directly, view it on GitHub <#4287 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AET7AOHJJDIVM5REZ66NQ734EW3E5AVCNFSM6AAAAACL75JAQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTOMBUGI3DKNJYHE> . You are receiving this because you authored the thread.Message ID: ***@***.***>
  11. thdxr commented on Mar 25, 2026

    @thdxr
    thdxr
    on Mar 25, 2026
    Member
    More actions

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

  12. AceCodePt commented on Mar 25, 2026

    @AceCodePt
    AceCodePt
    on Mar 25, 2026
    Author
    More actions

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

    Open a new issue of add a new message. Because it is still kinda relevant.

    Reacted by Pablo Hörtner
  13. thdxr
    removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
  14. rekram1-node
    closed this as not plannedon May 22, 2026
  15. redtux commented on May 23, 2026

    @redtux
    redtux
    on May 23, 2026
    More actions

    Hi @rekram1-node, can you at least explain why this is not planned? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @thdxr
    thdxr

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.