Skip to content

The open source coding agent.

TypeScript

core: prevent accidental edits to migration files by restricting agent access

Dax Raad8a51cbd25381
diff --git a/.opencode/opencode.jsonc b/.opencode/opencode.jsonc
index 3497847a676..8380f7f719e 100644
--- a/.opencode/opencode.jsonc
+++ b/.opencode/opencode.jsonc
@@ -5,6 +5,11 @@
"options": {},
},
},
+ "permission": {
+ "edit": {
+ "packages/opencode/migration/*": "deny",
+ },
+ },
"mcp": {},
"tools": {
"github-triage": false,