Skip to main content
For anyone using Atomic’s interactive terminal user interface (TUI), this reference lists default keyboard shortcuts, selector and mouse controls, and rules for remapping actions in ~/.atomic/agent/keybindings.json (or %USERPROFILE%\.atomic\agent\keybindings.json on Windows; relocated by ATOMIC_CODING_AGENT_DIR). For editor and message-queue workflows, see Use interactive mode. If Shift+Enter, Alt shortcuts, or Escape misbehave in your terminal, see Configure your terminal or Run Atomic in tmux.

Customize a shortcut

Follow these steps to remap shortcuts and verify your changes without restarting Atomic:
1

Open keybindings.json

Open or create ~/.atomic/agent/keybindings.json in your editor.
2

Add your shortcut mappings

Add the action IDs you want to remap and save the file. Including "$schema" gives your editor completion and validation (Atomic ignores $schema at load time):
3

Reload keybindings

Inside Atomic, run /reload. Atomic loads the updated file without restarting your session.
4

Confirm the active shortcuts

Run /hotkeys inside Atomic and confirm that your updated bindings appear in the shortcut table.

Configuration rules

Keep the following rules in mind when you edit keybindings.json:
  • Replacement semantics: Setting an action in keybindings.json replaces its default keys instead of appending to them. Pass an array to keep defaults alongside an additional key, or pass [] to unbind the action.
  • Invalid config fallback: Atomic ignores malformed JSON or a non-object top-level value and falls back to defaults without warning. Atomic also ignores unknown action IDs and entries whose value isn’t a string or string array.
  • Windows and WSL defaults: Windows Subsystem for Linux (WSL) defaults activate on Linux whenever WSL_DISTRO_NAME or WSL_INTEROP is set. On native Windows, app.suspend defaults to alt+z and opens an interactive PowerShell subshell (leaving ctrl+z for editor undo; type exit to return while background tasks keep running). On WSL, standard Linux ctrl+z/fg suspension applies and tui.editor.undo defaults to alt+z. See Run Atomic on Windows.
Watch for two behaviors when you edit keybindings.json:
  • Unrecognized key strings unbind defaults: Setting a valid action ID to an unrecognized key string (such as "bogus" or "ctrl+ctrl+p") replaces its default keys and unbinds the action with no warning, because the string never matches any keypress.
  • Legacy names rewrite the file in place: If your file contains older pre-namespaced action names (such as cursorUp, expandTools, app.tasks.inspect, or app.tasks.cancel), Atomic migrates them automatically on startup and rewrites ~/.atomic/agent/keybindings.json in place (sorting known keys and dropping any legacy key whose namespaced equivalent is already present).

Key format

Write keys as modifier+key using any combination of ctrl, shift, alt, and super. The following key tokens are supported:
  • Letters: a to z
  • Digits: 0 to 9
  • Special keys: escape, esc, enter, return, tab, space, backspace, delete, insert, clear, home, end, pageUp, pageDown, up, down, left, right
  • Function keys: f1 to f12
  • Symbols: `, -, =, [, ], \, ;, ', ,, ., /, !, @, #, $, %, ^, &, *, (, ), _, +, |, ~, {, }, :, <, >, ?
Valid examples include ctrl+shift+x, alt+ctrl+x, ctrl+shift+alt+x, ctrl+super+x, ctrl+1, and ctrl++. Support for super depends on your terminal emulator. Follow these syntax rules when writing key strings:
  • Modifier order doesn’t matter (ctrl+shift+p and shift+ctrl+p are equivalent), but duplicate modifiers (such as ctrl+ctrl+x) are invalid and never match.
  • escape and esc never match with any modifier. Bind plain escape or esc only.
  • Binding + with modifiers works (ctrl++, alt++).
Case sensitivity with $schema: At runtime, key names and modifiers are case-insensitive (CTRL+P and pageup work). The published JSON Schema (keybindings.schema.json) validates lowercase modifiers and camelCase special keys (ctrl+p, pageUp, pageDown), so use that casing if your editor validates against $schema.

Reserved built-in actions and extension shortcuts

Extensions can register custom shortcuts. The following rules govern conflicts between extension shortcuts, built-in actions, and keybindings.json:
  • 17 reserved built-in actions block extension shortcuts: If an extension registers a key bound to any of these actions, Atomic skips the extension shortcut and logs a warning:
    • app.interrupt, app.clear, app.exit, app.suspend
    • app.thinking.cycle, app.thinking.toggle, app.model.cycleForward, app.model.cycleBackward, app.model.select
    • app.tools.expand, app.editor.external, app.message.followUp
    • tui.input.submit, tui.select.confirm, tui.select.cancel, tui.input.copy, tui.editor.deleteToLineEnd
  • Remapping moves the reservation: Rebinding a reserved action in keybindings.json moves the reservation to its updated key and frees the old key for extensions.
  • Extensions can override non-reserved built-in actions: If an extension claims a key bound to a non-reserved built-in action, Atomic logs a warning and activates the extension’s shortcut. When two extensions claim the same key, the later extension wins with a warning.
  • Duplicate bindings in keybindings.json don’t warn: Atomic doesn’t show a UI warning if you assign the same key to two actions in keybindings.json, so avoid overlapping keys within the same view.

All actions

Use the following reference tables to look up action IDs and their default keys.

TUI editor cursor movement

The following table lists actions for moving the cursor and stepping through prompt history: Dedicated history actions switch prompt history entries regardless of cursor line in a multiline prompt. While the main editor has focus, explicit history bindings override ordinary app shortcuts (such as binding tui.editor.historyPrevious to ctrl+p or tui.editor.historyNext to ctrl+n) without changing those keys inside selectors. Prompt history follows whichever agent you view (main or a subagent).

TUI editor deletion

The following table lists actions for deleting text in the prompt editor:

TUI input

The following table lists core input actions for newlines, submission, and completion:

TUI kill ring

The following table lists kill-ring paste and undo actions:

TUI clipboard and selection

The following table lists selection-list controls and the reserved editor copy binding: Local copy (for /copy and mouse auto-copy) requires a working clipboard utility (wl-clipboard on Wayland, or xclip or xsel on X11). Atomic forwards copies through Operating System Command (OSC) 52 over SSH, Mosh, and Rex and as a headless Linux fallback; set ATOMIC_CLIPBOARD_OSC52=1 (legacy PI_CLIPBOARD_OSC52=1) to force OSC 52 after local copy. See Clipboard and OSC 52.

Fullscreen transcript navigation

Actions under tui.altScreen.* scroll the fullscreen transcript viewport above the prompt editor. For mouse clicks, text selection, auto-copy, and ask_user_question dialog controls, see Transcript navigation and mouse controls. While the main editor has focus, home and end stay with the editor, ctrl+home and ctrl+end jump to the transcript top and bottom, pageUp and pageDown scroll the transcript, and ctrl+pageUp and ctrl+pageDown scroll the editor. Focused overlays and scrollable lists (autocomplete, /settings, /model) capture scrolling keys first. The following table compares how shared navigation keys route based on focus: Rebind these like any other action: for example, "tui.altScreen.pageUp": "ctrl+pageUp" keeps pageUp in the editor and moves transcript paging to ctrl+pageUp, and [] unbinds a shortcut. Focused custom components might consume viewport keys first; see the input handling contract. The following table lists all tui.altScreen.* viewport actions:
Atomic doesn’t include a find-in-transcript shortcut. Four compatibility action IDs—tui.altScreen.search, tui.altScreen.searchNext, tui.altScreen.searchPrevious, and tui.altScreen.searchClose—stay recognized so existing keybindings.json files remain valid, but they have no default keys and do nothing.

Application

The following table lists core application shortcuts for interrupting work, exiting, opening an external editor, searching history, and pasting from the clipboard: Keep the following paste and interrupt behaviors in mind:
  • macOS clipboard paste: Files copied in Finder paste as paths (one per line, or shell-quoted and space-separated in ! bash mode). When the clipboard holds text instead of files or an image, app.clipboard.pasteImage inserts the text. Native Cmd+V (not configurable in keybindings.json) pastes images in terminals that forward empty bracketed paste or Kitty super+v. Inside tmux on macOS, or when a clipboard holds both text and an image, Ctrl+V prefers the image.
  • Ctrl+X routing: Ctrl+X doesn’t copy text. Paired with Ctrl+K, it stops all background work (see Navigation); on OAuth sign-in screens, it copies the sign-in URL (app.auth.copyUrl); in /scoped-models, it clears selections. Use /copy to copy the viewed agent’s last assistant message.
  • Physical Esc: Always requests cooperative cancellation without restarting the session. Pressing Escape twice within 500 ms on an empty, idle editor triggers doubleEscapeAction: /tree ("tree", default), /fork ("fork"), or nothing ("none"). To change this behavior, set doubleEscapeAction in Interface and display settings.
  • Physical Ctrl+C: Closes stuck custom dialogs (dialogs that handle Ctrl+C receive the first press and close on the second) and restarts an unresponsive background session process, even if you remap app.clear. See Message queue for full interrupt and recovery rules.

Sessions

The following table lists session-command and session-picker shortcuts: The session picker in /resume and atomic -r supports these controls and limits:
  • Press Tab (tui.input.tab) to switch between sessions in the current directory and sessions across all directories.
  • Press Space when the search box is empty to show or hide a preview pane for the selected session. Press Esc to close the preview before cancelling the picker.
  • Press ? (app.keys.help) to open the picker’s key overview.
  • Deleting a session (Ctrl+D or Ctrl+Backspace) asks for confirmation (Enter confirms; Esc or Ctrl+C cancels), can’t delete the open session, and is disabled for JSON Lines (JSONL) session storage.
  • Renaming a session (Ctrl+R) works in interactive /resume, not in CLI atomic -r or --resume.
  • Cancelling atomic -r prints No session selected and exits with status 0.
  • While viewing a subagent, app.session.new, app.session.tree, and app.session.fork ask for confirmation before acting on main; app.session.resume opens its picker in place.

Models and thinking

The following table lists shortcuts for selecting models and adjusting thinking effort: Inside the /model (Ctrl+L) selector, use these keys:
  • Press ← or → to adjust the thinking effort of the highlighted reasoning model before selecting it.
  • Press Tab (tui.input.tab) to switch between scoped models and all available models when enabledModels or --models is active.
Interactive model and thinking choices save automatically as startup defaults; there is no separate save-default shortcut. While you view a subagent, Atomic refuses model and thinking-level changes with a notice (switch to main to change them); app.thinking.toggle applies to the viewed transcript.

Display and message queue

The following table lists shortcuts for tool expansion, OAuth URL copying, and message queuing: Message queue shortcuts work identically on main and while viewing a subagent. See Message queue. Atomic shares one chat screen across main and its subagents, with the agent panel below the prompt and /tasks for full task inspection. Press ↓ on an empty prompt to focus the agent panel, ← on an empty prompt while viewing a subagent to return to main, Ctrl+X then Ctrl+K (twice within 3 seconds) to stop all background work, and ? on an empty prompt or list to show active keys. See Background tasks for full navigation and stop workflows. The following table lists agent-panel and /tasks navigation shortcuts: On macOS, Alt+W requires your terminal to send Option as Meta (enable Use Option as Meta key in Terminal.app, set Option to Esc+ in iTerm2, set macos-option-as-alt in Ghostty, or set macos_option_as_alt both in kitty). Otherwise remap app.tasks.openWaited. Because app.tasks.openWaited takes priority while you view a waiting subagent or its /tasks row, avoid binding alt+w to another editor action. Open question prompts and the main input box keep keyboard priority. Pressing Esc leaves task stdin or task detail before leaving task focus, and unbound actions show no key hint.

Tree navigation

Inside /tree, typing filters entries live (automatically unfolding branches), Backspace edits the search query, Esc clears the search before closing the picker, and ← and → (tui.editor.cursorLeft and tui.editor.cursorRight) page up and down alongside PageUp and PageDown. The following table lists session-tree shortcuts:

Scoped models selector

Use these shortcuts inside /scoped-models. Pressing Enter enables or disables the selected model, typing filters by model or provider name, and pressing Esc or Ctrl+C clears the search before closing. Changes save automatically. The following table lists /scoped-models shortcuts:

Non-configurable and bundled extension shortcuts

The following table lists global shortcuts and bundled extension shortcuts that aren’t configured in keybindings.json:

Transcript navigation and mouse controls

Interactive sessions run fullscreen with a scrollable transcript above the docked editor. See Fullscreen transcript navigation for keyboard paging and jump bindings. The following mouse interactions work across the fullscreen TUI:
  • Expandable blocks: Single-click any expandable block (title, preview, ... +N lines, or its inline (ctrl+o to expand) hint) to expand or collapse that block on main or a subagent. This includes grouped-call summaries, finished-agent cards, ! shell blocks, Intercom messages, task notices, skill blocks, branch summaries, and compaction boundaries. Single clicks wait 0.5 seconds after release so double-clicks, triple-clicks, and drags select text without folding blocks; clicking a link opens the link. A block keeps its clicked state until Ctrl+O resets every block together (thinking blocks expand or collapse separately with Ctrl+T).
  • Key hints: Click a key hint under the prompt, at the bottom of /tasks, in dialogs or pickers, in the ? overlay, or inside notices to trigger that key for the active view. In multi-key hints (pgup/pgdn scroll, ↑↓ select, 1-4 pick), click the specific key; clicking the trailing label triggers the last key. Slash-command hints such as /tasks to manage run the command while preserving your prompt draft, and empty-prompt keys (?, ↓) work when clicked even if the editor holds text. Dragging across a hint selects text; hints behind an open dialog stay inactive.
  • Mouse wheel and selection: The mouse wheel scrolls the region under the pointer (and scrolls the transcript when over the editor or footer). Hold Alt while scrolling to move five times as far when your terminal forwards Alt with wheel events. While scrolled up, a centered ↓ jump to bottom · ctrl+end pill appears above the editor and the active turn’s opening prompt stays pinned at the top. Viewed subagent transcripts and /tasks shell views scroll independently without moving main.
  • Auto-copy and Windows right-click paste: Drag to select characters, double-click for a word or path, and triple-click for a line. Selection copies automatically unless fullscreenCopyOnSelect is false. On native Windows, pressing the secondary mouse button pastes clipboard text into the focused component, except inside VS Code’s integrated terminal (TERM_PROGRAM=vscode). See Clipboard and mouse behavior.

Dialog controls (ask_user_question)

Transcript scroll keys stay active while the bottom-pinned ask_user_question dialog or Notes view is open. Use the following keys inside the dialog:
  • ↑ / ↓: move between options.
  • Enter: select an option (Enter or Space checks or clears multi-select checkboxes).
  • Type something. row: type a custom free-text answer.
  • n: add a note.
  • Tab or ← / →: switch between questions.
  • Esc: cancel the dialog.

Preset examples

Copy either preset into ~/.atomic/agent/keybindings.json and run /reload to apply it.

Emacs preset

The following configuration binds prompt history and Emacs-style movement and deletion keys:

Vim-style movement preset

The following configuration adds Alt+H/J/K/L cursor movement and word jumps while leaving alt+w free for app.tasks.openWaited:

Troubleshooting

Use the following checks when a shortcut doesn’t respond as configured:
  • A remapped shortcut stopped working and its default also disappeared: Check keybindings.json for a typo, a duplicate modifier (such as ctrl+ctrl+p), or a modifier combined with escape. Unrecognized key strings replace defaults silently.
  • Shift+Enter submits instead of inserting a newline: Press Ctrl+J right away, or configure your terminal for modified keys (see Configure your terminal or Run Atomic in tmux).
  • Alt shortcuts don’t work on macOS: Configure your terminal to send Option as Meta (see Navigation), or remap the action in keybindings.json.
  • An extension shortcut was skipped: Check whether its key collides with one of the 17 reserved built-in actions. Remapping the built-in action in keybindings.json frees its old key.

Next steps

Explore related shortcut and terminal setup guides: