357d8b64fefd154f5208557f7f3ba5df025849a4

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

Message

Improve AGENTS.md file editing instructions

Diff

 1diff --git a/dot_config/opencode/AGENTS.md b/dot_config/opencode/AGENTS.md
 2index eb106cb69de586ba012cf21ebb304c13a9b011a9..8836498fbc09acca9165d3f7f80df8b62247a9ad 100644
 3--- a/dot_config/opencode/AGENTS.md
 4+++ b/dot_config/opencode/AGENTS.md
 5@@ -19,7 +19,6 @@ When outputing text for human consumption (agent responses, comments, PR descrip
 6 - Build what's needed now, not what might be needed later
 7 - Don't write tests for logs, metrics, or other observability behavior
 8 - Zero comments by default. Only explain it if it is truly complex or unexpected behaviour
 9-- If edits fail due to a mismatch of the expected before change, read the file again, instead of overwriting
10 
11 ## Security
12 
13@@ -35,7 +34,7 @@ Before running any command that writes, deletes, or overwrites irreversibly: ask
14 Specific footguns:
15 
16 - `git reset --hard`, `git checkout -- <file>`, `git restore`: destroys working tree edits silently. The user may have edited files after you wrote them. Never assume the working tree matches your last write.
17-- File overwrites via `Write`: if there is a comflict, read it first and merge your changes, as the user may have edited the file externally.
18+- If a file write fails because of non-matching lines, re-read it first and merge your changes, as the user may have edited the file externally.
19 
20 ## Git operations
21 
22diff --git a/dot_config/opencode/opencode.jsonc.tmpl b/dot_config/opencode/opencode.jsonc.tmpl
23index 9d20170c8604682f1e4eecb2c400effd7b335fd6..e557d4c51d1c76fc11ee2837fd60507af9e2ba2a 100644
24--- a/dot_config/opencode/opencode.jsonc.tmpl
25+++ b/dot_config/opencode/opencode.jsonc.tmpl
26@@ -32,7 +32,7 @@
27   },
28   "plugin": [
29     // "@tarquinen/opencode-dcp@v3.1.15",
30-    "/home/pavle/dev/agent-policy-engine/src/index.ts",
31+    "/home/pavle/dev/agent-policy-engine",
32     "file:///home/pavle/.local/lib/node_modules/@rynfar/meridian/plugin/meridian.ts"
33   ],
34   "provider": {