Closed as not planned
Description
Description
I was using my "Plan-Expensive" mode, and during planning I asked it to write a todo.md file expecting it to update the plan with a plan to write the todo.md file, but actually it created the file
"plan-expensive": {
"description": "A higher-capability planning mode for difficult design, refactoring, and codebase analysis tasks.",
"mode": "primary",
"model": "github-copilot/gpt-5.5",
"variant": "high",
"reasoningEffort": "high",
"textVerbosity": "low",
"permission": {
"edit": "deny",
"bash": "deny"
}
}
The docs (https://opencode.ai/docs/permissions/) say:
edit — all file modifications (covers edit, write, patch)
Why / How did it create the file when it was denied edit permission, which the docs say includes "write"?
Plugins
None
OpenCode version
1.14.33
Steps to reproduce
Create an agent with
"permission": {
"edit": "deny",
"bash": "deny"
}
Then ask it to create a todo.md file saying "say hi"
It creates the file. I believe it should not have permission to create the file
Screenshot and/or share link
No response
Operating System
Debian
Terminal
No response
Reacted by Geovane Menezes
Metadata
Metadata
Assignees
Labels
No labels
Activity
github-actions commentedon May 3, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is distinct from the above (e.g. it reproduces without subagents, or on a specific version), please note that in the issue.
thdxr commentedon May 3, 2026
can you share
opencode debug configmejobloggs-cw commentedon May 3, 2026
opencode debug config
thdxr commentedon May 3, 2026
i tested that config and it works fine. you might want to have it deny the
task: { general: "deny"}so it can't spawn a subagent that can editmejobloggs-cw commentedon May 3, 2026
With my config, using "Plan-Expensive", it will create a new file 100% of the time with the prompt:
```create a todo.md file that says hello world"``
I confirm that by adding permission:
"task": { "general": "deny"}Plan-Expensive can no longer create the file.
But why does it ignore
"edit": "deny"and"bash": "deny"?It seems like a permissions vulnerability if an agent is explicitly denied write access, but can just spawn a subagent that's allowed write access
github-actions commentedon Jul 4, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.