LatentCodeReference
Slash commands
Every built-in command you can type at the start of a prompt. Type / to see them, with your own commands, skills and MCP prompts.
Aliases are shown after a slash. Commands that take arguments are shown with them. You can also run most commands from the command palette (ctrl+p), and any command with latentcode run --command <name> except those that only exist in the TUI.
Sessions
| Command | Does | Key |
|---|---|---|
| /new · /clear | Start a new session. | ctrl+xn |
| /sessions · /resume · /continue | Switch to another session. | ctrl+xl |
| /rename | Rename this session. | |
| /fork | Copy the session up to a message you choose into a new session. | |
| /undo | Remove your last message and restore the files changed since. | ctrl+xu |
| /redo | Reverse an undo. | ctrl+xr |
| /compact · /summarize | Summarize the conversation to free context. | ctrl+xc |
| /timeline | Jump to a message. | ctrl+xg |
| /export | Save the transcript as Markdown and open it in your editor. | ctrl+xx |
| /copy | Copy the transcript to the clipboard. | |
| /stats | Cost and token usage of this session, including subagents. | |
| /add-dir <path> | status | Let this session use another directory without asking. | |
| /push-to-registry | Share a summary of this session with your organization, for teammates to pull in with @sync:. |
See Sessions and context.
Working on code
| Command | Does | Key |
|---|---|---|
| /init [focus] | Create or improve AGENTS.md for this project. | |
| /review [pr <n> | branch <ref> | commit <sha>] [aspects] | Review changes with a team of reviewer subagents. Without a target, reviews uncommitted changes, including untracked files. Aspects: code, errors, tests, types, comments, simplify, all. | |
| /diff | Open the diff viewer. | |
| /goal <condition> | status | pause | resume | edit | append | clear | Keep working until a condition is met. | |
| /bug-fix <description> | Set a goal to find, fix, test and verify a bug. | |
| /loop [interval] [prompt] | status | pause | resume | stop | Run a prompt repeatedly. | |
| /debate [--rounds n] <question> | Have several models debate a question. | |
| /adopt copilot | Convert GitHub Copilot instructions into AGENTS.md. | |
| /l-spec-explore · -propose · -apply · -update · -sync · -archive | The built-in spec-driven workflow, L-Spec: explore an idea, propose a change with a spec and tasks, apply it, update it, sync the specs, and archive the finished change. In Plan it only explores; switch to Build to write anything. |
See Goals and loops, Common workflows and Debate.
Memory
| Command | Does | Key |
|---|---|---|
| /remember [type:] <note> | Save a note to this project's memory. | |
| /memory [status | path] | Show what's remembered and where. |
See Memory.
Models and agents
| Command | Does | Key |
|---|---|---|
| /models · /mo | Choose a model. | ctrl+xm |
| /effort · /reasoning · /variants | Choose the reasoning effort. | ctrl+t |
| /agents | Choose an agent. | ctrl+xa |
| /fusion | Turn on Fusion. | |
| /org · /orgs · /switch-org | Switch LatentStack organization. | |
| /projects | Switch team within the organization. | |
| /connect | Change the gateway URL and API key. |
See Models.
Interface
| Command | Does | Key |
|---|---|---|
| /editor | Write the prompt in $VISUAL or $EDITOR. | ctrl+xe |
| /skills | Browse and run skills. | |
| /mcps | Turn MCP servers on and off. | |
| /themes | Choose a theme. | ctrl+xt |
| /thinking · /toggle-thinking | Show or hide the model's thinking. | |
| /detail · /toggle-detail | Expand or collapse reasoning, summaries and tool activity. | ctrl+l |
| /timestamps · /toggle-timestamps | Show or hide message times. | |
| /status | MCP servers, language servers and formatters in use, and their status. | ctrl+xs |
| /help | Help. | |
| /exit · /quit · /q | Quit. Typing exit, quit or :q on its own also works. | ctrl+xq |