feat(ui): add /agents command to show loaded AGENTS.md instruction files (#262) - #287
Open
innocarpe wants to merge 1 commit into
Open
feat(ui): add /agents command to show loaded AGENTS.md instruction files (#262)#287innocarpe wants to merge 1 commit into
innocarpe wants to merge 1 commit into
Conversation
…les (lessweb#262) The /agents slash command reports which instruction files exist (./.deepcode/AGENTS.md, ./AGENTS.md, ~/.deepcode/AGENTS.md) and which one is actually loaded into the system prompt, so users can verify agent instructions are being applied. (cherry picked from commit 1f011799cb6af63a691fa1b15eb0aecbc680ab7e)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/agentsslash command reports which AGENTS.md instruction files exist and which one is actually loaded into the system prompt.Why
Issue #262: users had no way to tell whether their
AGENTS.mdinstructions were being picked up — project-level (./.deepcode/AGENTS.md→./AGENTS.md) and user-level (~/.deepcode/AGENTS.md) files are all silently merged/selected by precedence. This command makes the effective instruction source visible.Example output
Changes
packages/core/src/session.ts: addgetAgentInstructionSources()returning each candidate path withexists/loadedstatus (project files take precedence over the user file).packages/cli/src/ui/core/agent-instructions.ts(new):buildAgentInstructionsReport()renders the human-readable report.packages/cli/src/ui/core/slash-commands.ts+PromptInput.tsx+App.tsx: register and wire the/agentscommand.agent-instructions.test.ts(report),slash-commands.test.ts(registry).Validation
npm run typecheck✅npm test— new tests pass ✅Closes #262