TUI

The agentgrep ui command launches the interactive Textual explorer over the same Codex, Claude Code, Cursor, and Gemini stores the rest of the CLI walks. It is read-only — agentgrep never mutates the source stores. Bare agentgrep prints the directory of choices, so the explorer always needs the explicit ui subcommand.

Note

Versions before 0.1.0a5 made bare agentgrep equivalent to agentgrep ui. That shortcut is gone. Reach the explorer through the explicit ui subcommand, or use the --ui overlay on agentgrep grep / find / fuzzy to open it pre-filled with that subcommand’s query.

Examples

Open the explorer with no seed query:

$ agentgrep ui

Seed the search bar with an initial query so the explorer dispatches a backend search immediately:

$ agentgrep ui bliss

Command

Usage

usage: agentgrep ui [-h] [initial_query]

Positional Arguments

initial_query

Optional initial search text to populate the search bar

Default

Key interactions

The top input is the search bar. Pressing Enter dispatches a fresh backend search; pressing Enter again while a search is in flight signals the previous worker to wrap up before the next one starts, so re-querying mid-stream does not pile up cancellations. Empty / whitespace-only input parks the explorer in an idle state instead of issuing a no-op backend search.

Below the results list sits a sticky in-list filter. Every keystroke narrows the already-loaded records without re-running the backend search, so refining a large result set is instant. Plain up on the filter returns focus to the search bar; plain right on an empty filter releases focus to the detail pane, so the full arrow-key perimeter walks the three columns without reaching for Ctrl-L. A non-empty right keeps cursor-in-input semantics.

Each pane carries a footer status line. The results footer shows match count, cursor position, and a tig-style scroll percent that reads 100% when the view fits; the detail footer shows the compact source path and the same scroll percent. Result-row timestamps render in the viewer’s local timezone with offset (YYYY-MM-DD HH:MM ±HHMM), formatted via format_timestamp_tig().

API Reference

UIArgs, entry points, filter and display helpers.

API Reference

See also

  • CLI — the --ui flag on any search-shaped subcommand opens the same explorer pre-seeded with that subcommand’s query (e.g. agentgrep grep bliss --agent codex --ui).