[FEATURE] Allow some commands to execute asynchronously
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Currently, if a command is entered while Claude is busy, it ignores it. But commands that do not involve model interactions can be easily executed right away - e.g. /exit, /rename, /usage can execute while the model is busy with something else.
Proposed Solution
Have the shell treat the main model execution similar to that of background agents - namely still be capable of interacting with the user for those interactions that do not require model to particupate
Alternative Solutions
_No response_
Priority
Low - Nice to have
Feature Category
Interactive mode (TUI)
Use Case Example
I am working on something. Model went into a long compaction cycle. I want to rename the current session to make it easier to fork it, and do not want to wait for compaction to end. I command /rename foo - would like the rename to take effect right away.
Additional Context
_No response_
4 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
This RFE is indeed a dup of #14915, but that report was erroneously closed as a dup if another issue it was not actually a dup of, so this one needs to stay open.
This would be a huge unlock for productivity, having to wait to execute non-disruptive commands wastes time
Good news: this is in place. Commands that don't need the model now run right away even while Claude is working —
/rename(added in v2.1.70),/exit,/usage,/status,/tasks,/mcp,/hooks,/skills,/feedback, and more. Only commands that need a model turn still queue behind the current one. Changelog: https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md🤖 Generated with Claude Code