Browse documentation
Using Wisp
On this page

TUI basics

wisp launches the Rust terminal workspace over Wisp’s shared Python RPC runtime:

wisp

Jump to a focused TUI page for full command and key tables:

  • TUI keys and keybindings — Keyboard shortcuts, composer editing keys, external editor (Ctrl+O), and tui_keybindings customization.
  • TUI commands — Slash commands, /connect, /model, /permissions, /codemode, /subagents, /mcp, and live /browser takeover.
  • TUI sessions and scrollback — Inline and working-tree /diff, tool detail browsing (F6), /resume, /tree, /cd, mouse controls, and prompt history.

An editing turn in the workspace

Start Wisp in a project (wisp, wisp tui, or wisp --mode tui). On an empty session, the welcome card lets you pick Connect a provider, Resume a session, Browse commands, or Mention a project file with arrows or a click; start typing at any time to write directly in the composer.

When you ask Wisp to make a change, the workspace keeps the turn readable end to end:

  • Composer and live transcript: Your prompt sits in a rounded › composer above the status line. Assistant Markdown streams into a 100-column reading measure while code blocks and tables use the full transcript width, with clickable OSC 8 file paths and http/https links.
  • Calm stream pacing: Providers deliver tokens in uneven bursts, so Wisp reveals text at a steady word pace and holds back unfinished inline Markdown markers (like **bold**, `code`, table rows, or code fences) until complete. That prevents jitter and raw syntax flashes, then flushes immediately on pauses, tool cards, or turn completion (WISP_TUI_STREAM_PACING=0 disables pacing).
  • Truthful tool labels: Every tool call reads as a concise action line with a status mark (• done, ✗ failed, ⊘ denied/cancelled, or a spinner while running) that distinguishes what was requested from what actually happened—for example Searched filenames for *.rs in src vs. Searched text for "TODO" in src, Proposed disabling MCP server linear (a request, not an applied change), or Edit failed: src/main.rs · stale input. Consecutive reads, repeated commands, and repeated MCP calls fold cleanly, while failures and retries stay explicit instead of being hidden by a later success. Codemode scripts and subagent delegations keep their task title and nested call counts (F6 + → or a click expands any card; Enter opens full detail).
  • Per-turn change summary and delta-style /diff (Alt+G): Every edit or write card shows a syntax-highlighted inline diff preview (select a card with F6 and press Enter to review that single edit’s retained before/after diff), and the bottom of the turn rail summarizes the turn’s net change (╰ +N −M in K files). Press Alt+G (or click / press Enter on the turn summary row) to open /diff filtered to the files touched in that turn—showing each file’s cumulative working-tree diff against HEAD with hunk headers, syntax and word-level highlights, folded unchanged regions, and side-by-side split view on wide terminals. Run /diff directly for the full working tree against HEAD.
  • Status line: Connected segments below the draft show the active model and reasoning effort, confirmed mode and permissions, and workspace and branch. Choose a Nerd Font Mono in your terminal for full-height chevrons and rounded badges. A separate badge shows when Wisp is working, needs a decision, or has hit an error. The second row shows context usage and session cost when available, alongside keys for the current workflow. Notices, queued work, background jobs, and tool-server health appear as space permits. With a narrow conversation column or a short terminal, a single row prioritizes run state, permission scope, and context usage.

Docked approvals and project trust

Read-only tools run immediately. When Wisp proposes a file edit, shell command, or MCP mutation, an approval panel docks above the footer in place of the composer—keeping the conversation visible and your draft intact:

  • Inline previews: edit and write approvals render a syntax-highlighted inline diff; bash approvals render the wrapped syntax-highlighted $ command; other tools show their full arguments.
  • Deliberate confirmation (keyboard or mouse): Press 1 allow once, 2 allow tool for this session, 3 YOLO for this project (session-only in $HOME or broader folders), or 4 deny (or the y/t/a/n aliases, ↑/↓ + Enter, Esc to deny, or click a painted choice directly). There is no pre-selected default, so a stray Enter meant for the composer cannot approve a tool call.
  • Fail-closed saved command-prefix allow rules: For eligible simple single bash commands inside a project (never shell chaining, pipelines, subshells, redirections, or broad folders), the approval dock offers an extra 2 / p choice: Always allow <prefix> (saved) (shifting tool-session, YOLO, and deny to 3/4/5). Inspect or revoke saved rules and switch permission modes (Ask, Auto edits, macOS Auto commands, YOLO) in /permissions—see TUI commands: Permissions.

Project trust uses the same docked panel (y trust, n deny, keyboard-only) and stays separate from per-call tool approval.

Side panel and keyboard shortcuts

A one-row top bar keeps the session name on the left and the Session, Files, and Browser tabs on the right, followed by Shortcuts when space permits. Click any tab to open or close the panel, press Ctrl+P to toggle it, F8 to focus it ([ / ] switch tabs, Esc returns to the composer), or f to expand the active tab into a centered overlay.

On wide terminals, the side panel docks beside the transcript—growing automatically up to a 76-column cap while preserving the 100-column prose measure—and its left border can be dragged wider (double-click to reset). Narrow terminals open it as a 44-column overlay.

  • Session: Live run activity, context gauge and token-growth sparkline, auto-expanding MCP server and skill inventories, session-touched files (◆, click to jump to the edit card), running background processes (/ps), and recent turns (Ctrl+T opens /tree). Press t (or expand with f) to open the parallel turn and subagent swimlane waterfall timeline, showing wall-clock Gantt spans for parallel tool batches, nested subagent calls, and codemode scripts.

  • Files: Session-touched files above a lazy-loaded project file tree with Git status and Material Design icons (use a Nerd Fonts v3 Mono font). Click a file or press Enter for a read-only inline preview, press e to open it in $VISUAL / $EDITOR / vi (returning with an updated preview on save), / for a project-wide filename filter, and r to refresh.

  • Browser: Built-in live Chrome/Chromium tab in trusted projects with an address bar, search, and recent addresses, plus automatic previews when Wisp renders an HTML mockup or a browser MCP server captures a page. Click the viewport or run /browser interact (i when focused) for interactive takeover. See Browser viewport and interactive takeover.

  • Shortcuts: Open the keyboard reference from the top bar, or press Ctrl+G then k from the composer. Expand groups with Enter, or press / and filter by action or key. The reference shows your configured bindings. With the reference focused on a wide terminal, press Ctrl+C or click the composer to keep writing with the reference beside the conversation. On narrow terminals the reference opens as an overlay. Esc clears the filter, then closes the reference and returns to your draft.

Local shell mode (!) and background processes

Prefix a composer line with ! to run a shell command locally without spending a model turn:

!git status
!uv run pytest tests/docs

Output renders inline with a local · Alt+S to attach footer—your local runs are not sent to the model automatically. Press Alt+S to attach that command’s output as a [! …] chip on your next prompt (or press Alt+S again, or Backspace on an empty draft, to detach it).

When the agent runs a long command in the background (Ctrl+B moves a running command to the background), it appears in the Session side panel (and a compact strip below the composer when the panel is hidden). The docked Session panel shows the first running command’s latest output under Running. Colors and progress updates appear as the command prints them. To inspect another process, open /ps (or press ↓ from an empty composer), select its row, and press Enter. Click Expand output or press f in the focused peek for a read-only view of the retained output. Use ↑ / ↓ or Page Up / Page Down to scroll, End to follow new output, and Esc to return. In the compact peek, Enter jumps to the transcript card and x then y stops the process.

Steering and follow-ups

The composer stays live while a run is active so you never have to cancel just to redirect work:

  • Alt+Enter sends a steering message injected at the next safe request boundary (after the current tool batch finishes).
  • Enter queues a follow-up message for when the current run would otherwise stop.
  • Alt+Up pops the newest queued steering or follow-up message back into your draft (and recovers failed submissions).
  • Escape or Ctrl+C cancels the active run without discarding queued messages.

Run /queue (or bind queue.manage in tui_keybindings) to inspect both queues, switch drain modes (One at a time vs. All per boundary), restore the newest item from a specific queue, or clear queues with confirmation. Queues are process-local and validated with snapshot tokens so stale edits never drop a newer message.

Completions and the file picker

  • Type / to filter slash commands and /skill: entries inline; Tab or Enter accepts.
  • Type @ at a word boundary (while idle or streaming) to open the composer-anchored file picker in fuzzy mode (@rust_launcher matches src/wisp/cli/native_tui/rust_launcher.py). Press Tab to switch between fuzzy search and a collapsible project tree (Left/Right collapse/expand, Enter inserts @path or @"path with spaces"). Wisp inserts the path reference rather than inlining file contents, and respects protected_paths.

The composer also highlights recognized commands, project paths, and basic Markdown structure as a presentation aid while keeping the exact raw text editable.

Large pastes

Pastes over 2,000 characters fold into a compact numbered marker showing character, line, and byte counts so surrounding text stays easy to edit. Moving into or editing at a marker expands it first; submission, steering, history search, and queue recovery always use the exact raw text, and markers are never written into session history.

Themes, verbosity, and appearance

  • /theme [name] previews and applies curated themes (Vapor, Glass, Orchid, Ember, Storm, Grove, Wave, and light themes Paper and Dawn); theme.toggle can be bound in tui_keybindings.
  • /logo [name] chooses the startup welcome logo (Random, Classic WISP, Wisp Braille, Adal Braille, or Adal Mark Braille).
  • /verbosity [low|medium|high] switches transcript detail live without touching saved history: low hides completed thoughts and inline diffs and collapses consecutive successful tools; medium (default) groups exploration calls with compact diff previews; high expands thoughts, bash output, and full retained diffs inline.

Local presentation preferences save atomically to ~/.wisp/tui.json (never settings.json, RPC, or session files). Set NO_COLOR for contrast-safe monochrome rendering. For WISP_TUI_* environment variables (WISP_TUI_COLORS, WISP_TUI_IMAGES, WISP_TUI_MOTION, WISP_TUI_NOTIFY, WISP_TUI_MOUSE, WISP_TUI_STREAM_PACING), tmux notes, and exact layout/paste thresholds, see Environment variables: Terminal UI rendering, compatibility, and limits.

Modes

  • /plan switches future prompts in this process to read-only planning mode (write, edit, bash, and non-read tools stay unavailable). Use /build to return to editing. Mode is not persisted in session JSONL.
  • /new preserves the current session for /resume, clears the screen, and starts a fresh session lazily while keeping your provider, model, effort, mode, permissions, and trust settings.

Flags and availability

wisp tui --continue
wisp tui --resume <session-id-prefix>
wisp tui --no-all-tools                  # opt-in tool filter instead of the full registry
wisp tui --yes                           # auto-approve mutating/command tools for this run
wisp --mode tui --provider anthropic     # top-level flags such as --provider and --model work

Native wheels for macOS arm64 and Linux glibc 2.28+ x86_64 bundle wisp-tui alongside the Python backend. Pure-wheel installs keep print, JSON, RPC, and SDK modes, and report how to obtain a native wheel or build a matching Rust binary when launched interactively. From a source checkout, build the binary and set its absolute path in WISP_RUST_TUI_BINARY—see Development setup and Rust terminal frontend boundary.

Run /search, /search on, or /search off while idle to toggle provider-native web search for the current session (set web_search in ~/.wisp/settings.json or WISP_WEB_SEARCH for a persistent default). This does not affect separate MCP search servers such as Exa. Google Search grounding is not yet supported. Replies that used provider search show bounded source titles/hosts and mark cost as cost ≥… to indicate provider search fees are excluded.

Updates

/update, /update check, and /update install display update instructions without leaving your draft. Quit Wisp and run wisp update --check or wisp update in your shell for persistent uv tool installations; source checkouts should pull and rebuild the matching Rust binary per Development setup.

Topics on dedicated TUI pages
Wisp working row beneath a submitted prompt, with the composer still available for input.
The working row shows activity while the composer stays available for steering and follow-ups. Production TUI renderer · synthetic demo data · static capture. Open the image for full size.