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

CommandWhat it does
/planSwitch to Review mode — research first, produce a plan.
/approveSwitch to Approve mode — edits ask for your OK.
/autoSwitch to Auto mode — the agent acts without asking.
/royalSwitch to Royal mode — full autonomy (the consent gate still applies).
/model/model <name> switches model; bare /model focuses the picker.
/newStart a new chat.
/undoRewind to the last message — revert its file changes and remove it from the conversation.
/reportCopy the full diagnostic session report to the clipboard.
/helpList 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.ts

How 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.
  • $ARGUMENTS is 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.