Answer: You dispatch a command by name by including it in your prompt string, the same way you send regular text. Sending `/` runs a user-invocable skill even when your `skills` list omits it. Status: Confirmed Entry: tool/claude-code/commands-and-shortcuts/dispatch-command-by-name Revision: 2 Digest: sha256:c7be8859b31c740a (changes whenever the content changes) Timeline: Created: 2026-11-13T03:02:59Z Last changed: 2026-11-18T12:13:05Z (unavailable built-in command result: — → /theme isn't available in this environment.) Last verified: 2026-11-20T12:17:18Z Next check: 2026-11-21T12:17:18Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of dispatch method | / | [1] | 2026-11-20 skills option dependency | Dispatch doesn't depend on the `skills` option. | [1] | 2026-11-20 unmatched command behavior | Unknown command: / | [1] | 2026-11-20 unavailable built-in command result | /theme isn't available in this environment. | [1] | 2026-11-20 Sources: [1] Anthropic. "Extend agents with skills". https://code.claude.com/docs/en/agent-sdk/skills.md Role: primary. Accessed: 2026-11-20T12:17:18Z Quote: "Send a command by including it in your prompt string, the same way you send regular text. Dispatch doesn't depend on the `skills` option. Sending `/" (Supports: dispatch method) Quote: "Dispatch doesn't depend on the `skills` option." (Supports: skills option dependency) Quote: "Before v2.1.274, a `/` that matched nothing returned `Unknown command: /` as the result without a model turn." (Supports: unmatched command behavior) Quote: "such as `/theme`, returns `/theme isn't available in this environment.` as the result without a model turn." (Supports: unavailable built-in command result) Published: 2026-11-20T03:26:04Z Snapshot SHA-256: 2f354b9ef0092b59ee87feb47048d185030bfbc566e323d84643dc68dc061cbe (captured 2026-11-20T12:17:17Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:17:18Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:17:18Z Last attempt: 2026-11-20T12:17:18Z Notes and limitations: Extracted automatically from a single official source (section "Dispatch commands by name"). Related: https://latestn.com/tool/claude-code/commands-and-shortcuts/enable-disable-plugin-cli How do I enable or disable a Claude Code plugin from the shell? https://latestn.com/tool/claude-code/commands-and-shortcuts/essential-commands What are the essential shell and session commands in Claude Code? https://latestn.com/tool/claude-code/commands-and-shortcuts/feedback-command How do I send feedback about Claude Code using the /feedback command? https://latestn.com/tool/claude-code/commands-and-shortcuts/code-review-effort-and-flags How do I change the effort level or add flags and extra instructions to Claude Code's /code-review? https://latestn.com/tool/claude-code/commands-and-shortcuts/code-review-fix-flag How do I make Claude Code's /code-review apply the fixes it finds? https://latestn.com/tool/claude-code/commands-and-shortcuts/customize-keyboard-shortcuts How do I customize keyboard shortcuts in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:13:05Z | changed | unavailable built-in command result: — → /theme isn't available in this environment. | [1] 2026-11-18T12:13:05Z | changed | unmatched command behavior: — → Unknown command: / | [1] 2026-11-18T12:13:05Z | changed | unmatched command behavior version: v2.1.274 → — | [1] 2026-11-18T12:13:05Z | changed | command syntax: / → — | [1] 2026-11-18T12:13:05Z | changed | dispatch method: including it in your prompt string → / | [1] 2026-11-13T03:02:59Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/commands-and-shortcuts/dispatch-command-by-name/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/commands-and-shortcuts/dispatch-command-by-name POST: https://latestn.com/dispute/tool/claude-code/commands-and-shortcuts/dispatch-command-by-name with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/commands-and-shortcuts/dispatch-command-by-name?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I dispatch a command by name in a Claude Agent SDK session? Revision 2, last verified 2026-11-20T12:17:18Z. https://latestn.com/tool/claude-code/commands-and-shortcuts/dispatch-command-by-name (accessed 2026-11-21T09:57:26Z). @misc{LatestN_tool_claude_code_commands_and_shortcuts_dispatch_command_by_name_r2, title = {How do I dispatch a command by name in a Claude Agent SDK session?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/commands-and-shortcuts/dispatch-command-by-name}}, note = {Revision 2; digest sha256:c7be8859b31c740a; last verified 2026-11-20T12:17:18Z; accessed 2026-11-21T09:57:26Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/commands-and-shortcuts/dispatch-command-by-name