Feature Request: Dynamic reloading of slash commands
Resolved 💬 2 comments Opened Nov 16, 2025 by StepanNovikov730 Closed Nov 16, 2025
Current Behavior
Slash commands (.claude/commands/*.md) are loaded and cached when Claude Code starts.
If you modify an existing command file, you must restart Claude Code to see the changes.
Expected Behavior
Slash command files should be read dynamically on each invocation, allowing developers
to edit and test commands without restarting the CLI.
Why This Matters
- Developer Experience: Iterating on custom commands requires constant restarts
- Fast Prototyping: Testing prompt changes should be instant
- Industry Standard: Most tools (web servers, template engines) reload configs on-the-fly
- Performance: Reading a small markdown file is negligible (~1ms)
Steps to Reproduce Current Behavior
- Create a slash command:
.claude/commands/test.md - Start Claude Code
- Modify the command file (add text/change prompt)
- Run
/test→ old version still executes - Must restart Claude Code to see changes
Proposed Solution
Read command files on each invocation instead of caching at startup.
Only the command list (for autocomplete) needs to be cached.
Workaround
Currently: restart Claude Code after every change to command files.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗