Skip to main content

Crate cellix_agent

Crate cellix_agent 

Source
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§

AgentEvent
What an agent is doing, as its hooks report it.
Server
The running server. Dropping it removes the socket file, and the plans kept beside it.
TestRun
A test command an agent ran.

Enums§

AgentState
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.
wake_with
Has wake called each time a request from an agent or an IDE is ready to take.

Type Aliases§

SharedComments
Comments shared between the app and the socket thread.