Commands and keys
The input row fills the terminal width, stays at the bottom, and grows up to ten lines as you type. The conversation scrolls above it with Page Up/Down, the mouse wheel, or Ctrl+Home/End on an empty input. Larik uses the terminal's alternate screen and captures the mouse for wheel scrolling, so to select text hold Shift while dragging (Option in iTerm2 and Terminal.app), or turn Mouse scrolling off in /config to select normally and scroll with Page Up/Down. /copy copies the last reply, as Markdown, to the clipboard. On exit it prints the session ID to resume with larik --resume <id>. In-session pickers and settings panels open just above the input and leave recent messages visible; use Ctrl+Page Up/Down or the mouse wheel over a panel to scroll panel content when it does not fit. Edit and file-write previews use syntax highlighting when the file type is recognized. Your own prompts sit in a rounded frame with a teal bar down their left edge, so they stand out from the model's replies. Click a prompt to open a menu for it: Copy puts it on the clipboard, Fork branches into a new session that keeps that turn and its reply, and Rewind does what /rewind does for it. /prompt [n] opens the same menu from the keyboard.
enter sends. shift+enter, alt+enter or ctrl+j adds a newline. esc interrupts the current turn. F2 or /info toggles the session sidebar: the task list, the agents at work, MCP servers that are connected or need attention, language servers that are running or failed, and the skills used this session, each in its own section. The Agents section lists each subagent running in parallel with the model it runs on (amber while one waits for your answer), and when none is running it shows the routing a delegated task would take, marking a role that runs in a worktree with ⎇ and one on a minimal context with ▽. The column is narrow, so a long provider/model spec loses its provider prefix before its model name. It stays open while you type and while a turn runs, and becomes a popup on narrow terminals. The model, effort and permission mode stay in the footer. While a multi-step task is in progress, its checklist floats at the top right (or moves into the sidebar); the completed checklist is added to the conversation. shift+tab cycles and saves the permission mode. alt+p opens the model picker. ctrl+o switches thinking between a one-line summary ("Thought for 14s") and the full text. ? on an empty prompt shows every shortcut. Typing / opens the command palette: keep typing to filter, ↑/↓ to choose, tab to complete, enter to run, esc to close. Typing /config keeps the palette open with searchable key/value suggestions; settings managed by a dedicated editor are available in the /config panel and as their own suggested slash commands. ctrl+c clears the input, interrupts, or (pressed twice) quits.
Vim mode
/vim (or Editor mode in /config, saved as "editor_mode": "vim") edits the prompt vim-style. Each prompt starts in insert mode, where typing works as usual; esc switches to normal mode, and the footer shows which one you're in. While a turn runs, esc on an empty prompt still interrupts.
Normal mode supports:
- Moving:
h j k l,w b eandW B E,0 ^ $,gg G(with a count, a line number),f F t Twith;and,.kon the first line andjon the last recall prompt history, like the arrow keys. - Operators:
d,candywith any motion, doubled for whole lines (dd,cc,yy), or with a text object:iw aw,iW aW, quotes (i" a" i' a') and brackets (i( a( ib,i[,i{ iB,i<). - Editing:
x X D C s S r ~ J,p Pto put what was deleted or yanked,uto undo,.to repeat the last change, including text typed after it. Counts work:3w,2dd,d2w. - Entering insert mode:
i a I A o O.
enter sends the prompt from either mode, and ctrl+ shortcuts keep working. Searching (/, ?), visual mode, marks, macros and named registers aren't supported.
Rebinding keys
keybindings maps an action to a key or a list of keys, replacing that action's defaults. Use /keybindings or Keybindings in /config to edit comma-separated key names, unbind an action, or restore its defaults; changes apply immediately. An empty list unbinds it:
{
"keybindings": {
"external_editor": "ctrl+e",
"toggle_thinking": ["ctrl+t", "ctrl+o"],
"paste_image": []
}
}
Actions and their defaults: submit (enter), newline (shift+enter, alt+enter, ctrl+j), interrupt (esc), quit (ctrl+d on an empty input), history_search (ctrl+r), external_editor (ctrl+g), paste_image (ctrl+v), record_audio (ctrl+space), cycle_mode (shift+tab), view_diff (f4), toggle_thinking (ctrl+o), model_picker (alt+p), shortcuts (?), scroll_up (pgup), scroll_down (pgdown), scroll_top (ctrl+home), scroll_bottom (ctrl+end). Keys are written as Bubble Tea names them: ctrl+, alt+, shift+ and super+ in front of a character or enter, tab, esc, space, up, pgup, f5 and so on. A key you give one action is taken from whichever action had it by default. ctrl+c can't be rebound, and a plain character can't be bound (it would stop you typing it) except to shortcuts. Keys inside pickers and permission prompts stay as they are. The banner lists entries that couldn't apply, and ? and the hints across the interface show the keys as bound. Shared .larik/settings.json files can't rebind keys.
Footer colors
Larik's colors come from CharmTone. Each thing you should recognize at a glance has its own color in the footer:
| Item | Color |
|---|---|
Mode default |
a neutral pill |
Mode plan (read-only) |
a blue pill |
Mode accept edits |
a violet pill |
Mode auto |
a green pill |
Mode yolo |
a red pill |
Effort low … max |
a ramp from violet to pink that gets brighter, with a bar (▂ ▃ ▅ ▆ █) that grows |
◈ sandbox / ⚠ no sandbox |
green when the sandbox is on; amber when it is off (red if you are also in yolo) |
| Cost | hidden, unless a session budget is set and spending reaches its warning threshold: then it reads $1.70/$2.00, amber, and red at the cap |
The composer's border takes the mode's color too (amber for a ! shell command). Violet is kept for Larik's own chrome: the model marker, headings, the gutter beside your prompts and the spinner, a row of blocks the violet-to-pink gradient runs along. A subagent that is waiting for a permission answer is shown in amber.
Status line
status_line adds a command's output to the left side of the footer while keeping Larik's model and other safety information on the right. Context usage is available in /info and the status command's JSON input, but not in the built-in footer because its estimate can be misinterpreted. The permission mode stays at the start. Use /statusline or Custom status line in /config to edit the command and refresh interval, test a preview with current session data, or disable it:
{ "status_line": { "type": "command", "command": "~/.config/larik/status.sh" } }
The command gets the session's state as JSON on stdin, in the form Claude Code gives its statusLine command, so the same scripts work. The payload includes session_id, transcript_path, cwd, model.id, model.display_name, workspace.current_dir, version, cost.total_cost_usd, and context_window (context_window_size, used_tokens, used_percentage). Larik's own fields are under larik: provider, effort, permission_mode, background_tasks, turn_running, activity and active_tool. Set refresh_interval_ms from 300 to 60000 to poll for external changes or simple animation (default 1000). Claude Code's statusLine key is read too. Up to three lines of output are shown, with their ANSI colors. The command runs in the project directory when that state changes and is polled at the configured interval (default 1 second; minimum 300 ms); each run is stopped after 5 seconds. If it fails, the default footer stays and the error is shown once. It runs a command, so it's honored only from personal settings. For example:
#!/bin/sh
cat >/dev/null # consume the session JSON
git_status=$(git status --short 2>/dev/null | paste -sd ' ' -)
[ -n "$git_status" ] || git_status=clean
commit=$(git log -1 --format=%s 2>/dev/null || echo 'no commit')
printf 'git: %.100s\nHEAD: %.100s\n' "$git_status" "$commit"
Custom sidebar
The right-hand /info sidebar can show your own live information below Larik's built-in sections. Use /sidebar-config or Custom sidebar in /config to edit, preview, or disable its personal command. It receives the same session JSON as status_line, including larik.activity (idle, thinking, working or responding), larik.active_tool, larik.turn_running and larik.background_tasks. Its output is shown as plain display content (up to 12 lines); it is refreshed while the sidebar is open, when session state changes, and at the poll interval. This is for information and visual status—not interactive tools. Use MCP or built-in tools to add actions.
{
"sidebar": {
"type": "command",
"command": "~/.config/larik/sidebar.sh",
"refresh_interval_ms": 1000
}
}
For example, show the current activity and the changed paths in the sidebar (the footer example above shows a compact Git summary and the HEAD commit subject):
#!/bin/sh
in=$(cat)
activity=$(printf '%s' "$in" | jq -r .larik.activity)
case "$activity" in
working|responding) frame='◐' ;;
thinking) frame='◓' ;;
*) frame='○' ;;
esac
printf '%s Activity: %s\n' "$frame" "$activity"
changes=$(git status --short 2>/dev/null)
if [ -n "$changes" ]; then
printf 'Git status\n%s\n' "$changes"
else
printf 'Git status: clean\n'
fi
refresh_interval_ms may be set from 300 to 60000; the default is 1000. Both custom commands are executed only from personal config, never from shared project settings. The footer command adds Git state to the left while Larik keeps its built-in session information on the right.
Composer
@mentions. Typing@opens a file picker over the project (it follows.gitignorein a git repository).↑/↓chooses,taborenterinserts, and picking a folder lets you go into it. When you send the prompt, each@pathis attached. A file is attached with line numbers and counts as read, so the model can edit it straight away.@path#L10-40attaches only those lines,@folder/attaches a listing, and@image.png(also.jpg,.gif,.webp, up to 5 MB) attaches the image for vision models.@spec.pdf(up to 32 MB) attaches the PDF whole, so the model reads its layout, tables and figures rather than text pulled out of it — on Anthropic, OpenAI and Gemini, whose APIs take a document; any other provider is told you instead of being sent a request it would reject. Larik counts the pages so the context meter can account for one, and a PDF costs roughly a page of text plus a picture of it per page, so a long one is expensive. Switching to a model that can't read documents keeps the conversation working: the PDF is dropped from later requests and the model sees only the note that it was there. Quote paths with spaces:@"my notes.md". A mention that isn't a real path stays as text, deny rules forreadstill apply, and/rewindand the session list show the prompt as you typed it. Mentions also work inlarik -pandlarik serveprompts. The model can open images and PDFs itself, too: thereadtool returns them whole, with the same size limits and provider rules (on other providers it suggests extracting a PDF's text instead), and arun_codescript passes on up to eight of them from its calls.- Dropped files. Pasting or dragging a file's absolute path into the terminal inserts it as an
@mention. - Pasted images. A terminal can only paste text, so
ctrl+vreads an image from the system clipboard instead, such as a screenshot. Larik saves it under the data directory (pastes/, readable only by you, deleted after 7 days) and inserts it as an@mention, so it is attached like any@image.png. Images over 5 MB, or longer than 2000 pixels, are scaled down and sent as JPEG. On macOS this needs nothing extra; on Linux it useswl-paste(Wayland) orxclip(X11). !shell commands. A prompt starting with!runs the command directly and shows its output. The input border turns yellow while you type one. The command runs in the bash sandbox when one is available and doesn't ask for permission, butbashdeny rules still apply. Its output is sent to the model with your next prompt.escorctrl+cstops it.- History.
↑on the first line recalls earlier prompts for this project, and↓goes back toward your draft.ctrl+rsearches them. History is kept in the data directory underhistory/, up to 500 entries per project. ctrl+gopens the prompt in$VISUALor$EDITOR(falling back tovi). The text you save becomes the prompt.- Prompt suggestions. When a turn ends normally, Larik asks the model what you are likely to type next and shows it as dim text in the empty input, for example
run the tests (tab to use).tabputs it in the input so you can edit or send it; typing anything else ignores it. The request reuses the conversation's cached prompt, so it costs a cache read and a few output tokens; its spend counts toward/costand the session budget but not the context meter. It is skipped after an interrupted or failed turn, when prompts are queued, once a budget is spent, and on the Claude Code CLI runtime. Turn it off with theprompt_suggestionssetting. If you bindtabto an action inkeybindings, that binding wins.
Task list. For work with distinct phases or multiple deliverables, the model keeps a checklist with the todo_write tool. It skips the checklist for a single fix or deliverable with several requirements, avoiding extra model turns. While a turn runs, the open items are pinned under the conversation and the status line names the item in progress. Each update is also printed in the conversation. /todos shows the current list. It is restored when you resume a session, and it survives compaction.
| Command | What it does |
|---|---|
/model [provider/model] |
Pick or switch models and reasoning effort (←/→); saves them as defaults for future launches. A model-specific execution setting applies from the next fresh context |
/models-config |
Add, edit or delete personal model catalog overrides (also in /config); /model remains the model picker |
/connect [provider] |
Setup wizard: choose a provider, connect it, pick a model, save |
/providers |
Connected or detected providers with status, plus a NVIDIA NIM connect shortcut; enter edit/connect, t test, d remove, a add |
/routing [role=provider/model] |
Setup wizard for delegation policy, cheaper subagent models, fallbacks and a session budget; /routing show lists them |
/keys |
Keyboard shortcuts (also ? on an empty prompt) |
/info |
Session sidebar: project and Git changes, session token/cost/context use, current-turn model/tool timings, tasks, agents, MCP/LSP and skills (also F2). Provider account quota/reset windows are not currently available. |
/config [key=value] |
Search every setting, see its current value, and change it with a native control or editor. Typing /config suggests simple values and nested editor sections. Saved to personal settings; changes that need a fresh model context ask before clearing it |
/theme [auto|dark|light|scheme] |
Color theme; auto follows the terminal's background, or the name of an installed iTerm2 scheme. Moving through the list previews each one |
/effort [low…max|default] |
Set and save the default reasoning effort |
/mode [default|accept-edits|plan|auto|yolo] |
Pick and save the default permission mode from a list (1–5), or set it directly |
/execution [tools|hybrid|code|default] |
How the model you are using acts: tools (a tool call per step), hybrid (also run_code scripts) or code (scripts for ordinary tools), saved for that model; default removes it. See Execution |
/sampling [temp=.. top_p=.. top_k=..|default|none] |
Show or set the decoding parameters for the model you are using, saved for that model; default removes it, none sends none. See Sampling |
/diff |
Review this session's file changes turn by turn, and reject hunks (see Reviewing changes) |
/undo |
Revert the file changes of the last turn that made any: edits by the file tools, and in a git repository what bash commands changed (files git ignores aren't covered, nor are MCP side effects). See Undo |
/compact |
Summarize the conversation to free context |
/clear |
Fresh context in the same session; also clears the transcript view and run_code state, and reloads AGENTS.md/CLAUDE.md, skills and newly approved MCP servers |
/reload |
Confirm, rebuild app services from current configuration, and start a fresh model context while keeping the saved session transcript |
/todos |
The model's task list, in full |
/init [focus] |
Study the project and write AGENTS.md, or improve the AGENTS.md or CLAUDE.md it has; works with -p too. Applies from the next fresh context |
/export [file] |
Save the whole session as Markdown (prompts, replies, tool calls and capped results; no thinking or attached file contents). Default larik-<session>.md here; never overwrites |
/copy |
Copy the last reply, as Markdown, to the clipboard (natively and through the terminal, so it works over SSH) |
/speak [text] |
Synthesize and play the latest assistant reply, or the supplied text, with the local TTS service |
/stt-language [id|en|auto] |
Show or save the speech-to-text language; use id for Indonesian, en for English, or auto to detect it |
/review [PR|branch|range] [focus] |
Review code changes for bugs and report findings, without editing. With no argument: your uncommitted changes, or this branch's commits when the tree is clean. See Reviewing changes |
/security-review [PR|branch|range] [focus] |
The same, looking for security vulnerabilities the changes introduce |
/vim |
Switch vim editing of the prompt on or off; see Vim mode |
/debug [on|off] |
Record this session for review: requests as sent, responses, raw HTTP, tools and timing; see Debug mode and traces |
/trace [browser|external] |
Open the recorded trace in Larik's browser panel or the system browser: a timeline, every request as sent, the raw HTTP exchanges, and the page after each browser action of this run |
/cost |
Usage, cost, and estimated context freed by compaction; split by model when more than one was used |
/context |
Map of what is filling the context window, by prompts, replies, tools, images and attachments, with the largest tool results. Shares are estimates; the total is the provider's |
/timeline |
When the model, tools and each subagent ran in this conversation since Larik started, with the slowest calls and what the session cost. Long pauses are cut short. Earlier runs of a resumed session aren't included |
/compare |
Show the browser page from before the agent's file edits beside how it is now, with what changed tinted and animation left out. Covers the visible window, and edits made through edit, write and similar tools; kept in memory |
/replay [gif [file]] |
Step through what agents did in the browser in the panel, with a picture after each action (arrow keys, space to play), or export a GIF. Kept in memory for this run, up to 200 steps |
/sessions |
Choose a session from a searchable, scrolling list (✓ current, ⑂ branch) |
/resume [id] |
Open the session picker, or switch by ID (a unique prefix is enough) |
/new |
Start a new session |
/fork |
Branch the conversation into a new session and continue there |
/rewind [n] [files|keep] |
List prompts, with a picture of the browser page before each prompt's edits for prompts in this run, or branch off just before prompt n with it back in the input to edit. If files changed since that prompt it asks whether to restore them too; files restores without asking, keep leaves them |
/prompt [n] |
Open the menu for prompt n (numbered as /rewind lists them; default: the last): Copy it, Fork after its reply, or Rewind to before it. Clicking a prompt opens the same menu |
/mcp |
MCP server status and tools |
/mcp approve <name> |
Allow a project-defined MCP server to start |
/hooks |
List configured hooks |
/hooks approve |
Allow the project's shared hooks to run |
/hooks-config |
Edit trusted personal lifecycle hooks; reload to apply |
/skills |
List skills |
/memory [add <text> | show <name> | delete <name>] |
List the notes Larik remembers across sessions, or add, read or delete one. See Memory |
/agents |
List subagents |
/browser [on|off|show] |
Show browser-tool status, enable/disable them in your personal config (reloads app services with a fresh model context, asking first when context exists), or show the browser in a pane beside this one |
/lsp |
Language servers and status |
/lsp-config |
Edit personal language servers and built-in enable/disable switches; reload to apply |
/mcp-config |
Edit named personal MCP servers; reload to apply |
/tasks / /tasks stop <id> |
Background subagent tasks |
/worktrees / /worktrees remove <branch|all> |
Git worktrees kept by isolated subagents |
/web-search-config / /stt-config / /tts-config |
Edit personal search and speech endpoints or commands (masked secrets; reload to apply) |
/sandbox |
Sandbox status |
/<skill-name> [args] |
Run a skill |
CLI flags such as --model, --effort, and --mode override saved defaults for that launch without changing the config file.
Branches
A branch is a new session file that starts with a copy of another session's messages and records which session it came from (fork_of). The original is never modified, so you can go back to it with /resume. Branches can only start before a prompt or at the end, never in the middle of a tool call. Each branch reports only its own token spend. /rewind can also put files back: when the checkpoints show files changed since the prompt you rewind to, it lists them and asks whether to restore them before branching (the original session keeps its own checkpoints, so /resume plus /undo still works there). /fork never touches files.
From the command line, larik -c --fork or larik --resume <id> --fork continues in a new branch instead of appending to the old session.
Undo
/undo puts files back as they were before the last turn that changed any, and tells the model to re-read them.
- File tools: every file
write,edit,multi_editandnotebook_edittouched. - Shell commands, in a git repository: files a
bashcommand modified, deleted or created, whether tracked or untracked. A file you had already changed goes back to how you had it, not to the last commit. Larik compares git's view of the working tree before and after each command; it doesn't commit, stash or stage anything. - Not covered: files git ignores (build output,
node_modules), changes a command makes by movingHEAD(git checkout,reset,pull; undo those with git), files over 2 MB, anything outside a repository, and what MCP tools change. For an ignored file the model can name it in the command'scheckpoint_paths. - Edits you make yourself in an editor while a command runs count as that command's, so an
/undoright after would revert them too. - Snapshots are kept for 7 days by default (
checkpoint_retention_days), so/undostill works after resuming a session.
Reviewing changes
/diff lists the files changed in this session, turn by turn, newest first, with the lines added and removed. It works from /undo's snapshots, so it counts only what the agent did, includes files bash commands changed in a git repository, and still works after resuming a session. Your own edits aren't listed, except ones you make to a file while a command is changing it. Open a file to see its diff one hunk at a time: n and p move between hunks, and pressing r twice puts the selected hunk back as it was before the turn. The model is told, so it re-reads the file.
- Only a file's newest change can be rejected, and not during a turn or while a subagent is running. Larik refuses if the file has changed since you opened it.
- A rejected hunk can't be brought back, but
/undostill restores the whole file to how it was before that turn. - Binary files and versions over 2 MB are listed but not compared.