anomalyco / anomalyco/opencode
[FEATURE]: Better execution permissions and sandboxing
@nexxeln is already working on this.
Since Sep 11, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
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
OpenCode's current execution controls could be improved in three areas:
1. Make permission mode easier to access
The current permission settings are relatively hidden.
It would be useful to show the active permission mode directly in the conversation UI and allow quick switching during a session.
2. Add sandboxed execution
OpenCode has permission controls such as allow, ask, and deny, but lacks a built-in sandbox comparable to a restricted execution environment.
A sandbox could limit filesystem, network, and process access even when an action is approved.
3. Add optional model-assisted approval
For ask mode, an optional reviewer model could evaluate requested actions and decide whether to:
- auto-approve
- ask the user
- deny
Ideally, the reviewer model could be configured separately from the main agent, so a small and inexpensive model can handle approval checks.
These three features would make OpenCode safer and more convenient for autonomous execution.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.