LatentCode

Using the TUI

The terminal interface is keyboard-first. Here's what you need to move fast — the leader key, the shortcuts that matter, and the slash commands built in.

The leader key

Most shortcuts are chords that begin with the leader key, ctrl+x. Press it, release, then press the next key. For example ctrl+x then n starts a new session. If you ever forget a binding, press ctrl+alt+k for the which-key helper, or ctrl+p to open the command palette and search every action.

Essential keybindings

KeysAction
ctrl+pCommand palette — search and run any action
ctrl+x nNew session
ctrl+x lSession list
tab / shift+tabNext / previous agent (e.g. build ↔ plan)
ctrl+x mModel list
ctrl+tCycle model reasoning variants
ctrl+x cCompact the current session (free up context)
escapeInterrupt the agent mid-run
ctrl+x bToggle the sidebar
ctrl+x tSwitch theme
ctrl+x yCopy the last message
ctrl+x qQuit
Everything is remappable
Don't like a binding? Override any of them under the keybinds key in your config file — see Configuration.

Reviewing diffs

When the agent proposes edits you get a diff viewer. Move between changes with ] and [ (hunks) or n and p (files), toggle split vs unified with v, open the file tree with b, and press ? for the full in-viewer help.

Slash commands

Type / at the start of a message to run a command. Built-ins:

CommandWhat it does
/initGuided setup of an AGENTS.md file so the agent knows your project conventions
/reviewReview changes — defaults to uncommitted; also accepts a commit, branch, or PR
/goalSet a persistent objective the agent keeps working toward (see Features)
/modelsOpen the model picker to list and switch AI models (also bound to <leader> m)

Your own custom commands, Skills, and MCP prompts also appear here — start typing and press tab to autocomplete.