Status: accepted 2026-10-04, built the same day with pi as the second harness; pi pinned in cages 2026-10-11 — how to add one in docs/agents-harnesses.md
The agent drove only claude -p (ADR-036). The owner wanted the open coding
agents too, pi and OpenCode first, then Codex: a machine with a GPU and no
Claude account could then serve sessions to the whole mesh on a local model.
The agents on pi5 (Jimmy), proteus and scribe were already pi, kept in tmux
by a service of their own.
Every app, every test and every event log already on disk read Claude Code's stream-json.
internal/agent/harness.go): it says how to
start its process and what it can do (Caps), and makes a codec per
process that translates both ways. Each session records its harness;
GET /v1/harnesses lists what the machine has.pi --mode rpc):
~/.pi/agent/mcp.json, which the agent keeps an entry in. pi reads that
file only from 1.0 on;install-agent.sh --adopt-pi, its conversation continued as a session
kept running (keep_running), and turns pi starts itself are shown as
coming from their source, not from the owner.@earendil-works/pi-coding-agent@1.1.0 in the
workbench image. The package moved from @mariozechner, which stopped at
0.73.1 and read a models.json key of "$VAR" literally (every caged pi
session on proteus failed with 401). 0.85.1 ignored mcp.json, so caged pi
had none of the mesh's tools. Pinned, so a pi release cannot change the RPC
under us. pi on the host is whatever its owner installed.caps.approve is
false (pi runs its tools without asking).--pi-args. Its cost is pi's figure, 0 for a local model (ADR-038).A harness whose events cannot be expressed in Claude Code's shape without losing something the apps should show. That would be the time for a format of our own.