Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Attach the phone to the machine's herdr - #117

Draft
frahlg wants to merge 3 commits into
mainfrom
cursor/herdr-mobile-webapp-63f7
Draft

Attach the phone to the machine's herdr#117
frahlg wants to merge 3 commits into
mainfrom
cursor/herdr-mobile-webapp-63f7

Conversation

@frahlg

@frahlg frahlg commented Sep 11, 2026

Copy link
Copy Markdown
Member

Fredrik’s product ask: run every herdr from the phone. This slice is that path on the PWA we already ship, not an agent inbox.

On each box: mir up --engine herdr (installs herdr if needed, pair as today). On the phone: open Miranda, tap the machine, land in that machine’s herdr — the same session as the desktop TUI.

What landed

  • --engine herdr (persisted in config.json; --engine + --shell is an error)
  • Bootstrap herdr like tmux, but never fall back to tmux if herdr was requested. Checksum-verified download from herdr.dev/latest.json into ~/.local/bin
  • Launch the user’s existing herdr (no private HERDR_SOCKET_PATH — that would mint a second empty session)
  • HELLO carries engine: herdr so the SPA hides the tmux window strip (the +/‹/› fallback is a lie on herdr)
  • Mobile keybar Prefix ^B (Ctrl-B, shared by herdr and tmux)
  • Honest mir up notice: strip and mir share stay tmux-only
  • mir doctor warns about a missing herdr only on machines set to that engine

Inbox, pane observe/control, and the Engine interface extract stay later. Miranda’s paired-machine list is the multi-machine layer; we do not implement herdr machine add.

Tests

  • cd go && go test ./... — pass
  • cd web && npm test — 171/171 pass
  • gofmt -l . empty, go vet ./... clean
Open in Web Open in Cursor 

herdr 0.9.0 orchestrates machines in one TUI over SSH and still has no
phone client. Re-measure observe/control on 0.9.0, specify the existing
PWA as an agent inbox across paired machines, and keep the engine seam as
the prerequisite rather than painting herdr into xterm.

Co-authored-by: Fredrik Ahlgren <[email protected]>
mir up --engine herdr launches the user's existing herdr session (no
private socket), persists the engine, and tells the PWA via HELLO so
the tmux window strip stays hidden. Missing herdr refuses instead of
falling back to tmux. The mobile keybar gains Prefix (^B).

Co-authored-by: Fredrik Ahlgren <[email protected]>
Empty HELLO payloads must not clone the session machine, so a later
rename cannot look like an engine change.

Co-authored-by: Fredrik Ahlgren <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant