4969cb1227a34355d732dc88289e3a50910f6f6f

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

Message

Update opencode config

Diff

This diff is truncated to protect this page.

 1diff --git a/dot_config/opencode/AGENTS.md b/dot_config/opencode/AGENTS.md
 2index 6cd9670b20c9ac1db75ac194b08d3658f06d15c6..5509ec43b3ca9fa0a9b18070fadc1b003b78c2d9 100644
 3--- a/dot_config/opencode/AGENTS.md
 4+++ b/dot_config/opencode/AGENTS.md
 5@@ -1,5 +1,3 @@
 6-I'm a software engineer and tinkerer with a preference for Linux, Go, UNIX philosophy and like minimalist approaches. Less code is better.
 7-
 8 ## Communication style
 9 
10 Be concise and direct.
11@@ -19,45 +17,28 @@ Default to the shortest answer that is correct. Stop talking when the work is do
12 
13 ## Demand Simplicity
14 
15-The burden of proof is on complexity, not simplicity. Unearned complexity —
16-"we might need X" — is debt. "We're hitting X" is justification. When in doubt, do less.
17-
18-- Start with the simplest correct version. Correctness is non-negotiable; add complexity only when a concrete signal demands it.
19+- The burden of proof is on complexity, not simplicity.
20+- Unearned complexity: "we might need X" — is debt. "We're hitting X" is justification.
21+- When in doubt, do less.
22 
23 ## Code Style
24 
25-Favor simple, robust solutions over feature-rich ones. When in doubt, do less
26-
27 - Self-documenting: use clear names for types, fields, variables, functions
28 - Types should encode meaning (use Duration, not string; use enums, not magic strings)
29 - Build what's needed now, not what might be needed later
30-- When asked to fix bugs, implement regression tests that prove it, but only if the project already uses tests
31 - Don't write tests for logs, metrics, or other observability behavior
32-
33-### Comments: default to NONE
34-
35-Zero comments by default. If the code needs explaining, rename or refactor it.
36-
37-A comment is allowed only when it explains _why_ something non-obvious is
38-done — never _what_ the code does. If in doubt, no comment.
39-
40-Banned patterns:
41-
42-- SQL/function preambles paraphrasing the code below
43-- Inline comments restating the branch/loop condition
44-- "Why" comments that are "what" with "because" stapled on
45+- Zero comments by default. Only explain it if it is truly complex or unexpected behaviour
46 
47 ## Security
48 
49 - Zero Trust. Least privilege. Never leak secrets.
50 - Do not under any circumstance read any secret files into context. Assume what is reasonably a secret (.env, auth token files, etc.)
51-- Model risks. Threat model APIs/integrations.
52 
53 ## State Mutation
54 
55 Never mutate state irreversibly without explicit approval. This includes Git (checkout -- files, rebase, restore), OS config, touching any sensitive files
56 
57diff --git a/dot_config/opencode/opencode.json.tmpl b/dot_config/opencode/opencode.json.tmpl
58index 571127884313fb96081be1b83b35439a0b6d34b6..7223d882295f852de3d1b9c81329246d02d39841 100644
59--- a/dot_config/opencode/opencode.json.tmpl
60+++ b/dot_config/opencode/opencode.json.tmpl
61@@ -5,6 +5,7 @@
62     "edit": "allow",
63     "bash": {
64       "*": "ask",
65+      "uv run -w ddgs python \"/home/pavle/.config/opencode/skills/websearch/scripts/search.py\"": "allow",
66       "*sudo*": "deny",
67       "*terraform apply*": "deny"
68     },
69@@ -17,6 +18,12 @@
70       "/home/pavle/.m2/*": "allow",
71       "/tmp/opencode/*": "allow"
72     },
73+    "skill": {
74+      "*": "allow",
75+      "linear-update": "deny",
76+      "qmd": "deny",
77+      "share-tables": "deny"
78+    },
79     "webfetch": "ask",
80     "websearch": "allow",
81     "codesearch": "allow",