claustrum¶
claustrum is a tiny, dependency-light Go daemon. It reimplements, clean-room, the small daemon that hosts a remote Claude Code session over SSH. Wire-level probes of the reference binary gave the contract. The project copied no code (see NOTICE) and sends no telemetry. One binary holds a local CLI-version manager, a process supervisor, and a JSON-RPC multiplexer with a replay buffer over an AF_UNIX socket. The daemon supplies 24 methods across the server.*, files.*, git.*, launcher.*, process.*, and plugins.* namespaces.
The one hard rule
Stay byte-identical to the JSON-RPC frames of the reference daemon. The wire surface is the product.
New here? Read the Tour of one session. It shows the frames of one session, from connect to shutdown. Then pick the path that fits you. A flag selects the mode of the binary, and the flags table lists each one.
-
You write a client
- How claustrum works. The three runtime roles and the replay model.
- Protocol overview, with the error texts and stream frames.
- Worked client sessions. Runnable requests and a small client.
- process.spawn, process.reattach, and the other method pages under Methods in the left menu.
-
You run the daemon
- Running the daemon. The token, the lock, the log and the stop.
- -install and -probe-cli. The install of the agent CLI.
- The security policy.
process.spawnruns commands as the user of the daemon, so treat the socket and the token as shell access.
-
You contribute
- Divergences. Every deliberate divergence from the reference.
- Docs style guide. Page templates and limits.
- The contributing guide.
- The Go pin. Why the build holds one Go line.
-
You track the reference
- Upstream tracking. How the project keeps compatibility.
- Reference builds. The reference builds and their wire changes.
- Shipped ledger. The completed hardening work.
The Glossary defines the project terms.