ADR-053: golem opens the web UI, and golem tui opens the terminal chat
Date: 2026-11-14 Status: accepted Deciders: Milan Pavel
Context
Bare golem opens the terminal chat (ADR-019). golem web opens the web UI (ADR-028). The web UI is now the main surface, so it should be the default command.
Installed launchd plists run <golem> web serve at every login, so golem web has to keep working.
Decision
| Command | Does |
|---|---|
golem, golem --port N, golem --no-open, golem --json | Opens the web UI, as golem web did |
golem tui | Opens the terminal chat |
golem web | Stays. It is a permanent alias of golem |
golem web serve|install|uninstall|logout | Unchanged |
--help,-hand--versionstill come first.- The name is
tuibecause it is short and matchespackages/tui.golem codewas rejected: it reads as a coding agent. - When bare
golemopens the browser, it prints one line on stderr:Chat in the terminal: golem tui. It does not print it with--jsonor--no-open. - With
SSH_CONNECTIONset, baregolemandgolem webact as if--no-openwas given. Only baregolemprints the hint. A browser cannot open over SSH, so the link prints straight away. - The first run asks about the service in the terminal (ADR-033), then the browser shows
/welcome. The setup window now belongs togolem tuiand/setup. - Text that tells a person to run
golemfor the terminal chat now saysgolem tui. This includes hints the daemon prints. The daemon and the CLI ship in one brew archive, so a version skew lasts only until the daemon restarts.
Alternatives Considered
Alternative 1: Keep the terminal chat as the default
- Pros: no change for anyone.
- Cons: the main surface needs a longer command.
- Why not: the web UI is where new users start.
Alternative 2: golem code for the terminal chat
- Pros: reads as a verb.
- Cons: suggests a coding agent, which golem is not only.
- Why not:
golem tuisays what it is.
Alternative 3: Drop golem web
- Pros: one way to do it.
- Cons: breaks the launchd plists already installed, and old docs.
- Why not:
web servemust keep working, and the alias costs nothing.
Consequences
Positive
- The default command opens the main surface.
- Over SSH,
golemjust prints the link. - No installed job needs to change.
Negative
- Anyone used to bare
golemfor the terminal chat gets a browser. The hint line says what to type. - Old ADRs and changelog entries still say
golemfor the terminal chat. They are history and are not rewritten.
Risks
- A script that ran bare
golemand expected a terminal UI now starts the gateway. That script was already interactive, so the risk is small.