Skip to main content

Crate daemon

Crate daemon 

Source
Expand description

Daemon-side library code: cleanup sweeper, nickname dedup saga, auto-room saga, and the on-disk event persister.

link() is called from the bin to ensure the inventory registrations generated by #[myko_saga] / #[myko_command] survive dead-code elimination. Message delivery itself is handled directly by the marshal_entities::SendMessage and marshal_entities::BroadcastMessage commands — there’s no saga in the critical path for delivery.

Modules§

auto_rooms
Daemon-side reactive auto-room maintenance.
cleanup
Periodic sweep that DELs abandoned sessions.
dedupe_nicknames
Daemon-side reactive nickname disambiguation.
hooks
Claude Code hook logic — all of it server-side.
http_listener
marshal’s own minimal plain-HTTP listener for the Claude Code /hook/* endpoints.
persister
Append-only JSONL disk persister.

Functions§

link