Open
Conversation
This was referenced Mar 27, 2025
ezyang
added a commit
that referenced
this pull request
Mar 27, 2025
Implement slash commands. These are done by putting Markdown files in ~/.claude/commands/ The content of the file becomes a new command the user can trigger with /user:command-name. When UserPrompt receives a message that starts with slash, it tries to resolve this as a command, and if successful, outputs the contents of the command markdown. ```git-revs c25aa15 (Base revision) 5314236 Implement slash commands feature in user_prompt.py e5f18b5 Add unit tests for slash commands functionality 0e019c6 Add end-to-end tests for slash commands functionality 39821df Add pytest-asyncio as a dependency 88eb53f Enable asyncio mode in pytest configuration 61c1515 Fix async test with anyio marker 868d109 Fix second async test with anyio marker d865b48 Fix e2e test with anyio marker d64f3d2 Remove asyncio_mode option since we're using anyio 9dd15c2 Completely rewrite slash command tests to avoid async issues f65c92b Rewrite e2e slash command test to avoid async issues b24f654 Auto-commit format changes HEAD Auto-commit lint changes ``` codemcp-id: 235-feat-implement-slash-commands ghstack-source-id: e52dc18 Pull-Request-resolved: #225
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.
Stack from ghstack (oldest at bottom):
Implement slash commands. These are done by putting Markdown files in ~/.claude/commands/ The content of the file becomes a new command the user can trigger with /user:command-name. When UserPrompt receives a message that starts with slash, it tries to resolve this as a command, and if successful, outputs the contents of the command markdown.
codemcp-id: 235-feat-implement-slash-commands