You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Limit tool (e.g. write, edit) permissions to specific folders #6318
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Hi opencode team,
I love your product and have a suggestion on how to improve secure interaction with the agents. It would be great if some of the tools (primarily write & edit) could be limited to certain project folders in the project.
For example: I want to limit my tester.md to only be able to create files in my ____tests_____ folders or edit files which have test in the filename - but no other files.
Limiting access for tools in a safer way #4667: Limiting access for tools in a safer way - Proposes sandbox-style security contexts with read/write path restrictions and allowed executables
Is there a way to sandbox the agent ? #2242: Is there a way to sandbox the agent? - General sandboxing request with discussion about restricting access outside the working directory
Feel free to ignore if none of these address your specific case.
Activity
github-actions commentedon Dec 28, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
driebe commentedon Dec 28, 2025
Your github actions search is way more comprehensive than the GitiHub search :(. I will close this for #5529
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.