The companion binary reads exactly one JSON request from standard input and writes exactly one JSON response to standard output. Configuration, including environment values, must never be passed in process arguments.
Operations:
detect: return all harness detection results.render: render a standalone client configuration without writing it.update: plan selected harness changes and optionally apply them. SetdryRunto return onlychanges.
Every operation accepts an optional scope object, {"mode": "project", "dir": "/absolute/project/dir"}, that targets directory-local configuration;
without it the operation uses global configuration. Deprecated harness ids such
as roo-code are accepted and reported under their canonical id.
The process exits 0 for a valid protocol operation, even when individual
harness results are conflicts or failures. It exits non-zero only when the
request or operation itself is invalid. Consumers must inspect both ok and
each per-harness result.