Modes

The TUI has one chat mode (PLAN / BUILD) and three UI modes (dev / production / on-host). They are independent: a production-mode TUI can still be in PLAN chat mode, and so on.

dev

Triggered by cast dev <agent>. The TUI connects to a local runtime on a dynamic port. The header is purple and shows just the agent name.

+---------------------------------------------------------------+
| . email-assistant                                  [PLAN]      |
+---------------------------------------------------------------+

production

Triggered by cast connect <agent-or-sha>. The TUI connects to a deployed A2A server over HTTPS. The header is green and includes the deployed version.

+---------------------------------------------------------------+
| . email-assistant (v1.6)                       [● LIVE  v1.6] |
+---------------------------------------------------------------+

on-host

Triggered by running cast-tui inside a DigitalOcean container (see on-host TUI). The header is also green, but no version badge appears because the TUI is talking to a local A2A server inside the same container.

+---------------------------------------------------------------+
| . email-assistant                                 [● LIVE]     |
+---------------------------------------------------------------+

The available commands are intentionally trimmed:

There is no network exposure, no bearer token crossing a wire, and no chance of accidentally targeting a different deployment. The chat is effectively a local REPL against the deployed container’s runtime.

What the modes are NOT