Slash Command
A slash command is a shortcut instruction mechanism triggered by the slash symbol (/), widely used in chat applications, collaboration tools, and AI assistant interfaces. Users invoke predefined functions or prompt templates by typing a slash followed by a keyword, without manually entering complete instructions. Key characteristics include symbol-prefix identification, support for custom extensions, and the provision of standardized, reusable operation entry points in human-computer interaction.
Timeline (last 90 days)
Parameterless slash commands rely on TTY interaction and are hard to reuse in pipelines or CI, whereas the parameterized form can deterministically complete configuration switches non-interactively.
Slash commands usually take effect within an interactive session and can read and modify session state (such as the current model and permission policy).
Hooks differ from MCP and slash commands: the latter extend the capabilities the model can invoke, whereas hooks extend external programs' perception of and intervention in the agent's running process.
Slash commands are a common interaction method in chat-style AI tools, where users trigger specific functions or workflows by entering short commands starting with "/".
Agent Skills' 9 slash commands are organized in lifecycle order: starting from spec and plan, then proceeding through build, test, and review, until ship.
Slash commands are a convention in the TUI, parsed by the CLI itself and then executing local logic without going through model inference, so a command with the same name may behave completely differently in different products
In Claude Code, slash commands are a built-in shortcut mechanism that allows users to trigger predefined actions via the /command-name format.
CLI stands for Command Line Interface, which is a text-based command interface provided by software for programs or scripts to call.
All Facts (8)
Parameterless slash commands rely on TTY interaction and are hard to reuse in pipelines or CI, whereas the parameterized form can deterministically complete configuration switches non-interactively.
50%UnverifiedSlash commands usually take effect within an interactive session and can read and modify session state (such as the current model and permission policy).
50%UnverifiedHooks differ from MCP and slash commands: the latter extend the capabilities the model can invoke, whereas hooks extend external programs' perception of and intervention in the agent's running process.
50%UnverifiedSlash commands are a common interaction method in chat-style AI tools, where users trigger specific functions or workflows by entering short commands starting with "/".
50%UnverifiedAgent Skills' 9 slash commands are organized in lifecycle order: starting from spec and plan, then proceeding through build, test, and review, until ship.
50%UnverifiedSlash commands are a convention in the TUI, parsed by the CLI itself and then executing local logic without going through model inference, so a command with the same name may behave completely differently in different products
50%UnverifiedIn Claude Code, slash commands are a built-in shortcut mechanism that allows users to trigger predefined actions via the /command-name format.
50%UnverifiedCLI stands for Command Line Interface, which is a text-based command interface provided by software for programs or scripts to call.
50%