Slash Commands
Slash Commands
Type / in the composer to open a command popover. Slash commands switch modes, manage the conversation, and run your own reusable prompts — without leaving the keyboard.
Opentype / in the composerCustom.lakshx/commands/*.md
Built-in commands
| Command | What it does |
|---|---|
/plan | Switch to Review mode — research first, produce a plan. |
/approve | Switch to Approve mode — edits ask for your OK. |
/auto | Switch to Auto mode — the agent acts without asking. |
/royal | Switch to Royal mode — full autonomy (the consent gate still applies). |
/model | /model <name> switches model; bare /model focuses the picker. |
/new | Start a new chat. |
/undo | Rewind to the last message — revert its file changes and remove it from the conversation. |
/report | Copy the full diagnostic session report to the clipboard. |
/help | List all slash commands. |
The mode commands respect the gate
/royal still triggers the consent gate— a slash command can’t bypass it. Switching mode shows a brief confirmation toast.Custom commands
Drop a markdown file into .lakshx/commands/ in your workspace (or ~/.lakshx/commands/ for a personal command that follows you everywhere) and its name becomes a slash command. Workspace commands win name clashes with personal ones; built-in names always win over both.
A minimal custom command — .lakshx/commands/review.md:
.lakshx/commands/review.md
---description: Review a file for bugs and clarity---Carefully review $ARGUMENTS for correctness bugs, unclearnaming, and missing error handling. List concrete fixes.Now in the composer:
composer
/review src/auth/login.tsHow it expands
- The optional frontmatter block only reads
description:— it’s what shows in the popover. The rest of the file is the prompt body. $ARGUMENTSis replaced by whatever you type after the command name — every occurrence.- If the body has no
$ARGUMENTS, your typed arguments are appended on a new line instead.
Naming rules
Command names start with a letter and may contain letters, digits, and
. _ -. Matching is case-insensitive, and empty or frontmatter-only files are skipped.