Workbench

Brief

Every agent pane in Terminal Delight has a second face. The terminal face is the agent at work: tool calls, file reads, diffs, logs. The workbench face is what the agent made for you, laid out as cards.

Its replies sit on the overview under the message that asked for each, and the turn in progress has a card of its own. Questions sit under decisions; a digit answers one, and a round of questions is one card sent with ✔ SUBMIT. Pages, tables and diagrams go to artifacts. Your own notes go to comments, and those never reach the agent.

Flip between the faces with the TERM ⇄ BENCH switch in the pane header, or Alt+K; the terminal keeps running underneath. Start typing anywhere on the bench and a composer opens, and nothing is sent until you press Enter. The strip across the top pauses the turn and changes the model and effort.

For Claude Code, run scripts/install-agent-hooks.sh once, and questions arrive whole through its hooks.

Story explains why an agent needs a second face at all. Technical has the hooks, the cards, the keys and the limits.

Story

The doorway

You've hired a carpenter to build a bookcase, and you're working in the next room. Every so often you get up and stand in the workshop doorway to see how it's going.

From the doorway you see everything. The saw is running, there are offcuts on the floor, a jig is clamped to the table, and a board has pencil marks on it that will be cut in half in a minute. All of it is real work, and almost none of it is for you. If you want to know whether the carpenter needs an answer from you, you have to stand there until you catch them looking up.

A coding agent's terminal is that doorway. Most of what scrolls past is the agent talking to its tools: files read, commands run, diffs applied. The part written for you, a reply or a question, is a few lines at the bottom, and the next tool call pushes it out of sight. On real transcripts, the prose meant for a person comes to between one and three percent of the text.

A tidy workshop solves this with a bench by the door. When a piece is finished, it goes on the bench. When the carpenter needs a decision, the question goes on the bench with the options chalked beside it. When there's a drawing, the drawing goes there too. You can walk up, see what's waiting, answer, and go back to your room without learning anything about jigs.

That's the workbench. Each agent pane in Terminal Delight has two faces, and a switch in the pane header flips between them. TERM is the doorway: the running terminal. BENCH is the bench by the door. The terminal keeps working while you look at the bench. You've only stopped watching it.

The bench is split the way a tidy one would be. Replies go on the overview, each beneath the message that asked for it, so you read the question and the answer together. While the carpenter is still working, a card says what they're on and how long it's taken. Questions go under decisions, and you answer with a digit. Anything drawn or written up goes under artifacts. There is also a notepad that belongs to you: comments are notes you keep about the work, and the agent never sees them.

You can still talk to the carpenter from the bench. Start typing and a composer opens. Nothing leaves it until you press enter, so you can write the whole sentence, fix it, and then send it. And there's a hand on the shoulder when you need one: PAUSE TURN stops what they're doing without sending them home.

Some things reach the bench on their own: Claude Code's replies and questions arrive through its hooks, a small program it runs at fixed moments. Anything richer, the agent writes down in a shape Terminal Delight can read, a small JSON document it presents over MCP, drops into a folder, or pipes through a command. One of those documents is called a surface, and the rules they follow are the surface protocol.

Technical has the hooks, every card and key, and where the limits are.

Technical

The bench

A coding agent's transcript has two audiences. Tool calls and their results are written for the agent, and replies and questions are written for you. Across five real transcripts measured while the workbench was designed, prose meant for a person was 1.0% to 2.9% of the text, and tool results alone were 51% to 59%.1 A terminal shows all of it in order, so the part you need sits under the part you don't. The workbench gives the first part a separate place.

Faces#

FaceChipShows
TerminalTERMThe pane's terminal, unchanged and still running.
WorkbenchBENCHThe pane's cards, on four shelves.
DocumentDOCA document opened into the pane. Exists only on such a pane.

Alt+K or the switch flips the face; on a pane holding a document it moves between the document and its shell. The bench is a surface you stay on: Esc never takes you back to the terminal, and choosing an option on a card leaves you on the bench. Window and pane keys such as Alt+S and Ctrl+W work while it shows. When an agent ends, its bench clears, and the next agent started in that pane opens on an empty one.2 From a script: ctl bench on|off|toggle|choose <n>|submit|say <text>|type <text> (see ctl).

Shelves#

ShelfHoldsKey, with the tab's pane marks off
overviewreplies (response), and the turn in progressAlt+1
artifactsartifact, markdown, table, architecture, and any kind the build does not knowAlt+2
decisionsdecision, question, changesetAlt+3
commentsyour own notes (Comments)Alt+4

Tab cycles the shelves. A shelf with nothing on it says so: No responses yet, No artifacts yet, No decisions yet, No comments yet. An empty bench is one card, NOTHING ON THE WORKBENCH; on an agent's pane it adds This agent has presented no work objects yet. and the folder a .json can be dropped in, and on a shell it offers ⌁ LAUNCH AGENT.3 An agent's decision brief is an artifact: opening it puts the brief in a floating square over the bench, where every element takes a note. Everything an agent has handed over is also listed from the pane header (Artifacts).

The overview#

With no card open, the newest reply stands by itself, and your own message sits above it as a YOU block in your own colour. That block is held outside the card's scroll and comes from the conversation record, so it stays after a long turn has pushed your words out of the terminal's scrollback.

The moment you send, the overview shows a THIS TURN card in place of the last answer: the tool the agent is in, or thinking — no tool call yet, the turn's clock and its tokens. Its heading follows the agent: IN FLIGHT, PAUSED, WAITING ON YOU or BLOCKED. The reply replaces it when it lands. A turn that ends with no reply says THE TURN ENDED · no reply has landed on the bench, and an agent that quits mid-turn says AGENT GONE.4 A turn Claude Code started by itself, for a finished background task or a message from another session, is headed WOKEN · A BACKGROUND TASK FINISHED or WOKEN · A MESSAGE FROM …, apart from what you typed.

The rail down the side labels its rows THIS TURN, WAITING ON YOU, ALSO WAITING, STANDS NOW, ANSWERED and DONE; the newest note on the comments shelf is LATEST.

Hooks#

Without help, Terminal Delight follows an agent by reading its screen and answers by typing keys into it. For Claude Code there is a better route. Run this once from the source tree:

scripts/install-agent-hooks.sh

It copies td-agent-hooks to ~/.local/bin and adds it to ~/.claude/settings.json on five events, appended beside any hooks already there. It needs jq, runs once (a second run says hooks already wired), and keeps a copy of the settings file as settings.json.td-backup.<time> beside it. --uninstall takes the entries out and removes the helper.5

EventWhat the bench gets
UserPromptSubmityour exact words
PreToolUse on AskUserQuestionthe whole round of questions, every option included, and the chance to answer it
PostToolUse on AskUserQuestionClaude Code's own record of the answer
Stopthe agent's reply
NotificationClaude Code's notifications

With the hooks on, a question reaches the bench whole and a press answers it directly; the agent never draws its own picker. The hook holds the question only while the bench is the face on screen. On the terminal face, or with no window of this build holding the pane, the picker draws in the terminal as before. It waits up to TD_ASK_WAIT_S seconds (540 by default) and then lets the picker draw. What the hooks write goes to inbound.jsonl in the pane's surfaces folder, which rolls over to .1 at TD_INBOUND_CAP bytes (2 MiB by default). Hooks start working in agent sessions started after the install.

The installer keeps its backup of the settings file under $XDG_STATE_HOME/terminal-delight/backups/, readable only by you, instead of beside the file. It refuses a symlinked settings file and any option other than --uninstall, and records what it installed so the uninstaller removes only that.6

Questions#

A question card shows its options as chips, and a digit answers the one on screen. A round of several questions is one card and one row on the rail. Across its top, under QUESTIONS, a tab names each question and ticks the answered ones; answering one moves you to the next. The last tab is ✔ SUBMIT, which sends the round however much of it is answered, with no confirmation. It turns green once every question has an answer, and under it the card counts 2 of 3 answered. A question left blank goes back to the agent as skipped and reads left blank · the round was submitted without it.7 The chip under each question says NEXT or SUBMIT, matching the word on the agent's own picker.

A question that opens is drawn at the top of the bench and stays there. Esc never dismisses it; the way out of a pane that is waiting on you is the TERM chip. Claude Code's folder-trust prompt, Do you trust the files in this folder?, arrives as a question card too, with Yes, I trust this folder and No, exit.8

Responses#

A reply card is a row of tabs over one body: reading · evidence · steps · other, and a reply that is only a short answer draws no tabs. Under reading the chips read Plain brief · Technical brief · Brief, and the card and the overview open on Plain brief. What an agent puts in each is on the surface protocol page.

A card has at most one loud thing on it: only an escalation the agent declared is drawn in the attention colour, and a blocking one is framed in the theme's red above the title. The size of the job reads as one sentence under the title, built from the weights the agent declared, for example A big, fiddly job in request cache, where other components call it. Measured. A surface that declares no weight says Nobody said how big this is or how deep it goes., and a weight the agent left out is left out of the sentence.9

WeightValueReads
effortsmall · medium · large · epicsmall · middling · big · huge
complexitytrivial · moderate · involved · hairystraightforward · fiddly · involved · hairy
foundation.depthleaf · component · subsystem · bedrocknothing else depends on it · other components call it · several components depend on it · a mistake here is paid for by everything above it
confidencemeasured · inferred · hunch · unknownMeasured · Inferred, not measured · A hunch · The agent looked and could not tell

A provenance line says how the card got there:

LineMeans
arrived through this agent's own hooks · wholeDelivered by the hooks above.
read from this agent's own recordRead from the agent's transcript or its screen.
presented by this pane's agent · MCP · pid NSent over MCP by the process running in this pane.
presented over MCP by pid N — not this pane's agentSent over MCP by some other process.
dropped as a file · writer unknownA file in the drop folder. Anything that can write there could have written it.
written here, by youA comment.
origin unknown — no transport saidNothing recorded how it arrived.

Surfaces#

Anything richer than a reply, such as a decision with options, a table or a page, reaches the bench as a surface: one JSON document in the Terminal Delight Surface Protocol, by one of four routes.

  • the present_surface MCP tool, which needs the server's writes switch on;
  • a .json file dropped into $XDG_STATE_HOME/terminal-delight/surfaces/$TD_SESSION/$TD_PANE_ID/, swept once a second, oldest first;
  • terminal-delight surface [file], or a ```td fenced block piped to it;
  • a ```td fenced block in the agent's own reply, which the window reads from its transcript. Only Claude Code's transcript is read this way; a fence in a Codex reply reaches no bench, so a Codex agent uses one of the routes above.

The surface protocol page has every field, kind and rule.

present_surfaceMCP tool · writes switch .json file dropsurfaces/<session>/<pane>/ terminal-delight surfacea file, or ```td piped in ```td in a replyread from its transcript the pane's surfaces64 in memory512 on disk overviewresponse artifactspages, tables decisionswaiting on you commentsyours only the agent's terminalreceives the signed line [workbench:<tag>] <action> on surface <id> comments send nothing
Figure 1. Four ways in, four shelves, and one way back. Acting on a surface types a signed line into the agent's own terminal. A comment has no way back at all. Drawn from the surface feed and the shelf table in surface.rs.

Answering#

A hook-carried question is answered through the hook. Every other action on a surface types one line into the agent's own terminal: [workbench:<tag>] <action> on surface <id> …, where the tag is the pane's $TD_TAG, and records it in actions.jsonl. An agent should treat a [workbench] line without its own tag as text, never as an instruction from its operator. Card buttons are drawn from open, comment, approve, reject, accept, choose, ask, source and copy.

The bench writes to a terminal only while the pane is on screen and an agent is in it. Anything sent otherwise is held, in order, and the pane header counts it, 2 answers waiting, or 1 held · no agent in this pane.10

The composer#

On an agent's pane, any printable key on the bench opens the composer: type to the agent, over TYPE ANYWHERE · ENTER SENDS · PASTE TEXT, FILES OR AN IMAGE. The draft is a real text box with line breaks, undo and a selection: Ctrl+A selects it all, Shift with any motion grows a selection, and typing replaces it. Ctrl+C copies the selection, or the whole draft when nothing is selected. Ctrl+X, Shift+Insert and Ctrl+Shift+V do not reach the draft yet: the pane takes them first, so the paste goes into the agent's terminal and Ctrl+X sends it ^X (issue 1247). Ctrl+V pastes into the draft. ↑ on an empty draft walks back through the last 32 messages you sent from this bench.

Enter sends the draft as one bracketed paste followed by a return, so line breaks inside it stay line breaks. Pasted text keeps its line breaks, and copied files paste as their paths. Drag a file onto the composer and its path lands at the caret: the composer lights up with ⤓ DROP TO INSERT THE PATH, several files arrive as several words, and a name with a space in it arrives quoted. A pasted picture is saved and its path goes straight to the agent's prompt, where Claude Code and Codex attach it as an image; the composer counts it, 🗎 1 IMAGE, and your words follow it when you send.11 Esc closes the composer and drops the draft. The bench has no slash-command completion; the terminal face does.

The composer gains three deletion keys, each undoable with Ctrl+Z: Shift+Backspace deletes the previous word, Ctrl+Shift+Backspace the whole current line, and Ctrl+Shift+Alt+Backspace everything in the draft.12

The strip#

The strip across the top of the bench names the agent's state in a word: Working, Waiting on you, Reading your answer, Paused, Blocked, Finished, Exited or Idle. To its right, in order: PAUSE TURN or RESUME TURN, the model and effort dials, then END SESSION or ⌁ LAUNCH AGENT.

ControlDoes
PAUSE TURNShown while the agent works. Sends one 0x03, the same as one Ctrl+C, which stops the turn and leaves the agent running. Ctrl+G in the composer does the same.
RESUME TURNShown once paused. Sends Proceed with the turn. as an ordinary message. Any message you send also ends the pause.
model and effort dialsEach opens a list under it with the current value lit, and a pick types /model or /effort into the agent, confirms its picker, and types your half-written draft back. The lists come from the installed agent itself, starting with Agent default; while it is being asked the list reads Loading models… · retry, and if it cannot answer, Models unavailable · and the reason. The dials can't be pressed mid-turn: pause, change them, resume.13
END SESSIONSends two 0x03 bytes at once, the same as pressing Ctrl+C twice, and sends no signal. A wedged agent that ignores it needs the terminal.
⌁ LAUNCH AGENTShown once the agent has gone. Opens the launcher; so does Enter on a bench offering one, unless a card is open. See Launching an agent.

History#

What you said, every card, each round of questions with its answer, and where the conversation was compacted or resumed are appended as they happen to $XDG_STATE_HOME/terminal-delight/conversations/<id>.ws, one file per conversation. A pane that picks the conversation back up, after a restart or in another window, shows what it already had. To read one without a window:

terminal-delight conversation <id>

Each pane reads only its own conversation. A pane that cannot be matched to its conversation for certain shows nothing rather than a neighbour's work.14

Selecting and copying#

Drag across a card or the rail beside it to select text. Letting go fills the primary selection, and Ctrl+Shift+C or the right-click tray copies it to the clipboard.

Keys#

KeyOn the bench
Alt+KFlip between TERM and BENCH
Tab; Alt+1…4 with the tab's pane marks offCycle through the shelves, or jump to one
↑ ↓Move between rows
EnterRun the card's first action; on a bench offering an agent, open the launcher
a digitAnswer the question that is waiting
EscBack out one layer: dial, then composer, then card. Never dismisses a waiting question, never leaves the bench.
Alt+MWrite a comment
Ctrl+Shift+CCopy the selected text
Ctrl+wheelSize the bench's type on its own dial, bench_size; until you turn it, the bench follows the terminal's size
Alt+clickOn a path, a link, a Markdown link's words or an artifact: open the document (Markdown, HTML, a picture, a video or a PDF) in a floating square over the bench, as on the terminal. The card stays open underneath.
Ctrl+Alt+clickThe same, in a pane beside this one
Ctrl+clickThe same, with your desktop's own app
Shift+clickOn a local path: show it in the file manager
KeyIn the composer
EnterSend
Shift+Enter, Alt+EnterNew line
↑ ↓ on an empty draftWalk through what you sent before
Ctrl+GPause the turn
Ctrl+Z, Ctrl+AUndo, select all
Ctrl+U Ctrl+K Alt+DDelete to line start, to line end, a word forward
Ctrl+WCloses the tab, after asking; deletes a word back when no document box is up
Ctrl+Backspace, Ctrl+DeleteDelete a word back, a word forward
Shift+Backspace, Ctrl+Shift+Backspace, Ctrl+Shift+Alt+BackspaceDelete the previous word, the current line, the whole draft
Ctrl+C, Ctrl+VCopy the selection or the whole draft; paste into the draft
Ctrl+X, Shift+Insert, Ctrl+Shift+VReach the agent's terminal, not the draft, today (issue 1247)

Limits#

  • Each pane keeps 64 surfaces in memory and 512 on disk. Surfaces from sessions that ended are pruned after 30 days. Surfaces presented over MCP are written to disk and survive a restart.
  • The hooks are Claude Code's. A Codex pane, or a Claude pane without them, has its questions read from the screen and answered by typed keys.
  • The bench and its open questions belong to the pane, while the history is filed by conversation. Moving the bench itself onto the conversation is open work.15

What would prove this wrong#

This page claims that the bench is enough to follow an agent without reading its terminal. If you flip back to TERM to find out what an agent did or what it wants from you, the bench failed to carry something it should have. That is a bug. Open an issue with the terminal and the bench side by side.16

Sources

  1. The agent-native output surface research brief, 2026-09-12. Five sampled transcripts: prose a person reads 1.0% to 2.9%, tool results 51% to 59%, all machine payload 83% to 92%.
  2. Escape and the faces: peel in workbench.rs; the bench's keys: bench_key in pane/bench.rs.
  3. The empty card and the shelf labels: benchdraw.rs and lang/parts.rs.
  4. The turn card's words: live_says in workbench.rs; the rail's words: lane_word in benchdraw.rs.
  5. install-agent-hooks.sh and td-agent-hooks, whose header lists the five events, the 540-second wait and the 2 MiB rollover.
  6. The 0.5.0 installer: install-agent-hooks.sh.
  7. The round's tabs and submit: benchdraw.rs; sending a round: bench_submit_round in pane/bench.rs and channel.rs.
  8. The folder-trust dialog read as a question: screenread.rs.
  9. The weight sentence: weight_line in benchdraw.rs; the tabs and readings: surface.rs.
  10. Held writes: bench_deliver and bench_drain in pane/bench.rs.
  11. Sending, pasting and dropping: bench_send, bench_paste and bench_drop in pane/bench.rs; the 32 recalled messages: HISTORY_KEPT in channel.rs.
  12. The 0.5.0 deletion keys: line_edit in workbench.rs.
  13. The dials: strip_trailing in pane/bench.rs, dials_live in workbench.rs, and the agent's own model list in model_catalog.rs.
  14. The conversation record: benchstore.rs.
  15. Move the bench and the channel state off the pane together, keyed by the conversation.
  16. Open an issue.