Skip to content

TUI Overview

When running llmist agent in an interactive terminal, you get access to a rich Terminal User Interface (TUI) that helps you monitor and interact with the agent’s execution.

Each LLM call and gadget execution is displayed as a collapsible block:

  • LLM calls show the streaming response in real-time
  • Gadget executions show parameters, status, and results
  • Expand/collapse any block to see full details

The status bar at the bottom shows:

MetricDescription
TokensInput/output tokens used
CostEstimated cost in USD
TimeElapsed time for current operation
ModelCurrent model being used

Debug LLM interactions by viewing:

  • Raw JSON request sent to the provider
  • Full response payload received
KeyAction
/ kSelect previous block
/ jSelect next block
EnterToggle expand/collapse selected block
rView raw request
RView raw response
Ctrl+BToggle browse/input mode
Ctrl+C (×2)Quit agent

The TUI has two modes:

  1. Input Mode (default) - Type messages to send to the agent
  2. Browse Mode - Navigate through execution history

Toggle between modes with Ctrl+B. In browse mode, you can:

  • Navigate blocks with arrow keys or j/k
  • Expand blocks to see full content
  • Inspect raw LLM payloads

When running without a TTY (e.g., in scripts or CI), the TUI is disabled and output is streamed directly to stdout:

Terminal window
# Runs without TUI
echo "How many floppies for DOOM.ZIP?" | bunx @llmist/cli agent -g ./floppy.ts
# Use --quiet to suppress all output except gadget results
bunx @llmist/cli agent "Check my high score" -g ./arcade.ts --quiet