# Termote Herdr dressed as [Termote](https://github.com/lamngockhuong/termote): its session list on the left, its header over the panes, its colours and agent badges, in each of Termote's three UI styles (neutral, terminal, native) and following the system's light or dark mode. Every pane header can open that pane in Termote, copy its Termote link, or show a QR code to open it on a phone. Files and Changes panels, forked from Herdr's own, open beside the panes from the header. ![Termote](preview.png) The mod runs `termote` (`url`, `status`) on this machine; it reads no files and uses no network itself. The Files and Changes panels are `termote-files` and `termote-changes`, forks of Herdr's shipped `files` and `changes` mods that run `git` and list folders as Herdr's do. This file is the brief: enough to build the three layouts from an empty folder. The files next to it are one build of it. ## What you see Three layouts, one per Termote style: `termote-neutral`, `termote-terminal`, `termote-native`. They share one tree; left to right: 1. **The session list**, 240px wide (40–480, resizable), on `chrome`. A "SESSIONS" title (11px, semibold, `dim`), then one group per space: its name in capitals (11px semibold, `foreground` when shown, else `muted`), `@machine` for a space on another machine and the space's status dot (7px). Under it, its tabs as 34px rows (13px): program icon, name, a "zoomed" mark and the tab's status icon (14px). The shown tab's row is `selected` with medium text; in the terminal style it is `raised` with a 2px `accent` bar on its left, as in Termote. Other rows are `muted` and `hover` (`raised`) under the pointer. 2. **The header**, 44px, over the panes: the Termote owl (20px, `foreground`), "Termote" (13px semibold), a 1px divider, the shown space's name, its machine, its branch with a branch icon (12px, `dim`), and on the right the space's status badge, then "Files" and "Changes" buttons (28px, 12px, icon 14px, radius `--tm-radius-control`; `selected` and `foreground` while their panel shows, else `muted`). On `surface`; on `canvas` in the terminal style. 1px `border` below. 3. **The panes**, the shown tab as cards on `canvas`: gap and padding 6/4/8px, radius 10/6/16px (Termote's `--tm-radius-panel`) for neutral/terminal/native, terminal background, 1px `border`, `accent` when focused, a single pane framed too. Terminal padding `[10, 8]`. 4. **The side panel**, right of the panes, hidden until a header button opens it: 368px (280–900, resizable), a stack of the `termote-files` and `termote-changes` mods. 5. **Each pane's header**, 30px on the terminal background, 1px `border` below, 12px: program icon, program or title (medium), the folder's last part (`dim`; split on `/` and `\`), the agent's badge. 6. **The status strip**, 24px on `chrome`, 1px `border` above, 11px `muted`: a dot and "Termote: running on :7680 (hc)" / "Termote: stopped" / "Termote: not installed"; counts of working, "need you" and done agents with their dots; the layout's name on the right. Fonts: Geist for the interface. The terminal style sets names, titles and the status strip in Geist Mono (Termote's `--tm-font-label`). Badges are Termote's (`agent-status-badge.tsx`): an icon per status in its colour, and in the header and pane headers its word in 11px. | Status | Icon | Word | Colour | |---|---|---|---| | working | loader circle, turning once a second | Working | `working` = `--tm-warning` | | blocked | circle with ! | Needs you | `blocked` = `--tm-danger` | | done | circle with ✓ | Done | `done` = `--tm-success` | | idle | circle with a dot | Idle | `idle` = `--tm-fg-subtle` | Colours, from Termote v2.19.2 `pwa/src/index.css` and the terminal palette of `pwa/src/components/terminal-view.tsx`: | Theme | canvas | chrome | raised | selected | border | done | terminal | |---|---|---|---|---|---|---|---| | neutral light | #f7f7f8 | #f0f0f2 | #ffffff | #e3e2f1 | #e1e1e5 | #15773a | #f7f7f8 | | neutral dark | #1a1a1d | #202024 | #29292e | #2e2f42 | #2f2f34 | #4ade80 | #0c0c0e | | terminal light | #f7f8f6 | #eef1ed | #ffffff | #ffffff | #d9ded8 | #0d7a41 | #f7f8f6 | | terminal dark | #0f1110 | #161917 | #1d2120 | #1d2120 | #272d2a | #3ddc84 | #0f1110 | | native light | #f2f2f7 | #ffffff | #ffffff | #e0efff | #d8d8dd | #1f7a36 | #fafafa | | native dark | #121214 | #1c1c1e | #2c2c2e | #26364a | #38383a | #30d158 | #0b0b0c | | Theme | foreground | muted | dim | accent | working | blocked | |---|---|---|---|---|---|---| | neutral light | #27272a | #52525b | #63636b | #4f46e5 | #975c06 | #c81e1e | | neutral dark | #c5c5cb | #a4a4ae | #93939c | #818cf8 | #fbbf24 | #f87171 | | terminal light | #262b28 | #4b5650 | #5f6a64 | #0d7a41 | #8a5a00 | #c42b2b | | terminal dark | #bdc6c0 | #9aa6a0 | #89958e | #3ddc84 | #e5b454 | #ff7a7a | | native light | #1c1c1e | #4a4a50 | #6c6c72 | #0062cc | #a34a00 | #c8001a | | native dark | #c4c4c8 | #a3a3a8 | #949498 | #4c9cf8 | #ffd60a | #ff6961 | `surface` = `chrome`, `hover` = `popover` = `raised`, `input` = `--tm-border-strong`, `idle` = `dim`, `solid` = `accent`. `selected` is `--tm-accent-soft` laid over `--tm-surface` (terminal style: `--tm-surface-raised`), since theme files take opaque `#rrggbb`. Terminal text and the 16 ANSI colours are Termote's light palette (`#24292e` on light) or dark one (`#d2d2d2`); the selection is Termote's translucent selection laid over the terminal background. ## How it behaves - **Agent status** shows in four places: the tab's row (icon), the space's group (dot), the header (the space's badge with its word) and each pane header (that pane's badge). Herdr's space and tab status is the most urgent of their agents (blocked > done > working > idle). Only the working icon moves, by native rotation; nothing redraws on a timer. - **Clicks:** a space's name selects it; a tab row selects its space and the tab. A pane header focuses its pane. `agent.next`/`agent.prev` follow the list's order (spaces, then their tabs). - **Files and Changes:** a header button shows the panel on that view; pressing the shown one hides it. The choice is remembered per space (mod `localStorage`), as Herdr's tab bar does: switching spaces restores that space's panel, or closes it if it never had one. The buttons follow Herdr's shared `"workspace.panels"` (set by its welcome), both when unset. - **Markdown preview:** in Files, a `.md`, `.markdown` or `.mdx` file up to 256 KiB opens rendered (`TextView.markdown`, selectable, 13px `foreground`), as Termote's file viewer does. A 26px eye button in the panel's title bar ("Show source" / "Show preview"; `selected` while the preview shows) switches to the highlighted source and back; the choice is remembered on this device (mod `localStorage` `markdownPreview`, on by default, as Termote's setting). Larger Markdown files open as source only. - **Narrow:** under 160px wide the list becomes a rail: one 34px cell per space with its initial and status dot; a click selects it, the tooltip names it. - **Pane header buttons**, shown while the pointer is on the header: Open in Termote, Copy Termote link, Termote QR code, then zoom/unzoom and close. The three Termote buttons are missing on a pane that is a mod or belongs to a space on another machine (Termote lists this machine's terminals only). - **Open** runs `termote url --group --tab --pane --open`: Termote opens its link, signed in, in the browser. - **Copy** runs the same without `--open` and puts the printed link on the clipboard, then a "Link copied" toast. - **QR** opens a 300×380 popup at the pointer: "Open this pane on your phone", the code as black squares on white (236px), the link under it with a Copy button. Esc or a click beside it closes it. - Failures are toasts with a fixed message: "termote not found", "Termote is not running: termote start", or "termote url failed". - **Status strip:** `termote status --json` at start and every 30 s; a click on it asks again. When Termote runs another backend than `hc`, a hint in `blocked` says "links open Termote's home: termote start --mux hc". - **Light and dark** follow the system (or settings.json `appearance`); `ctrl-shift-l` cycles layouts. ## Built from - **Layouts** (`layouts/termote-