Skip to content

Conversation

@ezyang
Copy link
Owner

@ezyang ezyang commented Mar 27, 2025

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.

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-poisoned]
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
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.

2 participants