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
| Keys | Action |
|---|---|
| ctrl+p | Command palette — search and run any action |
| ctrl+x n | New session |
| ctrl+x l | Session list |
| tab / shift+tab | Next / previous agent (e.g. build ↔ plan) |
| ctrl+x m | Model list |
| ctrl+t | Cycle model reasoning variants |
| ctrl+x c | Compact the current session (free up context) |
| escape | Interrupt the agent mid-run |
| ctrl+x b | Toggle the sidebar |
| ctrl+x t | Switch theme |
| ctrl+x y | Copy the last message |
| ctrl+x q | Quit |
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:
| Command | What it does |
|---|---|
| /init | Guided setup of an AGENTS.md file so the agent knows your project conventions |
| /review | Review changes — defaults to uncommitted; also accepts a commit, branch, or PR |
| /goal | Set a persistent objective the agent keeps working toward (see Features) |
| /models | Open 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.