624f9b4f4c40b9884dc00d999c5b0a2e8a324bfd

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

Message

Add more commands to opencode permissions

Diff

 1diff --git a/dot_config/opencode/dcp.jsonc b/dot_config/opencode/dcp.jsonc
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..626881d99c7c657ca7b78669e6d177ee654f8cd7
 4--- /dev/null
 5+++ b/dot_config/opencode/dcp.jsonc
 6@@ -0,0 +1,31 @@
 7+{
 8+    "$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/master/dcp.schema.json",
 9+    // Enable or disable the plugin
10+    "enabled": true,
11+    // Unified context compression tool and behavior settings
12+    "compress": {
13+        // Compression mode: "range" (compress spans into block summaries)
14+        // or experimental "message" (compress individual raw messages)
15+        "mode": "range",
16+        // Permission mode: "allow" (no prompt), "ask" (prompt), "deny" (tool not registered)
17+        "permission": "allow",
18+        // Show compression content in a chat notification
19+        "showCompression": false,
20+        // Let active summary tokens extend the effective maxContextLimit
21+        "summaryBuffer": true,
22+        // Soft upper threshold: above this, DCP keeps injecting strong
23+        // compression nudges (based on nudgeFrequency), so compression is
24+        // much more likely. Accepts: number or "X%" of model context window.
25+        "maxContextLimit": "60%",
26+        // Soft lower threshold for reminder nudges: below this, turn/iteration
27+        // reminders are off (compression less likely). At/above this, reminders
28+        // are on. Accepts: number or "X%" of model context window.
29+        "minContextLimit": "30%",
30+        // Start adding compression reminders after this many
31+        // messages have happened since the last user message
32+        "iterationNudgeThreshold": 20,
33+        // Preserve your messages during compression.
34+        // Warning: large copy-pasted prompts will never be compressed away
35+        "protectUserMessages": true
36+    }
37+}
38diff --git a/dot_config/opencode/opencode.json b/dot_config/opencode/opencode.json
39index e2055b8972120d0ebe9773fe46802973f97a6de4..e5d084ce43a8017028d58dcd600c72b36dadf075 100644
40--- a/dot_config/opencode/opencode.json
41+++ b/dot_config/opencode/opencode.json
42@@ -10,6 +10,7 @@
43       "find *": "allow",
44       "grep *": "allow",
45       "head *": "allow",
46+      "jq *": "allow",
47       "ls *": "allow",
48       "mkdir *": "allow",
49       "rg *": "allow",
50@@ -22,6 +23,7 @@
51       "true": "allow",
52       "uniq *": "allow",
53       "wc *": "allow",
54+      "qmd *": "allow",
55       "git branch *": "allow",
56       "git describe *": "allow",
57       "git diff *": "allow",
58@@ -32,7 +34,9 @@
59       "git show *": "allow",
60       "git status *": "allow",
61       "git tag -l *": "allow",
62+      "go doc *": "allow",
63       "go env *": "allow",
64+      "go get *": "allow",
65       "go list *": "allow",
66       "go mod *": "allow",
67       "go test *": "allow",