opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat(tui): add /instructions command to show loaded instruction files

Open phall1 opened this issue 3 days ago • 3 comments

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

phall1 avatar Jan 10 '26 17:01 phall1