Shell Channel
Communication channel for zylos shell — the CLI interactive mode.
How It Works
zylos shellstarts a readline REPL and a Unix domain socket server- User input is sent to Claude via
c4-receive(channel=shell, endpoint=socket path) - Claude responds via
c4-sendwhich invokesscripts/send.js send.jsconnects to the Unix socket and delivers the response to the REPL- The REPL prints the response and prompts for the next input
Socket Protocol
- Socket path is passed as the endpoint (e.g.,
/tmp/zylos-shell-<pid>.sock) send.jsconnects, writes the full message as UTF-8, then closes the connection- The REPL reassembles the message from socket data events