Skip to content

Slash Commands

Type / at the start of the chat input to open a menu of commands the current agent exposes — for example, /review, /compact, or /undo when the connected agent supports them.

Slash commands are provided by the agent, not by Lody. Each Agent Config advertises its own list during capability discovery, so the available commands depend on the CLI type (Claude Code, Codex, Kimi, OpenCode, or any ACP registry runtime) and the version installed on the machine.

Open the menu

  • Type / as the first character of a new turn.
  • Lody fuzzy-matches the remainder of what you type against the agent's command list.
  • Press / to move between entries, Home / End to jump to the first or last entry.
  • Press Enter to insert the highlighted command, or Tab / Escape to close without inserting.

If nothing matches, the menu collapses and the text stays in the input as normal content.

What the commands do

Because commands come from the agent, their behavior is defined by that agent's documentation. Common examples exposed by popular agents include:

CommandTypical behavior
/reviewAsk the agent to review the current diff or recent changes
/compactSummarize and compact the conversation to free up context
/undoRoll back the latest agent-produced change

Check the agent's own docs for the full list and exact semantics.

Refresh the command list

The list is cached per agent config on each machine. After installing a new CLI version or changing the environment for an Agent Config, refresh the cache so new commands show up:

  • From the web UI: open Agent Config, choose the config, and refresh options.
  • From the CLI: run lody agent-config refresh-capabilities <idOrName> on the machine you use.

See Agent Config and CLI Commands for details.