# Keyboard Shortcuts

Everything on this page is the TUI's, except [Editing an agent's prompt](#editing-an-agents-prompt), which works the same in both clients, and [Scrolling back through a pane](#scrolling-back-through-a-pane), which also says how the desktop app scrolls a pane. The desktop app has its own shortcuts, listed on [Desktop app → Settings](desktop/settings.md#keyboard-shortcuts); `keybindings.toml` does not affect it.

Press `?` in command mode to see the shortcuts in the TUI. The overlay and the bottom button bar are generated from your active [keybindings](#customizing-keybindings), so they show your real keys.

## Modes

The TUI is in one of two modes, and most keys depend on which:

- **Command mode**: keys drive the deck. The chip at the far left of the bottom bar reads ` COMMAND `, the focused pane is dimmed, and a `COMMAND MODE — Ctrl+D to type` banner appears over it. The banner clears after a moment or when you press a command-mode key, and stays up if you press a key that is not bound to anything.
- **Typing in a pane**: keys go to the program in the focused pane. The chip reads ` TYPING ` and the pane shows a cursor.

`Ctrl+D` switches between them; in command mode plain `d` does too. The first button in the bar, `[Back to Pane d/Ctrl+D]` or `[Command Mode Ctrl+D]`, says where it takes you. The selected card keeps its `▸ ` marker in both modes.

From command mode, `v` opens [copy mode](#copy-mode), for selecting text with the keyboard; the chip reads ` COPY ` until you leave it.

## Mouse

The main commands have clickable buttons along the bottom, each labelled with its keyboard shortcut. On a dashboard card, a click selects it and a double click focuses its pane. A click in a pane focuses that pane. Cards, tab headers, dialogs, the directory picker and forms respond to clicks. To select and copy text in a pane, drag across it ([Copying text](#copying-text)).

The wheel scrolls the focused pane while the pointer is inside it. Anywhere else (the card list, the bars, a pane that is not focused, a pane's border) the wheel does nothing. The Schedules manager scrolls its own list; other dialogs ignore the wheel.

- In command mode the wheel scrolls the deck's own copy of the pane's history and is not sent to the agent.
- While typing in a pane, the wheel goes to the agent if the agent has turned on mouse reporting.

Whether there is anything to scroll depends on the agent; see [Scrolling back through a pane](#scrolling-back-through-a-pane).

## Global Shortcuts

| Key | Action | Works in |
|---|---|---|
| `Ctrl+D` | Switch between command mode and the pane you came from | Both modes |
| `Ctrl+N` | New agent: directory picker, then the New Agent form | Both modes |
| `Ctrl+PageDown` / `Ctrl+PageUp` | Next / previous tab | Both modes |
| `Ctrl+W` | Close the selected pane on the dashboard, or a whole orchestration tab, after a confirmation. The dashboard tab cannot be closed. | Command mode |
| `1`–`9` | Jump to card N and focus its pane | Command mode |
| `Ctrl+L` | Toggle the orchestration sidebar / pane split between 34/66 and 25/75, for every orchestration tab | Command mode, on an orchestration tab |
| `Ctrl+Z` | Zoom the focused pane to the whole frame; again to restore. See [below](#ctrlz-zooms-the-focused-agent-pane). | Command mode, on the dashboard or an orchestration tab |
| `Ctrl+C` | In a pane: sent to the program (interrupt). In command mode, the directory picker or the New Agent form: opens the [quit dialog](#dialogs). | Both modes |

While typing in a pane, a key that is not claimed (for example `Ctrl+T`, `Ctrl+W`, `Ctrl+L` or `Ctrl+Z`) is passed to the program in the pane. While the close confirmation is open, only its keys and `Ctrl+C` work.

### Plain letters in command mode

In command mode you can drop the `Ctrl`: the letter alone does the same thing as its chord. The chords keep working. This is the TUI's: the desktop app has no command mode, and its [own shortcuts](desktop/settings.md#keyboard-shortcuts) are unchanged.

| Letter | Same as | Note |
|---|---|---|
| `d` | `Ctrl+D` | Back to the pane you came from |
| `n` | `Ctrl+N` | New agent. When the selected card shows **Needs Input**, `n` denies the permission request instead, as it always has. |
| `w` | `Ctrl+W` | Close, with its confirmation |
| `z` | `Ctrl+Z` | Zoom, on the dashboard or an orchestration tab |

`l` stays **next tab**, so the orchestration split keeps only `Ctrl+L`, and there is no plain `c`: quitting is always `Ctrl+C`. While you are typing in a pane, every letter goes to the program as before.

A letter works only while its action is on its default `Ctrl+` key and no other action uses that letter. If you [remap](#customizing-keybindings) `new_pane`, `n` no longer starts an agent, and if you bind `d` to another action, `d` does that action instead. The help overlay (`?`) lists `d`, `n`, `w`, `t` and `z` beside their chords, for example `n / Ctrl+n`, and the bottom bar shows `d`, `n`, `w` and `t`; each drops a letter that a remap has taken away. The bar's `n/Ctrl+N` stays on **New Agent** even while the selected card shows **Needs Input**, where `n` denies instead.

It works the other way round too: in command mode, these commands, whose key is a plain letter, also answer to `Ctrl` with that letter.

| Chord | Same as | Note |
|---|---|---|
| `Ctrl+M` | `m` | Host of this deck. In a terminal that sends `Ctrl+M` as `Enter`, such as macOS Terminal.app, it acts as `Enter` and opens the selected card's pane. Terminals that tell the two apart open the overlay: Ghostty, kitty, WezTerm, and iTerm2 with its CSI u reporting turned on. |
| `Ctrl+S` | `s` | Schedules manager |
| `Ctrl+G` | `g` | Generate config |
| `Ctrl+U` | `u` | Upgrade |
| `Ctrl+R` | `r` | Rename the selected agent |

These are command mode only. While you are typing in a pane, `Ctrl+R`, `Ctrl+U`, `Ctrl+S`, `Ctrl+G` and `Ctrl+M` go to the program as before, so reverse search, clearing the line and your agent's own shortcuts keep working. Moving around (`j`, `k`, `h`, `l`), the digits, `?`, `/`, `y`, `n`, `o`, `Enter` and `Esc` have no `Ctrl` form.

A chord works only while its command is on its default letter and no other command uses that chord: after `scroll_pane_up = "Ctrl+u"`, `Ctrl+U` scrolls the pane and no longer opens the upgrade dialog, and if you remap `rename`, `Ctrl+R` no longer renames. The help overlay lists each one after its letter, for example `m / Ctrl+m`.

### `Ctrl+W` closes only from command mode

While you type in a pane, `Ctrl+W` is passed through (it deletes the previous word in shells and editors). In command mode it opens a confirmation that defaults to **Cancel**; choose **Close** to stop the agent and remove its card. For a dispatched unit, a third choice, **Close, keep worktree**, closes it the same way but leaves its worktree on disk.

### `Ctrl+Z` zooms the focused agent pane

On the dashboard or an orchestration tab, `Ctrl+Z` in command mode gives the focused pane the whole frame and hides the card sidebar and other panes. The pane's border title gains `[Z]`. Press `Ctrl+Z` again to restore the previous layout, including a `Ctrl+L` split. Hidden panes keep running; see [Zooming the focused pane](orchestration.md#zooming-the-focused-pane) for what that means on an orchestration tab.

- In a pane, `Ctrl+Z` is passed to the program (it suspends a job in a shell).
- `1`–`9` while zoomed switches the zoom to that card's pane.
- Zoom is per tab and is not saved: a new tab starts unzoomed, and reattaching shows the full view.

## Tab Navigation

The tab bar appears when more than one tab is open.

| Key | Action | Works in |
|---|---|---|
| `Ctrl+PageDown` | Next tab | Both modes |
| `Ctrl+PageUp` | Previous tab | Both modes |
| `Tab` / `Right` / `l` | Next tab | Command mode |
| `Shift+Tab` / `Left` / `h` | Previous tab | Command mode |

## Dashboard

Command mode. If you are typing in a pane, press `Ctrl+D` first.

| Key | Action |
|---|---|
| `j` / `Down` | Select the next card (wraps) |
| `k` / `Up` | Select the previous card (wraps) |
| `1`–`9` | Jump to card N and focus its pane |
| `Enter` | Focus the selected card's pane (start typing into it) |
| `PageUp` / `PageDown` | Scroll the focused pane back / forward |
| `/` | Filter cards |
| `Esc` | Clear the filter |
| `r` | Rename the selected agent |
| `g` | Ask the selected agent to generate `.dot-agent-deck.toml` for its directory, or to update it when the directory already has one; the footer then reads `[Update g]` (see [Quick setup](orchestration.md#quick-setup)). The desktop app has no `g`: press **Generate config** (**Update config**) in the agent's pane, or say "generate config with" and its name |
| `s` or `S` | Open the **Schedules** manager (see [Schedules](scheduled-tasks.md)) |
| `o` | Open the selected agent's pull request in your system browser (uses `$BROWSER` when set; a `$BROWSER` that puts the address into a shell command, such as `sh -c %s`, is refused); when no browser can be opened, for example in a TUI on a remote host, the status line shows the pull request's address so you can copy it. On a card with no [pull request badge](session-management.md#pull-request-badge) it says the agent has none. The desktop app has no `o`: click the badge or say "open the PR", and it opens inside the app ([Dashboard → Pull requests](desktop/dashboard.md#pull-requests)) |
| `m` | Open the **Host of this deck** overlay: disk, load and memory of the machine the deck runs on (see [Session Management](session-management.md#check-the-machine-a-deck-runs-on)); `Esc` closes it |
| `u` | Open the upgrade dialog while the footer shows an update notice (see [Upgrade from the TUI](installation.md#upgrade-from-the-tui)) |
| `a` / `c` | While the footer says the deck restarted: `a` lists every agent the restart stopped, `c` dismisses the notice (see [The deck restarted and its agents disappeared](troubleshooting.md#the-deck-restarted-and-its-agents-disappeared)) |
| `y` / `n` | Approve / deny a pending permission request; only when the selected card shows **Needs Input**. Otherwise `n` starts a new agent (see [Plain letters in command mode](#plain-letters-in-command-mode)). |
| `d`, `n`, `w`, `t`, `z`, `e` | The same as `Ctrl+` with that letter (see [Plain letters in command mode](#plain-letters-in-command-mode)) |
| `Ctrl+M`, `Ctrl+S`, `Ctrl+G`, `Ctrl+U`, `Ctrl+R` | The same as the letter alone (see [Plain letters in command mode](#plain-letters-in-command-mode)) |
| `v` | Open [copy mode](#copy-mode) on the focused pane |
| `I` / `X` | Open the **Interrupted work** list, or hide the row above the footer that counts its items, such as `3 interrupted items from before the restart` (see [Interrupted Work](interrupted-work.md)) |
| `?` | Toggle the help overlay |

### Scrolling back through a pane

`PageUp` / `PageDown` (and the wheel) scroll the focused pane in **command mode**. While you type in a pane they are passed to the program, so a pager, an editor or the agent's own scrolling receives them.

#### How far back you can scroll depends on the agent

What there is to scroll depends on what the program in the pane writes:

- **Agents that keep their own transcript and handle the mouse**: Claude Code with its full-screen interface (`"tui": "fullscreen"`), Codex, OpenCode and Pi. While you are typing in the pane, the wheel and scroll keys go to the agent and it scrolls its own history, also while it is working. In command mode the deck has no copy of that history to scroll.
- **Agents that write their output into the terminal**, such as Claude Code with its default interface: the deck keeps the history, and the wheel and `PageUp` / `PageDown` in command mode scroll it.
- **Agents that redraw their whole screen in place without keeping a transcript**: nothing scrolls off the top, so the deck has no history to show. A scroll in command mode briefly shows `Nothing to scroll — this pane has no scrollback to move through` (`Nothing to scroll — no scrollback` in a narrow pane). It clears after a moment or on your next key, and that key still does what it normally does.
- **A full-screen program or dialog in the pane** (a picker, a permission dialog, an editor): scrolling does nothing, with no message, until it closes; the history is still there afterwards.

A pane the deck starts is empty at first, so there is nothing above the agent's first output to scroll back to.

In the desktop app an agent's pane scrolls the same way: `PageUp` / `PageDown` in the pane go to the agent; the wheel goes to the agent when it handles the mouse, and otherwise scrolls the pane's history, as `Shift+PageUp` / `Shift+PageDown` do. The desktop app also scrolls a pane by voice; see [Scrolling an agent's pane](desktop/voice.md#scrolling-an-agents-pane).

## Copying text

### With the mouse

Drag across text in any pane to select it, in command mode or while typing in a pane. The pane does not need to be focused first: the drag focuses it and selects in it in one go. The selection stays only inside that pane, even when the pane sits next to another. When you release the button, the selected text is copied, and it stays highlighted so you can see what was copied. A double click selects a word and a triple click a paragraph, and each copies the same way.

The highlight goes away on your next click, when you type into that pane, when you switch tabs, when the pane closes, or when the pane's output moves the text it covers. If you open the help overlay or a dialog while you are still dragging, the selection is dropped and nothing is copied.

The status line says where the text went: `Copied to clipboard` when it is on the clipboard, or a message starting `Sent to terminal clipboard (OSC 52)` when the deck asked your terminal to put it there, which is normal over ssh. A message that ends `clipboard write still pending`, or reads `Clipboard write not confirmed yet`, means the clipboard had not answered yet when the message appeared and the text may still land, so paste to check. [Troubleshooting → Copy and paste](troubleshooting.md#copy-and-paste) lists every message and what to do when paste comes up empty.

### Copy mode

Copy mode selects and copies text with the keyboard, including text that has scrolled off the top of the pane. Use it when your mouse does not reach the deck, for example in a terminal or a multiplexer that does not pass mouse clicks on. It copies the same way a drag does, so the status line reports the same messages.

Press `v` in command mode to open copy mode on the focused pane. The chip at the left of the bottom bar reads ` COPY `, a cursor appears in the pane, and the pane stops moving: output that arrives while copy mode is open shows up once you leave it. Nothing you type in copy mode reaches the agent.

| Key | Action |
|---|---|
| Arrow keys / `h` `j` `k` `l` | Move the cursor |
| `PageUp` / `PageDown` | Page back / forward through the pane's history |
| `g` / `G` | Go to the top of the history / the bottom of the pane |
| `v` / `Space` | Start the selection at the cursor (again to drop it) |
| `y` / `Enter` | Copy the selection and leave copy mode |
| `Esc` / `q` | Leave copy mode without copying |

The selection runs from where you started it to the cursor, like a drag. `y` with nothing selected does nothing. Leaving copy mode returns the pane to where it was scrolled before. You can rebind the key that opens copy mode (`copy_mode` in [Actions and defaults](#actions-and-defaults)); the keys inside copy mode are fixed.

### In the desktop app

The desktop app has no copy mode: there the mouse reaches the pane directly, with no terminal in between. There you drag across an agent's output and copy it with your system's copy key, `Ctrl+Shift+C` on Linux and Windows or `Cmd+C` on macOS, and the text goes straight to your clipboard; agents that handle the mouse themselves copy when you release the button. [Desktop app → Dashboard](desktop/dashboard.md#the-agent-pane) has the details.

## Editing an agent's prompt

While you type in an agent's prompt, in the TUI or in the [desktop app](desktop/settings.md#editing-and-pasting-in-an-agents-prompt), these text-editing shortcuts work in every supported agent, and each does the same in both clients on every platform:

| To | Press |
| --- | --- |
| Go to the start / end of the line | `Home` / `End`, or `⌘←` / `⌘→` |
| Move one word left / right | `Ctrl+←` / `Ctrl+→`, or `Alt+←` / `Alt+→` (`⌥←` / `⌥→` on a Mac) |
| Delete to the start of the line | `⌘⌫` |
| Delete the previous word | `Ctrl+Backspace`, or `Alt+Backspace` (`⌥⌫`) |
| Delete the next word | `Ctrl+Delete`, or `Alt+Delete` (`⌥⌦`, `fn+⌥⌫` on a laptop keyboard) |

`⌘` is the Windows key on Windows and the Super key on Linux. Your system keeps some of these chords for itself before either client sees them: macOS switches Spaces on `Ctrl+←` / `Ctrl+→`, and Windows and most Linux desktops arrange windows on the Windows key or Super with an arrow. On Linux the desktop app cannot see the Super key at all, so there `Super+←` arrives as a plain `←`; use `Home` and `End`.

"Line" means the line the cursor is on, so in a message of several lines these keys stay on that line. Agents differ in small ways: moving a word right in OpenCode lands on the start of the next word, where the other agents stop at the end of the current one, and deleting the next word in OpenCode and Devin also removes the space after it.

`Home` and `End` with `Ctrl`, `Shift` or `Alt` held, `Shift+Delete`, `Ctrl+Shift+Backspace` and `Ctrl+Alt+Backspace` are not in the table: both clients pass them to the agent as you pressed them, and they do whatever that agent does with them. For example, `Shift+Home` selects to the start of the line in OpenCode and moves there in Claude Code, `Ctrl+Home` moves there in Pi, and Codex and Devin ignore them. To move along the line in every agent, use the keys in the table. A program that asks the terminal for the alternate form of the arrow keys, `Home` and `End`, as some editors and pagers do, gets that form from both clients.

Paste is not in the table, because each client pastes the way its platform does: in the TUI with your terminal's paste key, and in the desktop app with `⌘V` on macOS, `Ctrl+V` or `Ctrl+Shift+V` on Windows and `Ctrl+Shift+V` on Linux. `Ctrl+V` goes to the agent wherever it is not the paste key, and Claude Code, for one, pastes an image with it.

### In the TUI: what your terminal passes on

None of these is a deck shortcut, so the deck never takes them while you type. The TUI acts on a key only if your terminal passes it on, and some terminals keep these keys for themselves or send them as a plainer key. Where one does nothing, or deletes or moves by a single character, set your terminal up as below.

- **`⌘←`, `⌘→` and `⌘⌫` on macOS.** Ghostty sends them as start of line, end of line and delete to the start of the line with no setup. iTerm2 uses `⌘←` and `⌘→` to switch tabs: choose **Settings → Profiles → Keys → Key Mappings → Presets → Natural Text Editing**, which also sets up `⌥←`, `⌥→`, `⌥⌫` and `⌥⌦`. In any other terminal, bind `⌘←` to send `Ctrl+A` (hex `0x01`), `⌘→` to send `Ctrl+E` (`0x05`) and `⌘⌫` to send `Ctrl+U` (`0x15`).
- **`⌥←`, `⌥→` and `⌥⌫` on macOS.** These need the terminal to treat Option as Alt (Meta). If `⌥←` types a character instead, turn that on: in iTerm2, set **Left Option key** to **Esc+** or use the Natural Text Editing preset above; in Terminal.app, **Use Option as Meta key** in the profile's Keyboard settings.
- **`Ctrl+Backspace`.** Terminals send it as a one-character backspace unless the enhanced ("kitty") keyboard protocol is on. The TUI turns that protocol on in a terminal that supports it, such as kitty, Ghostty, foot, Alacritty 0.13 or later, iTerm2, Windows Terminal 1.25 or later, and WezTerm with `enable_kitty_keyboard = true`. GNOME Terminal and Konsole do not support it, and inside tmux the TUI does not turn it on. There, bind `Ctrl+Backspace` to send `Ctrl+W` (`0x17`), or press `Ctrl+W` or `Alt+Backspace` instead:
  - Windows Terminal (`settings.json`, `actions`): `{ "command": { "action": "sendInput", "input": "\u0017" }, "keys": "ctrl+backspace" }`
  - Alacritty: `[keyboard]` `bindings = [{ key = "Backspace", mods = "Control", chars = "\u0017" }]`
  - foot: under `[text-bindings]`, `\x17 = Control+BackSpace`
  - Konsole: in a copy of the profile's keyboard layout, `key Backspace +Control : "\x17"`
- **`⌘` chords on Linux and Windows.** The TUI reads the Super or Windows key only from a terminal that passes it on under the enhanced keyboard protocol, such as kitty. Most terminals do not, so use `Home`, `End` and the `Ctrl` chords there.

**Check it worked:** type a few words into the agent's prompt, without sending them, and press `Ctrl+Backspace` or `Alt+Backspace` (`⌥⌫`). The last word disappears.

## Directory Picker

Opened by `Ctrl+N` and by schedule authoring.

| Key | Action |
|---|---|
| `j` / `Down` | Select the next directory |
| `k` / `Up` | Select the previous directory |
| `l` / `Right` / `Enter` | Open the selected directory; in a directory with no subdirectories, choose it |
| `h` / `Left` / `Backspace` | Go up one level |
| `Space` | Choose the directory you are in |
| `/` | Filter: type to narrow the list (case-insensitive) |
| `Esc` | Clear the filter; with no filter, cancel |
| `q` | Cancel |
| `Ctrl+C` | Open the quit dialog |

While filtering: `Enter` stops editing and keeps the filter, `Backspace` deletes a character, `Up` / `Down` move, and `Esc` clears the filter. A `q` typed into the filter cancels the picker rather than adding the letter. The list wraps at both ends, and the `..` entry stays visible while a filter is active.

## New Agent Form

| Key | Action |
|---|---|
| `Tab` / `Shift+Tab` | Next / previous field |
| `Left` / `Right` or `h` / `l` | On **Mode**: cycle `No mode`, the orchestrations in the directory's `.dot-agent-deck.toml`, `schedule` and `dispatcher` |
| `Enter` | Move to the next field; on the last field, submit |
| `Esc` | Cancel |
| `Ctrl+C` | Open the quit dialog |

## Dialogs

| Dialog | Opened by | Keys |
|---|---|---|
| **Filter** | `/` | Type to narrow the cards · `Backspace` deletes · `Enter` keeps the filter and closes · `Esc` clears and closes |
| **Rename** | `r` | Type the new name · `Enter` confirms · `Esc` cancels |
| **Generate config** | `g`, or the footer's `[Generate g]` (`[Update g]` when the agent's project already has a config) | `Up` / `Down` (or `k` / `j`) to choose **Yes** or **No** · `Enter` confirms · `Esc` cancels. Clicking `[Yes]` or `[No]` does the same. **Yes** asks the selected agent to propose and write `.dot-agent-deck.toml`, or, in the **Update .dot-agent-deck.toml** dialog, to propose changes to the existing file; **No** sends nothing. See [Quick setup](orchestration.md#quick-setup). |
| **Quit** | `Ctrl+C` in command mode | `Up` / `Down` (or `k` / `j`) to choose **Detach** (default), **Stop** or **Cancel** · `Enter` confirms · `Esc` dismisses · `Ctrl+C` again leaves immediately. Clicking the footer's `[Quit Ctrl+C]` opens this same dialog. **Detach** keeps the agents running; **Stop** stops them and the daemon, asking once more first while agents are running. See [Resuming Sessions](session-management.md#resuming-sessions). |
| **Close confirmation** | `Ctrl+W`, the `[Close]` button, or a tab's `[×]` | `Up` / `Down` (or `k` / `j`) to choose **Cancel** (default) or **Close**, and for a dispatched unit **Close, keep worktree** · `Enter` confirms · `Esc` dismisses. It names what it will close and closes exactly that. A key typed ahead that is still waiting to be read when it opens is discarded. If a pane refuses to stop, the tab is kept so you can try again. |
| **Upgrade** | `u`, or a click on the footer's update notice | `Up` / `Down` (or `k` / `j`) to choose **Cancel** (default) or **Upgrade** · `Enter` confirms · `Esc` closes · `PageUp` / `PageDown` (or the mouse wheel) scroll a plan too long for the terminal; **Upgrade** waits until the whole plan has been on screen. It asks about one copy at a time; after one copy is upgraded, **Cancel** skips the next. A copy the TUI cannot upgrade offers only **Close**. See [Upgrade from the TUI](installation.md#upgrade-from-the-tui). |
| **Review project commands** | Starting an orchestration from the New Agent form, or restoring one, that you have not approved as its file now reads | `a` approves the text shown and starts (or restores) it · `Esc` cancels, starting and remembering nothing · `Up` / `Down` and `PageUp` / `PageDown` (or the mouse wheel) scroll. Clicking the footer's `a approve and start` (`a approve and restore` in a restore) or `Esc cancel` does the same as its key. `Enter` does not approve, and a key typed before the prompt was drawn does not answer it. See [Approving Project Commands](project-trust.md). |
| **Review project commands** (opened by the deck) | The deck refused to start an orchestration that is not approved, for a `dispatch`, a schedule, `delegate`, `pane restart` or `pane spawn` | `a` approves the text shown and starts nothing itself; the refused attempt starts when retried · `Esc` denies, and the deck does not ask about that text again until it restarts · scroll as above. Clicking `a approve` or `Esc deny` does the same as its key. Keys are ignored for a moment after it appears, and for as long as you keep typing. See [Answering the deck's request](project-trust.md#answering-the-decks-request). |
| **Star prompt** | Shown at startup about once every 10 launches of the TUI or the desktop app, until dismissed | `s` opens the repository to star it · `l` or `Esc` asks again later · `d` never asks again. The desktop app shows the same reminder with the same keys, and the two share it: a choice in either holds in both ([Desktop app → The star reminder](desktop/index.md#the-star-reminder)) |
| **Help overlay** | `?` | `?`, `Esc` or `q` closes it |
| **Host of this deck** | `m` (or `Ctrl+M`) | `Esc`, `q`, `m` or `Ctrl+M` closes it |
| **Restart notice** | `a`, or `[Agents]` in the footer, while the footer says the deck restarted | `Up` / `Down` (or `k` / `j`) and `PageUp` / `PageDown` scroll the list · `c` dismisses the notice · `Esc`, `q` or `a` closes the list and keeps the notice · when the list also counts interrupted items, `I` opens the **Interrupted work** list |
| **Interrupted work** | `I`, or `[Show I]` on the row that counts interrupted items | `j` / `k` (or `Down` / `Up`) select an item · `Enter` opens its details, and in the details shows its kept reports' text, `n` / `p` paging through them · `r` reclaims the selected unit or orchestration after a `y` / `n` question · `d` dismisses the selected item · `D` dismisses all after a `y` / `n` question · `Esc` or `q` goes back, and from the list closes it, as `I` does. `X` hides the row while the list is open. See [Interrupted Work](interrupted-work.md). |

The **Quit**, **Close**, **Stop** and configuration confirmations discard keys you typed ahead that are still waiting to be read when they open, so such a key does not choose for you. `Down`, `Enter` and the Stop confirmation's `y` do nothing when they would move to or confirm a choice the dialog does not show in full, with its `>` marker and its whole name, such as one a small terminal cuts off or the dialog's buttons cover: press `Esc` to cancel, or make the terminal larger. A button works only when it is shown whole inside the dialog, so in a terminal too short to show the buttons inside it they do nothing. This applies to the TUI's dialogs. In a terminal that small, the Schedules manager's delete confirmation, the star prompt and the New Agent directory picker do not have this protection yet, so make the terminal larger before answering them.

## Customizing Keybindings

Remap shortcuts in an optional file:

```
~/.config/dot-agent-deck/keybindings.toml
```

`DOT_AGENT_DECK_KEYBINDINGS` overrides the path. The file is read by the TUI when it starts, so restart the TUI after editing it. Each TUI reads its own file, so two TUIs attached to one daemon can use different keys.

The file has two tables, `[global]` and `[dashboard]`, each mapping an action name to a key. List only what you change; everything else keeps its default. The table name is where the action is read from, not the mode it works in.

### Example

```toml
# ~/.config/dot-agent-deck/keybindings.toml
[global]
toggle_orchestration_split = "Alt+Shift+s"   # move it off Ctrl+l
toggle_zoom = "Ctrl+Alt+z"                   # move zoom off Ctrl+z
new_pane = ""                                # unbind New Agent

[dashboard]
help = "F1"                                  # help on F1 instead of ?
```

**Check:** start `dot-agent-deck`. Any problem in the file is printed to the terminal before the dashboard opens, prefixed `keybindings (<path>):` or `Invalid keybindings at <path>:`. In the TUI, `?` and the bottom bar show the new keys.

### Key notation

- **Modifiers:** `Ctrl+` (or `Control+`), `Alt+`, `Shift+`, in any order and combination, for example `Alt+Shift+t`.
- **Named keys:** `Enter`, `Esc` (or `Escape`), `Tab`, `Space`, `Up`, `Down`, `Left`, `Right`, `Backspace`, `Delete` (or `Del`), `Home`, `End`, `PageUp`, `PageDown`, `Insert`, `F1`–`F12`.
- **Any single character:** `a`, `Z`, `1`, `/`, `?` and so on.
- **Unbound:** `""` disables the action.

Modifier and named-key names are case-insensitive (`ctrl+enter` equals `Ctrl+Enter`). With `Ctrl` or `Alt`, a letter's case is ignored (`Ctrl+T` equals `Ctrl+t`); use `Shift+` for a shifted chord. Without them, an uppercase letter is the shifted key: `D` equals `Shift+d`.

### Actions and defaults

`[global]`:

| Action | Default | Action performed | Works in |
|---|---|---|---|
| `dashboard` | `Ctrl+d` | Switch between command mode and the pane | Both modes |
| `new_pane` | `Ctrl+n` | New agent | Both modes |
| `close_pane` | `Ctrl+w` | Close the selected agent or orchestration tab, with confirmation | Command mode |
| `toggle_orchestration_split` | `Ctrl+l` | Toggle the orchestration split between 34/66 and 25/75 | Command mode, orchestration tab |
| `toggle_zoom` | `Ctrl+z` | Zoom the focused pane; again to restore | Command mode, dashboard or orchestration tab |
| `jump_1` … `jump_9` | `1` … `9` | Jump to card N and focus its pane | Command mode |

`toggle_layout` (`Ctrl+t`), which switched between showing only the focused pane and showing every pane, has been removed: the focused agent's pane always fills the pane column. A file that still sets it keeps working; the TUI prints a warning that the line is ignored, and you can delete it.

`toggle_orchestration_lock` (`Ctrl+e`), the orchestration typing lock that was only available with the experimental flag on, has been removed too: you can type into any agent pane on an orchestration tab, and the deck no longer moves focus between panes on its own. A file that still sets it keeps working; the TUI prints a warning that the line is ignored, and you can delete it.

`[dashboard]` (command mode):

| Action | Default | Action performed |
|---|---|---|
| `move_down` | `j` | Select the next card |
| `move_up` | `k` | Select the previous card |
| `move_left` | `h` | Previous tab |
| `move_right` | `l` | Next tab |
| `filter` | `/` | Filter cards |
| `rename` | `r` | Rename the selected agent |
| `help` | `?` | Toggle the help overlay |
| `focus_pane` | `Enter` | Focus the selected card's pane |
| `clear_filter` | `Esc` | Clear the filter |
| `approve_permission` | `y` | Approve a pending permission request |
| `deny_permission` | `n` | Deny a pending permission request |
| `generate_config` | `g` | Generate `.dot-agent-deck.toml` |
| `open_scheduled_tasks` | `s` | Open the Schedules manager |
| `open_pull_request` | `o` | Open the selected agent's pull request in the system browser |
| `open_upgrade` | `u` | Open the upgrade dialog |
| `upgrade_all_daemons` | `U` | Open the Upgrade all daemons dialog, which upgrades every remote daemon older than this TUI ([Remote Environments](remote-environments.md#upgrade-every-remote-at-once)) |
| `scroll_pane_up` | `PageUp` | Scroll the focused pane back |
| `scroll_pane_down` | `PageDown` | Scroll the focused pane forward |
| `host_metrics` | `m` | Open the Host of this deck overlay |
| `restart_notice` | `a` | List the agents a deck restart stopped |
| `dismiss_restart_notice` | `c` | Dismiss the restart notice |
| `copy_mode` | `v` | Open copy mode on the focused pane |
| `interrupted_work` | `I` | Open the [Interrupted work](interrupted-work.md) list |
| `hide_interrupted_work` | `X` | Hide the interrupted work row above the footer |

Not remappable, and they work alongside your bindings: `Down` / `Up` for card selection, `Tab` / `Shift+Tab` / `Left` / `Right` for tabs, `Ctrl+PageUp` / `Ctrl+PageDown`, `S` for the Schedules manager, and `Ctrl+C`, which always opens the quit dialog from command mode. There is no `quit` action.

Rebinding an action also retires its default key: after `scroll_pane_up = "Ctrl+u"`, `PageUp` does nothing in command mode. Rebinding one of the `Ctrl+` actions above also retires its [plain letter](#plain-letters-in-command-mode), and rebinding `host_metrics`, `open_scheduled_tasks`, `generate_config`, `open_upgrade` or `rename` retires its `Ctrl` form; binding another action to one of those letters or chords takes it over. With both scroll actions set to `""`, the wheel is the only way to scroll.

### Problems in the file

| Problem | Result |
|---|---|
| No file | All defaults. |
| The file is not valid TOML | `Invalid keybindings at <path>: …` on stderr, and all defaults. The TUI still starts. |
| Unknown table (for example `[globale]`) | Warning; the table is ignored and the rest applies. |
| Unknown action name | Warning; that line is ignored. |
| A key the notation does not recognise | Warning; that action keeps its default. |
| An action bound to `Ctrl+C` | Warning; that action is left unbound. |
| Two actions on one key (including a new binding that lands on another action's default) | Warning; the action listed earlier in the tables above keeps the key, and the later one is unbound. |
| `action = ""` | That action is unbound. |
