[PR #7678] feat(tui): add /instructions command to show loaded instruction files #12474

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

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

State: open
Merged: No


What does this PR do?

Closes #7679

Add a slash command that displays which instruction files (AGENTS.md, CLAUDE.md, config-specified files, URLs) are loaded for the current session.

Changes:

  • Extract path discovery from SystemPrompt.custom() into reusable paths() function
  • Add /instructions server endpoint via separate route file (avoids TS2589)
  • Add DialogInstructions TUI component
  • Register command in autocomplete and command palette

How did you verify your code works?

  • test & bun run dev
    Screenshot 2026-01-10 at 12 54 05 PM

instructions-pr

Screenshot 2026-01-10 at 12 54 59 PM
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7678 **State:** open **Merged:** No --- ### What does this PR do? Closes #7679 Add a slash command that displays which instruction files (AGENTS.md, CLAUDE.md, config-specified files, URLs) are loaded for the current session. Changes: - Extract path discovery from SystemPrompt.custom() into reusable paths() function - Add /instructions server endpoint via separate route file (avoids TS2589) - Add DialogInstructions TUI component - Register command in autocomplete and command palette ### How did you verify your code works? - test & bun run dev <img width="673" height="196" alt="Screenshot 2026-01-10 at 12 54 05 PM" src="https://github.com/user-attachments/assets/4738e135-2958-47d3-a239-ce07e6a4de3b" /> ![instructions-pr](https://github.com/user-attachments/assets/90b5a85b-7c96-45cd-913e-7130bc209408) <img width="863" height="364" alt="Screenshot 2026-01-10 at 12 54 59 PM" src="https://github.com/user-attachments/assets/41c7338b-f41b-44f7-81d9-605cc274e860" />
yindo added the pull-request label 2026-02-16 18:17:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12474