Skip to content

Dead prompt files: copilot-gpt-5.txt (has read-before-edit but unused) and plan-reminder-anthropic.txt (hardcoded dev path) #30378

Closed

Description

Describe the bug

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

  1. Clone the repo
  2. Search for imports of copilot-gpt-5 or plan-reminder-anthropic in all .ts files
  3. No results found

Related issues

OpenCode version

Latest

Operating System

All

Activity

  1. github-actions commented on Jun 2, 2026

    @github-actions
    Contributor

    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.

  2. added
    needs:compliance
    and removed
    needs:compliance
    on Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions