fix(opencode): load global rules by renaming RULES.md to AGENTS.md

RULES.md was not an opencode-recognized rules filename, so global
rules (including the "no AI co-author" Git rule) were never loaded;
only the stale, un-version-controlled ~/.claude/CLAUDE.md fallback
applied, which lacked that rule. Rename to AGENTS.md so opencode
loads it natively as the global rules file.

Also add watcher.ignore for node_modules/.git/dist/.venv/target dirs.
This commit is contained in:
2026-07-31 09:37:17 -05:00
parent e94d6b3c14
commit 4f6136e88c
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
../.config/opencode/AGENTS.md
+3
View File
@@ -112,6 +112,9 @@
}, },
}, },
}, },
"watcher": {
"ignore": ["node_modules/**", ".git/**", "dist/**", "**/.venv/**", "**/target/**"],
},
"lsp": true, "lsp": true,
"formatter": true, "formatter": true,
"model": "zai-coding-plan/glm-5.2", "model": "zai-coding-plan/glm-5.2",