Use the Interactive TUI

The terminal UI runs the same agent, parser, sources, tools, traces, and history serialization used by batch execution. It can be used as a debugger or performs fast demo.

Start the TUI

searcher inspect --config-path file_search
searcher tui --config-path file_search

Hydra overrides can follow the command options:

searcher tui --config-path configs/demo/config.yaml \
  agent.llm_client.model=Qwen3-8B

If successful, TUI would show

TUI

Enter a question below and press Enter to run it. Context is not shared between inputs.

Slash commands

Type / to open the command menu.

Command Behavior
/models Select a discovered model for subsequent runs
/sources Select the active source for subsequent runs
/thinking Show or hide assistant reasoning blocks
/tool-detail Toggle compact and full tool interaction details
/clear Clear the visible transcript
/quit Exit the TUI

Model and source changes apply only to subsequent independent runs. Commands that mutate session state are rejected while a query is active; cancel the current query first.

Run one interactive query without the full UI

Use --query to exercise the interactive streaming and recording path from a normal terminal:

searcher tui --config-path configs/demo/config.yaml \
  --query "Which component owns tool-call parsing?"

This is useful for smoke tests and environments where a full-screen terminal application is inconvenient.

Records and traces

The default record directory is outputs/interactive, or <output_path>/interactive when the run config defines output_path.

searcher tui --config-path configs/demo/config.yaml \
  --interactive-output-path outputs/tui-sessions

Each query writes a timestamped JSON record and a trace. Completed, failed, and cancelled runs are all persisted with their event stream, message history, timing, statistics, and error information. Use these artifacts when promoting an interactive experiment into a batch configuration.