cyberneticlibrary

Host Claude across multiple CLI invocations

resident-daemonworkflowsetup L40
cyl19970726/multi-agent-harness
What it does

Design & implement Unix-socket daemon for cross-CLI-invocation Claude residency

Best for

Persisting resident Claude across CLI invocations when you need a Unix daemon that reuses existing ResidentPool without adding dependencies.

Inputs
  • · [object Object]
  • · [object Object]
Outputs
  • · [object Object]
  • · [object Object]
  • · [object Object]
Requires
  • · std::os::unix::net
  • · std::sync, std::thread
Preconditions

Unix-only (cfg(unix)); existing resident.rs ResidentPool present; no new external crates allowed

Failure modes

Socket stale-socket cleanup fails; concurrent access to ResidentPool deadlocks; child process lifecycle issues

Trust signals
  • · no external crates
  • · thread-per-connection + Arc<Mutex> pattern
  • · ADR amending not reversing prior decisions