Toolbox

The Herdr Core Shell reaches host agents through a gated hc relay on the bridge

Status: accepted

The question: an agent in the Herdr Core Shell and an agent herdr.app runs on the host should be able to message each other, locally and without setup.

The host to Shell direction already works: the host's herdr-core reaches the Shell as the machine toolbox, so a host agent runs hc send toolbox/t2 "…" and hc read toolbox/t2. The Shell to host direction does not: the Shell's hc has no machine for the host.

The decision:

The bridge gets a /hc route that runs the host's hc, and the image a hc-host shim for it — the Host Terminal Relay.

Considered Options

Claude Code's cross-session messaging (ListAgents / SendMessage). Locally it needs a shared session registry, a reachable inbox socket and a shared PID namespace (ADR 0003). On Docker Desktop the containers run in a VM: neither the macOS PID namespace nor a host socket crosses into it, so host sessions never list. A relay of the inbox wire format through the bridge would rest on an undocumented protocol and still stay out of ListAgents — the option ADR 0003 already rejected.

Remote Control (remoteControlAtStartup). The supported path between machines, with no code. Rejected: messages and transcripts pass through Anthropic's servers, and the requirement is a local-only channel.

Register the host as a machine in the Shell's herdr-core (hc machine add over ssh to the Mac). Symmetric and native, but a herdr-core machine is a shell: the container would run any command on the host, which breaks the Containment Boundary.

Opt-in per host terminal (a label the relay requires). Safer, rejected for the default: the point is that it works without setup, and the send gate already excludes shells and dialogs.

Consequences