69328ade4306dad06ac932ba5c4b46e21adc1116

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Allow opencode access to read operations by default

Diff

 1diff --git a/dot_config/opencode/opencode.json b/dot_config/opencode/opencode.json
 2index fbe6d050e90ce2cef4564b19eccdba43b595a801..fd3f5015744b2edc8e7e5514e79851f081c50af5 100644
 3--- a/dot_config/opencode/opencode.json
 4+++ b/dot_config/opencode/opencode.json
 5@@ -2,7 +2,29 @@
 6   "$schema": "https://opencode.ai/config.json",
 7   "permission": {
 8     "edit": "ask",
 9-    "bash": "ask",
10+    "bash": {
11+      "*": "ask",
12+      "grep *": "allow",
13+      "head *": "allow",
14+      "tail *": "allow",
15+      "cat *": "allow",
16+      "echo *": "allow",
17+      "git diff *": "allow",
18+      "git status *": "allow",
19+      "git show *": "allow",
20+      "git log *": "allow",
21+      "mvn test *": "allow",
22+      "mvn compile *": "allow",
23+      "mvn clean *": "allow",
24+      "make lint *": "allow",
25+      "make test *": "allow",
26+
27+      "rm *": "deny",
28+      "git commit*": "deny",
29+      "git stash*": "deny",
30+      "git checkout*": "deny",
31+      "git reset*": "deny"
32+    },
33     "webfetch": "ask",
34     "doom_loop": "ask",
35     "external_directory": "ask"