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

CommandDoesKey
/new · /clearStart a new session.ctrl+xn
/sessions · /resume · /continueSwitch to another session.ctrl+xl
/renameRename this session.
/forkCopy the session up to a message you choose into a new session.
/undoRemove your last message and restore the files changed since.ctrl+xu
/redoReverse an undo.ctrl+xr
/compact · /summarizeSummarize the conversation to free context.ctrl+xc
/timelineJump to a message.ctrl+xg
/exportSave the transcript as Markdown and open it in your editor.ctrl+xx
/copyCopy the transcript to the clipboard.
/statsCost and token usage of this session, including subagents.
/add-dir <path> | statusLet this session use another directory without asking.
/push-to-registryShare a summary of this session with your organization, for teammates to pull in with @sync:.

See Sessions and context.

Working on code

CommandDoesKey
/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.
/diffOpen the diff viewer.
/goal <condition> | status | pause | resume | edit | append | clearKeep 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 | stopRun a prompt repeatedly.
/debate [--rounds n] <question>Have several models debate a question.
/adopt copilotConvert GitHub Copilot instructions into AGENTS.md.
/l-spec-explore · -propose · -apply · -update · -sync · -archiveThe 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

CommandDoesKey
/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

CommandDoesKey
/models · /moChoose a model.ctrl+xm
/effort · /reasoning · /variantsChoose the reasoning effort.ctrl+t
/agentsChoose an agent.ctrl+xa
/fusionTurn on Fusion.
/org · /orgs · /switch-orgSwitch LatentStack organization.
/projectsSwitch team within the organization.
/connectChange the gateway URL and API key.

See Models.

Interface

CommandDoesKey
/editorWrite the prompt in $VISUAL or $EDITOR.ctrl+xe
/skillsBrowse and run skills.
/mcpsTurn MCP servers on and off.
/themesChoose a theme.ctrl+xt
/thinking · /toggle-thinkingShow or hide the model's thinking.
/detail · /toggle-detailExpand or collapse reasoning, summaries and tool activity.ctrl+l
/timestamps · /toggle-timestampsShow or hide message times.
/statusMCP servers, language servers and formatters in use, and their status.ctrl+xs
/helpHelp.
/exit · /quit · /qQuit. Typing exit, quit or :q on its own also works.ctrl+xq