-
Notifications
You must be signed in to change notification settings - Fork 8.1k
feat(tui): add /instructions command to show loaded instruction files #7678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
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
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
|
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 |
…ion-paths # Conflicts: # packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx # packages/opencode/src/server/server.ts # packages/opencode/src/session/system.ts # packages/sdk/js/src/v2/gen/sdk.gen.ts
|
Scrollable dialog fix in #6677 Personally prefer the |
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:
How did you verify your code works?