Finer-grained permissions for writing files? #1360

Closed
opened 2026-02-16 17:30:37 -05:00 by yindo · 2 comments
Owner

Originally created by @joshuacc on GitHub (Aug 18, 2025).

Originally assigned to: @thdxr on GitHub.

I'd like to allow my planning agent to write only *.md files, so that the original plan is persisted even if something goes wrong later in the process. But I don't want it to go writing anything else.

Originally created by @joshuacc on GitHub (Aug 18, 2025). Originally assigned to: @thdxr on GitHub. I'd like to allow my planning agent to write only *.md files, so that the original plan is persisted even if something goes wrong later in the process. But I don't want it to go writing anything else.
yindo closed this issue 2026-02-16 17:30:37 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 18, 2025):

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

  • #1961: Unifying tools and permissions - discusses how agents currently need to define both tools and permissions blocks, which is related to the need for more granular file writing permissions

Feel free to ignore if this doesn't address your specific case of wanting to restrict writing to only *.md files.

@github-actions[bot] commented on GitHub (Aug 18, 2025): This issue might be a duplicate of existing issues. Please check: - #1961: Unifying tools and permissions - discusses how agents currently need to define both tools and permissions blocks, which is related to the need for more granular file writing permissions Feel free to ignore if this doesn't address your specific case of wanting to restrict writing to only *.md files.
Author
Owner

@rekram1-node commented on GitHub (Aug 18, 2025):

this would be better addressed by #1961 but in meantime you can write a plugin to do this

@rekram1-node commented on GitHub (Aug 18, 2025): this would be better addressed by #1961 but in meantime you can write a plugin to do this
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1360