Design, implement, or review keyboard-first terminal UIs for local coding agents. Use for session pickers, focus under live updates, approval flows, compact layouts, streaming logs, and session recovery.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Agent Terminal Design?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/abhishekash-agent-terminal-design)
---
name: agent-terminal-design
description: Design, implement, or review keyboard-first terminal UIs for local coding agents. Use for session pickers, focus under live updates, approval flows, compact layouts, streaming logs, and session recovery.
---
# Design a terminal for supervising coding agents
A developer is composing a message in session A. Session B asks for permission. Session C prints a thousand lines. Design the interaction so the developer can **finish the sentence in A, inspect B, and get back to A**. If the UI cannot do that reliably, another panel or a brighter badge will not help.
## Start with one real task
1. Inspect the current screen, keybindings, session identity, event sources, and who owns actions. Trace the journey in the prompt, from the operator’s first action to a visible outcome. Name the operator, target, decision, and cost of a mistake. Do not start with a framework or color palette.
2. Determine what the product can **observe**, **open**, and **change**. In a read-only viewer, offer *Inspect* or *Open original session*, never a decorative *Approve*. A local UI does not imply local model inference, ownership of child processes, or permission to change a worktree.
3. Choose the output for the request. **Design:** show the smallest viable layout and its interaction contract. **Implement:** change the existing input, state, and rendering owners; add the tests this flow needs. **Review:** exercise the highest-risk interaction the user asked about, within the capabilities of the existing product.
## Make four decisions before drawing
| Decision | Rule | Example |
|---|---|---|
| What names the work? | Track session, run, and pending request by stable IDs; paths, labels, row numbers, and process IDs alone are not identities. | Two sessions may both be `Fix parser` on `main`. Display repo/branch plus a short distinguishing ID when needed. |
| What do we know? | Keep connection, task outcome, and requests separate. Require evidence for transitions. Use provider-reported events where available; qualify inference and show last observation when stale. | `Disconnected · last reported: working` is truthful. Silence, exit, or a restored layout alone does not mean the task succeeded. |
| Who gets the next key? | Exactly one owner: list, filter, inspector, dialog, or attached terminal. Background events may update the screen; they cannot take focus or select a new action target. | In the list, an arrow moves selection. Attached, it goes to the shell. Show the actual return chord; do not steal the shell’s Escape or Ctrl-C. |
| Who can perform the action? | Capture the workspace, session, run, and request at preview time. Revalidate through the existing action owner at commit. Reject expired or replaced requests; do not silently retarget. | If `request 7` is replaced by `request 8` during review, show **Request changed — review again**. Never approve 8 with a keystroke meant for 7. |
## Spend cells on the next decision
- **Start at 80×24 in monochrome.** Make task, distinctive workspace, state/reason, focus owner, and return path readable. Give the list or inspector the full width if both cannot fit. At a wider size, add a second pane only if both remain useful. Try names with wide glyphs, combining marks, and identical prefixes. Truncate by terminal cells, not bytes; expose the full target before a consequential action.
- **Give each signal one job.** `>` means selected; `ASK`, `ERR`, and `DONE` describe different states; `Keys: shell A` identifies who receives typing. Do not use the same highlight for all three. Use color as reinforcement. Align recurring fields; wrap the human question before truncating it. Drop borders and repeated metadata before dropping the reason someone is needed.
- **Give attention a destination.** Aggregate pending questions with their reason and origin. A new question changes a count, not the current selection. Opening the inbox is deliberate. Keep acknowledgement distinct from resolution; deduplicate repeats by request identity. If confirmation cannot be verified, show pending or unknown, not success.
- **Keep history still.** Follow new output only at the live edge. When reading older lines, anchor the visible content by record ID/offset and show `+N new · Follow`. Bound retained output; if the anchor expires, say so. Coalesce paints, not decisions or typed input. Check input latency during a flood before adding animations.
- **Design the way back.** On return, restore the prior filter, selected ID, draft, and scroll anchor where supported. If the target vanished, explain why; do not attach to the next row. Distinguish *Reattach live process*, *Resume conversation*, *View history*, and *Start new run*. Offer only the options backed by the current runtime. Search history by task or repo, not just provider; preview the workspace before opening a result.
## Deliver and verify
For a design or implementation, leave (1) a compact screen and its wide-screen change, (2) a mode/key map including back, (3) state → evidence → permitted action for the focal task, and (4) acceptance results. For a review, report the outcome the evidence supports:
- **Failed:** Give the shortest reproduction, expected vs. actual behavior, impact, and a regression check for the smallest repair.
- **Passed:** Name the tested interaction, the boundary where you observed it, and the result. “Only A’s input recorder received the draft” is stronger than “focus looked right.” If all relevant checks pass, stop there.
- **Not run:** Say what is visible, what remains unknown, and what would settle it. A screenshot can show A’s focus marker; it cannot show which session received a key. Use **not applicable** for a capability the product intentionally does not offer.
- Use the [worked design](references/worked-design.md) for a cell layout, a focus map, a recovery decision, and an example review finding. Adapt the choices; do not copy its keys over established bindings.
- Choose the field test by the question: [key routing or approvals](references/field-tests.md#1-three-session-interruption-drill), [compact layout](references/field-tests.md#2-small-colorless-and-similarly-named), [stale state](references/field-tests.md#3-lost-signal-is-not-completion), [scrollback](references/field-tests.md#4-the-reader-outruns-the-renderer), [recovery or retrieval](references/field-tests.md#5-disconnect-restart-retrieve), or [empty and unavailable views](references/field-tests.md#6-empty-filtered-and-unavailable). Run only the relevant paths. Treat wrong-target input or an approval shown as successful without confirmation as a release blocker.
- Use the [project notes](references/project-notes.md) to trace a pattern to its source and see when not to borrow it. The skill itself needs no network access.