Command line
terminal-delight with nothing after it opens a window and restores your session. Every other word is a verb that does one job, prints its answer and exits without opening a window.
The ones you're likely to type are ctl, which scripts a running window, mcp, the relay you register with an agent, and default-terminal on, which makes Terminal Delight the terminal Omarchy opens. surface puts work on your pane's workbench from a script, skin prints a skin to start your own from, and probe and bindings say what Terminal Delight would resume and which conversation each agent is in.
A word it doesn't know is refused with the usage text and exit status 2, so a typo never leaves a stray window or session behind.
Technical lists every verb, its flags and its exit codes, and the four 0.5.0 adds.
Verbs
Opening a window#
| Command | Does |
|---|---|
terminal-delight | Open a window and restore this workspace's session. |
terminal-delight <dir> | Open a window whose first terminal starts in <dir>. This works only without the session host (TD_NO_SESSIOND=1) and with no saved layout to restore. With the session host, the default, the directory is ignored (issue 798). |
terminal-delight [--app-id=<id>] [--title=<t>] [--working-directory=<dir>] [-e <program> [args…]] | Open a quick window the way xdg-terminal-exec asks. -e runs the program directly, never through a shell, and the window closes when it ends. Everything after -e belongs to the program. A quick window never claims or saves a session. Anything else in this form is refused: `…` is not one of the launch options (--app-id=, --title=, --working-directory=, -e). |
The environment variables that shape a launch, such as TD_SCRATCH and TD_SEED_CWD, are in Environment flags.1
Verbs#
| Command | Does | Exit |
|---|---|---|
ctl <cmd> | Script a running window over its control socket. Every command is on ctl. | 0, 1, 2 |
mcp [--pid <N>] | The stdio MCP relay into a running window. It finds the window from the process tree, then TD_SESSION, then the only window running; --pid names one. See MCP server. | 0 at end of input; 1 no window; 2 window lost |
default-terminal [status|on|off] | Make Terminal Delight the terminal xdg-terminal-exec opens, which on Omarchy answers Super+Return and the TUI launchers. on writes ~/.config/xdg-terminals.list with terminal-delight.desktop first and keeps a journal of what was there; off puts it back exactly, unless someone changed the list since. status, the default, says which terminal is the default. See Omarchy. | 0; 1 refused |
surface [file] | Put a work object on the calling pane's workbench, from a file or from standard input. --catalogue prints the kinds this build can draw; --derive <transcript.jsonl> prints what it would draw from a transcript. | 0 accepted; 2 nothing usable; 3 not inside a pane |
briefing | Print the briefing a pane started from LAUNCH AGENT gets, for this pane. Prints nothing outside a Terminal Delight pane, or in a pane the launcher already briefed. | 0 |
briefing hook [status|on|off] | Add or remove a Claude Code SessionStart hook that runs terminal-delight briefing, so an agent you start by typing is briefed too. It edits Claude Code's settings.json. | 0; 1 failed; 2 unknown word |
skin | Resolve a skin against a theme and print every token as JSON. Flags: --skin <id|path>, --theme <id|path>, --palette <id|path>, --scale <n> (the menu-bar dial, 0.7 to 1.6), --text-size <n> (the text-size dial's own factor, 0.6 to 2.0). --check refuses unknown tokens and invalid values. --list names the skins this build carries; --template <id> prints one to start your own; --catalogue and --catalogue-md print the inventory of skinnable surfaces as JSON or as a table; --atlas-script prints the preview runner. | 0; 1 parse error or a --check failure; 2 usage |
probe <pid> | For a shell pid: its foreground process, directory and resume command, as JSON. | 0; 1 no pid; 2 failed |
bindings | Which conversation each running Claude or Codex process is in, and on what evidence, as JSON. | 0; 2 if /proc can't be read |
bindings <id> | Whether a conversation id is a whole conversation or a segment of one. | 0 |
conversation <root> [--json] | Read a conversation's bench back without a window: its surfaces, turns and answers. | 0; 2 usage |
agent-usage [update|list|where] [--only <id>] | Run the usage collectors (claude, codex, fireworks, grok) and write one record per subscription. list names the collectors; where prints the folders records are read from. See Usage and vitals. | 0; 1 only if every collector failed; 2 usage |
agent-vitals <transcript.jsonl>… [--parts] [--keys] | The three attention bars for transcripts, as JSON. --parts adds the fatigue components; --keys prints each tool call's key instead. | 0; 2 with no transcript |
serve --session <key> | Run the session host for a session. Windows start this themselves. | 1 can't make its socket folder; 2 usage |
--version, -V | terminal-delight <version> (terminal core: rio-vt 0.5.29). A test build made with the core-alacritty feature names alacritty_terminal 0.26 instead. | 0 |
--help, -h | The usage text. | 0 |
An unknown word prints terminal-delight: unknown command `<word>` and the usage text, and exits 2. An unknown option does the same with unrecognised option. A word that names an existing directory opens a window there, as above. Commands that print can be piped into head without an error.1
probe#
Keys: shell_pid, fg_pid, kind, comm, cwd, cmdline, resume. resume is the command Terminal Delight would type to bring the agent back, such as claude --resume <id>.
bindings#
{"panes": […]}, one row per agent: shell_pid, agent_pid, mode, cwd, session, bond, certain, and the conversation's lineage. bond is how the binding was found: declared (the agent said so), birth (a transcript started with it), sole (the only conversation in its directory) or guess.
Added on 0.5.0#
Four more verbs: one runs a command with limited reach, one manages UI sets, and two remove Terminal Delight or tidy up after it.2
| Command | Does | Exit |
|---|---|---|
restricted run --workdir DIR [--read-only] [--td-note] -- PROGRAM [ARGS] | Run an offline command that can reach one project directory and nothing else. restricted status|revoke|dismiss RUN inspects a run or reduces its reach; restricted call '<json>' is what the command itself uses to talk back. See Restricted commands. | the command's own status; 2 refused |
ui --list | --template <id> | --check <file.toml> | The UI sets: list the built-in and your own (~/.config/terminal-delight/ui/*.toml), print a built-in (all, clean, standard) to start from, or say which controls a set file shows and hides. | 0; 1 unknown keys in the file; 2 usage |
uninstall preview [--json|--handoff] [--retention keep|export|delete] | What a removal would do on this machine and what it would leave you, without changing anything. See Uninstall. | 0; 2 usage |
uninstall plan [--retention keep|export|delete] | Write that plan as Markdown and JSON for review, and print both paths. | 0; 2 usage |
uninstall run --plan FILE [--now] | Carry out a reviewed plan. It runs in the background and closes Terminal Delight; --now runs it in the foreground. | Without --now: 0 the worker started (its receipt says how the removal went); 1 it could not start; 2 usage. With --now: 0 done; 1 done in part, or no receipt written; 3 refused; 2 usage |
admin export [--records] [--to DIR] [--json] | Copy your settings, and with --records your records, to a new folder with a checked manifest. | 0; 1 failed; 2 usage |
admin builds [--json], admin builds prune [--keep N] [--dry-run] [--json] | List the installed builds in ~/.local/lib/terminal-delight, or remove the ones nothing uses, keeping the newest N (default 3). | 0; 1 failed; 2 refused or usage |
admin guard, admin protect [--reason TEXT] | Say whether this machine refuses removal, or mark it so it does. | 0; 1 could not write the marker; 2 usage |
What would prove this wrong#
A word the binary dispatches that is missing here. Every verb lives in one roster, VERBS in main.rs, and the dispatcher reads only that list, so the roster and this page should name the same words.
Sources
- The verb roster, usage text, launch options and exits: main.rs (
VERBS,USAGE,parse_contract,dispatch); each verb's own flags: ctl.rs, defaultterm.rs, surfacefeed.rs, briefhook.rs, skin.rs, benchstore.rs, usage.rs, vitals.rs, host.rs. - 0.5.0: the roster in main.rs; restricted.rs, uiconfig.rs, uninstall.rs and its
uninstall/export.rsanduninstall/builds.rs.