Did it actually edit a file, or just include code in the plan response? Those are different; generated code text alone doesn't show that the agent had workspace write access.
if you want an agent to definitely be able to write/edit - you must edit opencode.json: Example: { "agent": { "plan": { "permissions": { "edit": "deny", "bash": "deny", "python": "deny" } } } }
1
u/paul_h-609 5d ago
Did it actually edit a file, or just include code in the plan response? Those are different; generated code text alone doesn't show that the agent had workspace write access.
2
u/Oli_Luck 8d ago
if you want an agent to definitely be able to write/edit - you must edit opencode.json:
Example:
{ "agent": { "plan": { "permissions": { "edit": "deny", "bash": "deny", "python": "deny" } } } }
1
u/ERROR_FOX_PG 8d ago
Es solo una orden oculta, si la orden es muy directa en que debe crear algo, lo evadirá
1
u/lordcohliani 3d ago
I had an agent do that once. It created a markdown document of the plan.