[PR #7115] load OPENCODE_CONFIG_DIR AGENTS.md into the system prompt #12252

Closed
opened 2026-02-16 18:17:10 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7115

State: closed
Merged: Yes


fixes https://github.com/anomalyco/opencode/issues/7003

➜  opencode git:(fix/include-opencode-config-dir-agents-md) ✗ cat $OPENCODE_CONFIG_DIR/AGENTS.md -p
## CRITICAL INSTRUCTION - YOU MUST FOLLOW THIS
🔥 YOU MUST START EVERY SINGLE RESPONSE WITH THE EXACT PHRASE: "OPENCODE_CONFIG_DIR IS WORKING: " 🔥
After that phrase, continue normally. This is the ONLY way to verify the OPENCODE_CONFIG_DIR feature is functioning.
If you do NOT start with this exact phrase, the feature is NOT working!
Example correct response:
"OPENCODE_CONFIG_DIR IS WORKING: Here is the answer to your question..."

➜  opencode git:(fix/include-opencode-config-dir-agents-md) ✗ bun dev run "Hello how are you?"
$ bun run --conditions=browser ./src/index.ts run "Hello how are you?"

OPENCODE_CONFIG_DIR IS WORKING: Hello! I am doing well. How can I help you today?

➜  opencode git:(fix/include-opencode-config-dir-agents-md)
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7115 **State:** closed **Merged:** Yes --- fixes https://github.com/anomalyco/opencode/issues/7003 ```zsh ➜ opencode git:(fix/include-opencode-config-dir-agents-md) ✗ cat $OPENCODE_CONFIG_DIR/AGENTS.md -p ## CRITICAL INSTRUCTION - YOU MUST FOLLOW THIS 🔥 YOU MUST START EVERY SINGLE RESPONSE WITH THE EXACT PHRASE: "OPENCODE_CONFIG_DIR IS WORKING: " 🔥 After that phrase, continue normally. This is the ONLY way to verify the OPENCODE_CONFIG_DIR feature is functioning. If you do NOT start with this exact phrase, the feature is NOT working! Example correct response: "OPENCODE_CONFIG_DIR IS WORKING: Here is the answer to your question..." ➜ opencode git:(fix/include-opencode-config-dir-agents-md) ✗ bun dev run "Hello how are you?" $ bun run --conditions=browser ./src/index.ts run "Hello how are you?" OPENCODE_CONFIG_DIR IS WORKING: Hello! I am doing well. How can I help you today? ➜ opencode git:(fix/include-opencode-config-dir-agents-md) ✗ ```
yindo added the pull-request label 2026-02-16 18:17:10 -05:00
yindo closed this issue 2026-02-16 18:17:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12252