You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dead prompt files: copilot-gpt-5.txt (has read-before-edit but unused) and plan-reminder-anthropic.txt (hardcoded dev path) #30378
Two files in packages/opencode/src/session/prompt/ are unreferenced by any source code, yet contain meaningful content that should either be used or removed.
1. copilot-gpt-5.txt (58 lines)
This file contains the instruction "Before editing, always read the relevant file contents" at line 58 — the exact guidance that is missing from the anthropic.txt prompt used by Claude models. However, system.ts (which routes model IDs to prompt files) never imports it, and no other .ts file references it either. The read-before-edit guidance exists in the repo but is never delivered to any model.
2. plan-reminder-anthropic.txt (14 lines)
This file contains a hardcoded absolute path at line 10: /Users/aidencline/.claude/plans/happy-waddling-feigenbaum.md. It appears to be a developer-specific path that was committed accidentally. It is also not imported anywhere.
Expected behavior
Either the files should be wired into the appropriate tool/prompt pipeline, or they should be removed.
Actual behavior
copilot-gpt-5.txt — not imported in system.ts, reminders.ts, or prompt.ts. Dead code.
plan-reminder-anthropic.txt — same. Contains a developer-specific path that leaks machine info.
Steps to reproduce
Clone the repo
Search for imports of copilot-gpt-5 or plan-reminder-anthropic in all .ts files
Thanks for updating the issue! It now follows the Bug Report template with all required fields filled in. The needs:compliance label has been removed. We appreciate you taking the time to fix it.
Activity
github-actions commentedon Jun 2, 2026
Thanks for updating the issue! It now follows the Bug Report template with all required fields filled in. The
needs:compliancelabel has been removed. We appreciate you taking the time to fix it.