Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The TUI

Gaius renders a full terminal interface built on the Textual framework. The interface draws inspiration from Bloomberg Terminal (information density), Plan 9’s Acme (everything is a file), and CAD orthographic views (multiple synchronized projections).

Launch the TUI with:

uv run gaius

Five Components

The interface is composed of five primary widgets:

MainGrid

The 19x19 grid occupies the center of the screen. It is the primary workspace – a spatial representation of high-dimensional data projected onto a Go board layout via UMAP (cosine metric, k=15, min_dist=0.1). Grid positions correspond to embedded data points, and the cursor () indicates your current focus.

Three view modes (cycled with v):

ModeWhat it shows
GoEntity positions as stones on a standard Go board with star points (hoshi)
ThetaInformation density view – temporal knowledge consolidation state
SwarmAgent positions and cluster dynamics during multi-agent analysis

Four overlay modes (cycled with o) layer additional information:

OverlayWhat it reveals
TopologyH0/H1/H2 persistent homology features – death loops () mark persistent 1-cycles
GeometryOllivier-Ricci curvature heatmap – positive (cluster interior) vs. negative (boundary)
DynamicsGradient vector field showing direction of semantic change
AgentsAgent positions colored by role (Leader, Risk, Optimizer, etc.)

MiniGridPanel

Three 9x9 orthographic projections update as you move the cursor:

ViewContentVisualization
EmbedLocal cosine-similarity neighborhood around the cursorDensity shading (█▓▒░·)
IsoScalar field rendered as elevation map via IDW interpolation (power=2)Height-mapped shading
TemporalTime-series evolution of the cursor’s neighborhoodChange over time

The Iso view cycles through four scalar fields (curvature κ, total persistence π, complexity σ, boundary participation β) each revealing different aspects of the local topological structure.

FileTree (Left Panel)

The left panel presents a Plan 9-inspired file tree where knowledge base entries, agents, and system state are navigated as a directory structure. Agents appear as files under /agents/, and KB entries are organized by domain. Toggle visibility with [.

ContentPanel (Right Panel)

The right panel displays detailed content for the currently selected item: file contents, agent output, position context, health reports, or command results. It is the primary output area for slash commands. Toggle visibility with ].

CommandInput (Bottom Bar)

The bottom command bar accepts slash commands. Press / to focus it, type a command (e.g., health, evolve status, gpu status), and press Enter. Press Escape to cancel. The command bar supports history navigation with up/down arrows and tab completion.

Layout Flexibility

Toggle panels to adjust the layout to your task:

  • Full layout: all panels visible – maximum context
  • Grid-focused: press \ to hide both panels – maximum grid space
  • Research mode: hide left panel with [ – more room for content output
  • Navigation mode: hide right panel with ] – focus on the file tree and grid

Center Auxiliary Panel

The center panel cycles through five modes:

ModeContent
GraphWiki-link graph visualization of KB connections
ThinkReasoning traces and agent thinking during inference
EvolutionEvolution daemon monitoring (agent improvement cycles)
ObserveOperational health metrics from Prometheus and engine
NoneHidden – maximizes main grid space

Density Shading

Scalar values map to block characters for high-bandwidth visual perception:

SymbolValue rangeMeaning
> 0.8High intensity
0.6 – 0.8Medium-high
0.4 – 0.6Medium
0.2 – 0.4Low
·0.05 – 0.2Minimal

This vocabulary is consistent across the MainGrid, MiniGrids, and overlays.

Design Principles

The TUI is keyboard-first. Every action is reachable without a mouse. Information density is high by design – the interface shows as much relevant data as possible without requiring navigation to separate screens. Modes and overlays let you shift perspective without losing your place.

The visual vocabulary is consistent: the same shading characters mean the same intensities everywhere. Death loops () always indicate persistent H1 features. Agent colors are stable across sessions.