Expand description
The local socket any agent can use to reach a running Cellix. One line in, one line
out: comments, take (comments, then clear them), threads, take-threads (those an
agent hasn’t seen), reply <id> <author> then a tab and the text, or open <path>.
It’s a Unix socket where there are those, and elsewhere a port on 127.0.0.1 behind a token,
as loopback describes. Agents call cellix, so only this crate tells the two apart.
Modules§
- context
- What an agent works from: the instruction files it loads and in what order, its skills, subagents, commands, hooks and MCP servers, what a session of it read, and checks on all of that. Every file here is read as data; nothing in one is ever followed. Nothing here writes.
- hook
cellix hook <kind>: what Claude Code’s hooks call. Nothing here may disturb the agent, so with no Cellix running every kind quietly does nothing but keep its checkpoints.- ide
- The server Claude Code connects to when it treats Cellix as its IDE: MCP over a local WebSocket, announced by a lock file. Claude Code hasn’t published this protocol, so it follows what its VS Code extension does.
- team
- Agents starting, messaging and waiting for each other:
cellix agent run|send|read|wait|ls| stop, through the Cellix that has their folder open. The CLI sends one call as a line,agent <json>, and the app answers with one line of JSON once it’s done, which for a wait or a start can take a while.
Structs§
- Agent
Event - What an agent is doing, as its hooks report it.
- Leftover
- What a server leaves on disk, its socket and the plans beside it, for whatever clears up after a Cellix stopped by a signal. Only the server that made them may take them away: a later Cellix may have put its own in their place.
- Server
- The running server. Dropping it removes the socket file, and the plans kept beside it.
- TestRun
- A test command an agent ran.
Enums§
- Agent
State - Decision
- The reviewer’s answer to a plan.
- Request
- Requests that need the app itself, drained on its next tick.
- Transport
- How agents reach a Cellix.
Functions§
- escape
- A reply’s text on one line, for
reply. - prompt_
key - What tells a prompt Cellix typed in from any other: its words, however an agent spaced them on the way to its hook.
- request
- Sends one request to the Cellix serving
root. - request_
with request, over the transport given.- socket_
path - One socket per workspace, in a directory only this user can enter.
- start
- Binds the workspace socket. Fails if another Cellix already serves this workspace.
- start_
with start, over the transport given.- take_
over - Binds the workspace socket in place of another Cellix’s, if one serves it. The Cellix
opened last on a folder is the one in front of the person, and an older one may be running
out of sight, in tmux or behind an SSH link that dropped: agents told it had their file
open, or that it had no such comment, while the person looked at this one. The other sees
it has
lostits socket, and takes it back once this one closes. - take_
over_ with take_over, over the transport given.- wake_
with - Has
wakecalled each time a request from an agent or an IDE is ready to take.
Type Aliases§
- Shared
Comments - Comments shared between the app and the socket thread.