FIELD GUIDE / TUI
The terminal UI
worth standardizing on.
The terminal client is SolidJS + OpenTUI — Veasel mint chrome, pixel splash, a Compose panel, Ctrl+P command palette, review overlays, and / · @ · $ autocomplete — talking to the local loopback API. Multiline drafts, live + completed MarkdownRenderable replies, DiffRenderable reviews with content washes, mode-aware context footers, dedicated system/tool theme tokens, custom JSON themes, and reduced-motion mode. Type /help in a session for the live shortcut list.
Home and sessions
- j / k or arrows move the session list; g / G jump first/last when no filter is active; 1–9 open the Nth visible session (sidebar labels those slots); Enter opens; n starts a session when the list is empty.
- Type to filter by title or directory. Ctrl+L or Esc clears the filter; the status line states which match is focused. Home/End and PgUp/PgDn page long lists. Selection stays on screen with a plain
Selected N of Mcue. - Esc cancels a running turn (it never clears the composer). Session history and events live in local SQLite.
Compose, palette, and transcript
- Architecture: the client is SolidJS on
@opentui/solid/@opentui/core. Product chrome stays Veasel mint; the original pixel companion is the home identity cue and is distributed under the project MIT license. - Ctrl+P opens the command palette (Ctrl+K stays kill-line in Compose). Ctrl+R jumps to pending reviews; Ctrl+G toggles the latest activity group when present.
- With an empty Compose panel, ↑ / ↓ recall earlier submissions. PgUp/PgDn page the transcript; Home/End jump edges. End sticks to the latest reply while streaming.
- Multiline drafts: Enter submits. Shift+Enter, Ctrl+J, Ctrl+Enter, or Alt+Enter insert a newline (OpenTUI
Textarea). - Type @ to autocomplete workspace paths under the session directory (Tab / Enter inserts; Esc dismisses). Ranking is typo-tolerant: exact / prefix / substring first, then one-edit fuzzy matches.
- Type $ to autocomplete discovered Skills as a one-shot
$source/skilltoken (same Tab/Enter/Esc keys; typo-tolerant ranking). This inserts a mention for the turn — it does not replace/skill onfor lasting session enablement. - Readline edits: Ctrl+A / Ctrl+E ends, Ctrl+← / Ctrl+→ or Alt+B / Alt+F by word, Ctrl+U clear draft, Ctrl+W or Alt+Backspace delete previous word, Alt+D delete forward through the next word, Alt+C capitalize the next word, Alt+U / Alt+L upcase / downcase the next word, Ctrl+K kill to end, Ctrl+T transpose characters around the cursor.
- Ctrl+Y copies the latest assistant reply (OSC 52). Esc dismisses a notice or review first; a second Esc returns home. Esc also cancels an in-flight turn — it never clears the composer.
- MarkdownRenderable: while stick-to-bottom follows the latest assistant body, live streaming and the completed turn both render through OpenTUI
MarkdownRenderable(themed markup + fenced code). Scrolling earlier lines falls back to TextChunk markdown tones so Home/PgUp still page history; End remounts Markdown for the latest reply. - Transcript chrome tones fenced-code language tags, blockquotes, and muted diff context separately; add/remove diff lines use bold chrome. Truncated review summaries say how many lines remain (and
}when more hunks exist). Role labels keep dedicatedsystem/tooltheme tokens so hierarchy stays readable beside assistant/user colors. - Context footers: the always-visible footer swaps by mode — default discovery,
@-path /$-skill / slash completion keys, pending-review hotkeys, or Esc cancel · End follow while streaming — so the row stays under ~72 columns without stuffing every hotkey at once. - Status uses ● idle, ◌ busy, ▲ attention, and ✖ error. Idle shows the active provider/model when configured. Busy grows from
thinking…to measuredstreaming · N chars. While scrolled above a live stream, the cue readsstreaming below · End follows; End restores follow. - Reduced motion: set
VEASEL_TUI_REDUCED_MOTION=1(or GTKgtk-enable-animations=false) to keep the busy glyph and streaming cursor static instead of blinking.
Credentials and models
/connect— paste an API key, save it locally, pick a model (happy path). Provider lists support the same j/k · g/G · 1–9 · type-to-filter · Ctrl+L keys.- s or
/models— full settings: endpoint (Ctrl+U), output budget (Ctrl+O), and model discovery. - Keys are stored under
$VEASEL_DATA_DIR/model-settings.jsonwith owner-only POSIX permissions (plaintext at rest). Saved profile keys win over environment variables for the same provider.
Themes
Use /theme to list and switch themes. Builtins: mint (default product look), ember, slate, mono, aurora, day (light), and contrast (high-contrast light). The choice is stored in ~/.config/veasel/tui-theme (override with VEASEL_TUI_THEME). While the /theme menu is open, ↑/↓ preview colors live; Enter keeps the choice and Esc restores the saved theme.
Custom JSON themes: drop *.json files under ~/.config/veasel/themes/ or <workspace>/.veasel/themes/. Each file needs id, name, and optional extends (a builtin id) plus hex color overrides — including dedicated systemLabel / systemText / toolLabel / toolText tokens. /theme lists those directories (missing, empty, or with filenames) and surfaces clear errors for bad JSON. Project themes override user themes with the same id; builtins cannot be replaced.
{
"id": "ocean",
"name": "Ocean",
"description": "Deep blue workspace",
"extends": "mint",
"brand": "#7dd3fc",
"shellBg": "#0a1628",
"systemLabel": "#7dd3fc",
"toolLabel": "#e6c07b"
}Reviews and slash commands
Type / for suggestions. Common flows:
/patches
Ctrl+R # select a patch to inspect and approve/reject
/commands
Ctrl+R # inspect and approve/reject a shell command
veasel mcp add [user|project] stdio <name> <command> [args…]
veasel mcp add [user|project] http <name> <url>
veasel mcp enable|disable|remove [user|project] <name>
veasel mcp credentials … · veasel mcp oauth …
/mcp # browse configured and session-trusted servers
/mcp trust configured/<name>
/mcp calls or Ctrl+R # inspect and approve/reject a tool call
/skills [filter]
/skill on|off <name>
/plugin add|remove <path>
/map
/usageFile edits, shell, and MCP never take effect until you inspect and approve. Open the unified review panel with Ctrl+R (or the matching /patches, /commands, or /mcp calls command), then select a pending item:
- Space multi-select · a / x approve or reject the selection (or current item)
- Shift+A / Shift+X approve or reject all pending of that kind
- { / } move between diff hunks · ] / [ or n / p move between pending reviews
- v toggles OpenTUI DiffRenderable split view (synced scroll, themed +/- signs, separate gutter/content washes, selection colors, filetype SyntaxStyle) without leaving the review
- Ctrl+R opens the first pending review list (patches, commands, or MCP calls)
Configured MCP persists in user mcp-servers.json or project .veasel/mcp-servers.json; workspace .mcp.json imports read-only. Trust is still per-session. OAuth: veasel mcp oauth authorize|complete|refresh — refresh uses a stored refresh token when present. Token values are never shown. Prefer headless veasel mcp oauth … --listen when Veasel should own the loopback listener (it still does not open a browser). See the MCP guide.
Fresh on main — landing in the next verified release
These terminal improvements are merged on main and ship with the next verified prerelease; the current verified channel tag is in the site footer.
- Drafts survive restarts. Pending composer text and attachments are kept per session in a local state file (0600), so closing the TUI no longer loses a half-written prompt.
- API keys never render. The key prompt masks every character — the secret never reaches the terminal buffer or a captured frame.
- Real Markdown replies. Assistant messages and streaming render headings, lists, tables, and syntax-highlighted code fences; role labels stay readable without color.
- Cursor-aware completion. Moving back into an
@path or$skill mention reopens its menu and completing keeps the text after the mention. - Approvals require inspection. Review details load when you open an item; batch approval stays blocked until every target was actually shown.
- Reduced motion honored. The streaming cursor goes static when
VEASEL_TUI_REDUCED_MOTIONor the OS asks for less motion.
Forks and attention
/fork copies the current session's chat history into a new session (title suffixed “ (fork)”) and switches to it, so you can try a different direction without losing the original thread. Usage and tool state stay with the source session. When the terminal window is not focused, a finished or failed turn raises a desktop notification; focused terminals stay quiet and rely on the status line.
Usage and cost honesty
/usage shows provider-reported token totals, average per reported turn, and optional cache counters when adapters set usage.reported. USD cost appears only when every reported turn matches the pinned schedule — otherwise unavailable. Veasel does not invent cost figures, % cache savings, or Harbor Index scores.