[FEATURE] Invoke Claude Code with an agent or slash command
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
Apologies if this has already been covered in a prior feature request. I did search and wasn't able to find it, but given the large volume of discussions here, I may have missed some keywords.
Frequently I find that I would like to be able to initiate Claude in a specific context with an existing agent or slash command.
For the purpose of creating tools and utilities which wrap over Claude Code, it would be especially useful to have execution parameters for agents and commands that can be invoked before the CLI runtime.
Proposed Solution
Parameters like: `--agent or --slash or --command` which could be chained with claude`.
Example: it would be super helpful to createa bash alias like `debug python which might be an alias for claude --python-debugger - where python-debugger` is the agent ID.
Alternative Solutions
From what I understand from the man page and reference lit:
You can use slash commands this way but not agents/subagents
(Sorry if I got that wrong)
Priority
Medium - Would be very helpful
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗