Skip to content

Commit 156e252

Browse files
committed
chore: re-include global AGENTS.md displaced by OPENCODE_CONFIG_DIR
Setting OPENCODE_CONFIG_DIR overrides the path OpenCode uses to find the global AGENTS.md, so the workspace-level instructions file is never loaded. This adds an explicit instructions reference as a workaround until the upstream bug is resolved. Refs anomalyco/opencode#28658
1 parent f41d84f commit 156e252

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.opencode/opencode.jsonc‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://opencode.ai/config.json",
3+
// OPENCODE_CONFIG_DIR overrides the global AGENTS.md lookup path, so we
4+
// re-include it explicitly here. Remove when fixed upstream:
5+
// https://github.com/sst/opencode/issues/28658
6+
"instructions": ["~/.config/opencode/AGENTS.md"],
7+
}

0 commit comments

Comments
 (0)