Skip to content

Conversation

@phall1
Copy link

@phall1 phall1 commented Jan 10, 2026

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

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
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@spoons-and-mirrors
Copy link
Contributor

shouldn't this be added to /status instead?

@phall1
Copy link
Author

phall1 commented Jan 11, 2026

shouldn't this be added to /status instead?

that's a better UX - though with lots of plugins/formatters/lsps/mcp servers the list could get long. maybe need the dialog to be scrollable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Add slash command to show active instruction file paths in a session

2 participants