Status: accepted, built 2026-10-03 — details in docs/agents.md.
Amended: voice notes by Parakeet, not Whisper (ADR-053);
harnesses other than claude -p (ADR-054)
The owner runs Claude Code on several machines, reached from a phone through
tmux over SSH (cl), whose phone interface is a terminal. Claude Code's own
Remote Control reaches a session from the Claude app, through a cloud relay.
The mesh already provides what such a thing needs — every machine reachable by
name, behind any NAT, and every packet's source address derived from a device
key — and the point was privacy and independence: nothing leaving the mesh.
A separate agent process, reached over the mesh, with clients of their own.
shrooms-agent runs on each machine as its user (a systemd user unit, never
root) and drives claude -p over stream-json: sessions, streamed replies,
permission prompts answered from elsewhere, history, files, voice notes
transcribed on that machine (whisper.cpp), and taking over a conversation
started in a terminal. It is not part of the shrooms daemon: something that
runs code on request does not belong in the network's most privileged
process.shrooms_core does all of it, on threads of its own: a synchronous call that
waited on the network would freeze the window.Claude Code's own remote access becoming available without a third party in the path, or a mesh shared with people who are not the owner — which would make per-device authorization a requirement rather than an option.