Three Slash-Command Types

Description

Claude Code slash commands are one of three types. PromptCommand formats a prompt and hands it to the LLM with injected tools (e.g. /review, /commit). LocalCommand runs in-process and returns plain text (e.g. /cost, /version). LocalJSXCommand runs in-process and returns React JSX (e.g. /doctor, /install). All three share the satisfies Command registration pattern in src/commands.ts.

Key claims

Relations

Sources

src-20260420-7ad70d8039bd src-20260420-b1f7364cbe79