Skip to content

Terminal UI

squirrel tui opens an interactive terminal UI. Its job is to answer one question without scrolling or drilling: am I safe?

Terminal window
squirrel tui
squirrel # bare invocation opens the TUI when stdin/stdout are a terminal

squirrel tui always opens the TUI regardless of TTY state. A bare squirrel invocation opens it only when both stdin and stdout are a terminal; otherwise it prints help.

The first screen is ordered by urgency — anything wrong appears above the routine state, so a healthy fleet is a short screen.

  • Config drift — shown right under the agent’s health when a config edit is not fully in force. The agent applies what it can on its own, so this line names what is left: the keys that still want a restart (“the agent applied what it could and agent.auth.token still need a restart”), or the reason an edit could not be adopted at all. It stands until the restart happens or the file comes back, so neither a forgotten restart nor a config that stopped parsing can hide.
  • Alarms — standing per-destination alarms raised by a verify mismatch. An alarm latches: it outlives the run that found it and stays until a clean pass or an explicit squirrel verify ack clears it. A destination in alarm does not quietly go back to green on the next sync.
  • Contested paths — peer-sync conflicts frozen by the contested freeze, with a hint at how to clear them. Every node mirrors the freeze, so a losing edge machine sees it too.
  • Live runs — index and sync progress as it happens.
  • Coverage — per volume, one row per configured target: role, last sync, state, durability, verify method, and evidence age, each cell coloured by severity. This is the per-(volume × destination) grid: a target that has been failing for a week cannot hide behind a fresh ✓ earned by a different one. Each volume’s header line carries its index freshness and offload readiness.
  • Fleet — under each volume’s grid, one row per other place it lives: the other machines as well as the destinations. Whether each is behind or ahead of this machine, how many files have not reached it, when it last changed, and when it was last verified. This is the answer to “where else does this volume live, and is any of it out of date” without walking to another machine — and it is the only place a machine that pushes to this one shows up at all, since no target row mentions it.

The coverage panel and squirrel status render the same facts from the same query layer, so a headless box and a TUI never disagree. Use status when you want an exit code; use the TUI when you want to look.

TabKeyWhat it shows
Dashboard1The “am I safe?” screen above.
Runs2The audit trail, newest first — drill into an individual run and what it touched.
Volumes3Declared volumes; browse the indexed tree ncdu-style, walking by size the way ncdu explores disk usage.
Hooks4Recorded hook runs and their outcomes.

Squirrel also ships a desktop app (squirrel-desktop) built on the same underlying handlers — a menubar app with a browsable index, run history, and progress view. The TUI and desktop app both read the state the agent maintains, so what you see reflects live activity.