/ followed by the command name to invoke them. They are only available when running Claude Code interactively — they cannot be used in headless or non-interactive mode (with the exception of a few commands that explicitly support --print mode).
All commands
Commands are only available inside the Claude Code REPL. If you launch Claude Code with
--print for non-interactive (headless) use, most slash commands will not be available. A small number of commands — such as /compact and /cost — support non-interactive mode.Dive deeper
Git workflow commands
/commit, /review, /diff, and /pr_comments in detail.Session management
Managing context, cost, resuming sessions, and more.
Configuration commands
Changing models, themes, auth, memory, and MCP servers.