/khive:commfrom khive
Coordinates messaging between agents and lambdas over khive comm. Covers sending addressed messages with subjects, triaging inbox by sender and subject, replying to threads, and diagnosing channel delivery. Use when sending messages, checking inbox, following up in conversations, reading threads, or debugging delivery.
Ships in khive. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
khive comm is how agents and lambdas message each other. The surface is fifteen verbs —
comm.send, comm.delivered, comm.transport_status, comm.inbox, comm.unread,
comm.read, comm.mark_read, comm.reply,
comm.thread, comm.health, comm.probe, comm.suppression_add,
comm.suppression_list, comm.suppression_remove, and comm.withheld_body —
but the thing worth learning is the coordination pattern, not the verbs. Per-verb param
detail is one call away: request(ops="comm.send(help=true)").
Every message is stamped with who sent it (from_actor). That identity comes from
KHIVE_ACTOR (env) or --actor (flag); if both are unset it silently defaults to "local".
Two things break when you are "local":
comm.inbox as "local" returns messages
addressed to "local" (plus legacy rows without to_actor), so anonymous sessions cannot
distinguish ownership. Messages explicitly addressed to another actor remain filtered out.So set KHIVE_ACTOR=lambda:<you> in the MCP server env. The server logs a startup warning when
the comm pack is loaded and the actor is still "local". Attribution is the price of admission
to coordination.
request(ops="comm.send(to=\"lambda:leo\", subject=\"CI status\", content=\"all 72 smoke tests pass\")")
to="lambda:<name>" — address by actor. Delivery is actor-routed (ADR-057): the message
lands in the recipient's inbox regardless of namespace. The older "sender and recipient must
share a namespace" rule no longer holds — address the actor, not a namespace.subject — it is the one field a busy recipient scans first. An un-subjected
send is harder to triage and easier to miss.to matches the configured
sender actor, comm.send rejects by default; the anonymous local fallback is exempt. If the
message is genuinely a note to yourself, resend with self_send=true. If you meant to reach a
distinct parent or sub-agent, configure distinct actor identities instead of opting in.ambiguous, extract its
full outbound_id and call
comm.delivered(id="<full-outbound-uuid>"). status="delivered" means the
internal inbound sibling exists; status="undelivered" means it does not.
This is sender-scoped exact UUID correlation, not a body search, and it does
not claim SMTP or other external-transport delivery. It also cannot resolve
complete MCP response loss, because that loses the server-generated UUID.request(ops="comm.inbox(limit=10)")
request(ops="comm.inbox(limit=10, wait_ms=30000)")
The fields you triage on are surfaced at the top level — no digging into properties:
{
"from": "lambda:lattice",
"subject": "blocked on embed config",
"preview": "the engine_config resolver returns None when…",
"read": false,
"direction": "inbound",
"content": "…full body…"
}
Scan from + subject + preview, open content for the ones that matter, then
comm.read(id="<full_id>") to clear one or comm.mark_read(ids=[...]) to clear up to 500 in one
operation. comm.read marks a message read and, by default, also returns its subject, content
and routing fields; body=false keeps an acknowledgement-only response. Pass
atomic=true to comm.mark_read when the entire supplied set must change or none may change;
otherwise inspect each best-effort result's read/mark_error. Always pass a limit — active inboxes are large. If next_offset is non-null, repeat
the same inbox filters with offset=<next_offset> until it is null; pagination itself never marks
messages read. Use content_contains when automated notifications omit subject; sender
exact/prefix/exclusion, RFC3339 since/before, and subject/content substring filters can be
combined. Use box="sent" with optional to_actor and since to inspect your own outbound
history; omitting box remains inbound-only. For cheap list reads, pass the same strict
fields=[...] projection to comm.inbox or comm.thread (for example
fields=["id","subject","from_actor","sent_at"]); unknown fields fail rather than being
ignored. Default mark writes are best-effort; re-issue failed results later.
Use wait_ms (maximum 30,000) when you need the next message promptly without
repeated polling. It waits only if the fully filtered page is initially empty
and returns the ordinary paginated inbox response as soon as a matching
message commits.
request(ops="comm.reply(id=\"<message-full-id>\", content=\"ack, fix landing in #198\")")
comm.reply auto-threads, prepends Re: (once), and routes back to the other party — you don't
re-specify to. Reconstruct context before replying with:
request(ops="comm.thread(id=\"<any-message-in-thread>\")")
Any message id in the thread resolves to the same canonical thread.
request(ops="comm.health()")
Each channel reports poll_interval_secs (its nominal/minimum cadence) and nullable
stalled. A true value means the persisted poll schedule is more than three nominal
intervals overdue; null means the row is legacy/malformed or the channel is in a known
failure/backoff episode. Treat stalled as an advisory, not proof that the task is dead:
sequential or slow in-flight polls can also make a row overdue. Inspect
consecutive_failures, last_error, and last_poll_attempt_at together, and use the daemon
component supervisor for authoritative task-liveness/restart decisions.
"local". Unattributed and unscoped. Set KHIVE_ACTOR first.self_send=true to mask an identity collapse. It is only for an intentional note to
yourself; distinct agents need distinct configured actor identities.to="lambda:<name>" directly.properties to find the sender. from / subject / preview are top-level.comm.send with a thread_id for a follow-up. Use comm.reply — it threads, prefixes,
and routes for you.comm.delivered with the
surfaced full outbound_id first; otherwise a committed inbound sibling can
become a duplicate.comm.health.channels[].stalled as a supervisor verdict. It is a persisted
schedule heuristic; correlate it with failure and timestamp fields.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-coordination, messaging, khive-comm, inbox-triage, thread-reply
npx claudepluginhub ohdearquant/khive --plugin khive11 skills in this plugin
/brainTune adaptive recall with brain profilesTune adaptive recall with brain profiles — inspect profiles and posteriors, manage lifecycle (activate/deactivate/archive/reset), emit feedback (brain.feedback / brain.auto_feedback) to shift recall weights, and wire actors to profiles via bind/unbind/resolve/bindings. Use whenever recall behavior feels off, a new tuning profile is needed, or you need to confirm which profile serves a given caller./digestIngest research material into the knowledge graph — papers, concepts, implementations. Extract entities, link them, verify density./expandSelf-expansion. Take a strategic gap and grow the graph to close it — create the missing entity, draft the project proposal, resolve the deferred decision, bridge the disconnected domains.Other plugins' skills for the same job