Skip to content

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

Closed as not planned

Description

@AceCodePt

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.

Activity

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

    @github-actions
    Contributor

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

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

  3. AceCodePt commented on Nov 13, 2025

    @AceCodePt
    Author

    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

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

  5. rekram1-node commented on Nov 13, 2025

    @rekram1-node
    Contributor

    Yeah we definitely wanna do this

  6. redtux commented on Nov 22, 2025

    @redtux

    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.

  7. rekram1-node commented on Nov 22, 2025

    @rekram1-node
    Contributor

    @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

  8. redtux commented on Nov 23, 2025

    @redtux

    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. 👍

  9. AceCodePt commented on Jan 2, 2026

    @AceCodePt
    Author
  10. thdxr commented on Mar 25, 2026

    @thdxr
    Member

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

  11. AceCodePt commented on Mar 25, 2026

    @AceCodePt
    Author

    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.

  12. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
  13. redtux commented on May 23, 2026

    @redtux

    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

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