Skip to content

refactor!: remove herdr support; rex is the only multiplexer - #176

Merged
sigma merged 1 commit into
ticket-170from
ticket-173
Nov 9, 2026
Merged

sigma merged 1 commit into
ticket-170from
ticket-173

Conversation

@sigma

@sigma sigma commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Rex is the only multiplexer now (ADR 0012), so this removes herdr's client and the multiplexer key.

What changes

  • internal/herdr and its Mux interface are gone. Agent, Pane, Workspace, the status words, the not-found codes (rex.Code, PaneNotFound, TabNotFound) and NameStart/NameChar/MaxName now live in internal/rex. send, dispatch, refresh and tools take a rex.Client, built with rex.New(path, env).
  • The executable-path fields are renamed Herdr → Rex on send.Sender, dispatch.Dispatcher and tools.Deps. refresh.Reconciler.Herdr (a herdr.Mux) is now Rex (a rex.Client). main looks up rex on PATH.
  • Error text, comments and tool schema descriptions say workspace, tab and pane, or rex. A skipped refresh reason starts rex: where it used to start herdr: .
  • A failed rex call is now named by its command only (rex capture: …, rex send-key: …), without a flag after it.
  • The delivery check from Check that a sent prompt was taken #170 now runs on every send, since rex is the only path.
  • New internal/rex/rextest: a fake rex that holds sessions of blocks and answers rex's CLI the way rex.Client calls it. It runs in process as a Runner, or on disk as a shell script that passes each call to the test process over a FIFO. Starting the test binary once per call cost about 1 s each under -race on macOS, so I didn't do that. The test fakes in send, dispatch, refresh and tools that used to stand in for herdr now use it.
  • Docs: the AGENTS.md layout table, spec §3 (the multiplexer line and its paragraph are gone), and ADR 0012's "until Remove herdr support #173 lands" line is dropped.

Breaking

The multiplexer key is gone from worklog.toml. A file that still has it fails to load with unknown key multiplexer. Delete the line in the same change that bumps quartermaster.

Checks

  • just check: fmt-check, lint (0 issues), and 682 tests pass.
  • nix flake check: passes.
  • Not yet run: the live-rex acceptance check (▶ send, session dispatch, fresh dispatch followed by a refresh that closes the tab and removes the checkout). It runs once by hand after linearizing.

Part of epic #169.

Fixes #173


Stack for epic #169, decision in ADR 0012. Merge order, parent first: #175 → #176 → #177 → #178.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

internal/herdr, its Mux interface and the multiplexer key go. The shared
types live in internal/rex; send, dispatch, refresh and tools take a
rex.Client. internal/rex/rextest fakes rex for every package test.

BREAKING CHANGE: the `multiplexer` key is gone; delete it from
worklog.toml, which otherwise fails to load with an unknown-key error.

Fixes #173
@sigma
sigma added this pull request to stack #179 November 9, 2026 17:55
@sigma
sigma marked this pull request as ready for review November 9, 2026 17:57
@sigma
sigma merged commit aa14de8 into main Nov 9, 2026
2 checks passed
@sigma
sigma deleted the ticket-173 branch November 9, 2026 17:59
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.

Remove herdr support

1 participant