From 4f6136e88c89a2019b8b5dd3d02c3dd19885808f Mon Sep 17 00:00:00 2001 From: colem Date: Fri, 31 Jul 2026 09:37:17 -0500 Subject: [PATCH] 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. --- .claude/CLAUDE.md | 1 + .config/opencode/{RULES.md => AGENTS.md} | 0 .config/opencode/opencode.jsonc | 3 +++ 3 files changed, 4 insertions(+) create mode 120000 .claude/CLAUDE.md rename .config/opencode/{RULES.md => AGENTS.md} (100%) diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md new file mode 120000 index 0000000..395f209 --- /dev/null +++ b/.claude/CLAUDE.md @@ -0,0 +1 @@ +../.config/opencode/AGENTS.md \ No newline at end of file diff --git a/.config/opencode/RULES.md b/.config/opencode/AGENTS.md similarity index 100% rename from .config/opencode/RULES.md rename to .config/opencode/AGENTS.md diff --git a/.config/opencode/opencode.jsonc b/.config/opencode/opencode.jsonc index e188be2..ba77bc4 100644 --- a/.config/opencode/opencode.jsonc +++ b/.config/opencode/opencode.jsonc @@ -112,6 +112,9 @@ }, }, }, + "watcher": { + "ignore": ["node_modules/**", ".git/**", "dist/**", "**/.venv/**", "**/target/**"], + }, "lsp": true, "formatter": true, "model": "zai-coding-plan/glm-5.2",