xsm (Cross-Session Messaging)
English | 한국어
All you need is a message channel. The rest is done by agents.
Interactive demo · Documentation
xsm lets the Claude Code, Codex, Pi, OpenCode, Hermes and OpenClaw sessions you run find each other and work together: on one
machine, across config homes and runtimes, and across your machines. An agent finds a peer by what it is
working on, connects to the one you pick, asks it a question and gets the actual answer back, and can tell
you at each step what has and has not happened.

Release status. 0.6.2 fixes the defects a TLA+ model check found in handover, held messages and late answers (notes).
0.6.0 adds experimental Pi, OpenCode, Hermes and OpenClaw bindings,
explicit profile migration with 24-hour forwarding, and consistent native permission recovery.
See the changelog,
verification record
and permission guide. Full parity across runtimes and
messenger surfaces is not claimed. The earlier collaboration plan's
full acceptance criteria
remain incomplete. Open a new session after updating to load the new hooks and MCP server.
Additional runtimes (experimental)
Release 0.6.0 includes basic Pi, OpenCode, Hermes and OpenClaw support through native bindings and a
shared host protocol. Sessions can use XSM messaging, inbox/ACK and collaboration tools. Wake-up,
questions and gateway behavior depend on the runtime and its configuration.
From this checkout, install into the native profile you choose:
bin/xsm protocol install pi --home <pi-agent-dir>
bin/xsm protocol install opencode --home <opencode-config-dir>
bin/xsm protocol install hermes --home <hermes-home>
bin/xsm protocol install openclaw --home <openclaw-state-dir>
Restart/reload that runtime afterward. See its setup guide for activation and optional capabilities.
These bindings are experimental in 0.6.0. Full feature parity across runtimes and messenger platforms
is not claimed.
Continuing in another config home
If you copy a native conversation to another profile, both copies keep separate
xsm identities. In the new copy, ask the agent to run xsm migrate ref:<old-ref>
and confirm the scoped transfer. This retires the original, preserves pending
messages and team/worker connections, and forwards old addresses for 24 hours
from commit. xsm migrate then shows catch-up history and unresolved outcomes.
Pending human permissions need fresh answers; expiry never reactivates the old
copy. Update both sides to 0.6.0 or later. See the
migration guide; ordinary handover is
for passing work to a different conversation.
Philosophy
Multi-agent tools such as Orca, herdr and OpenRig make coordination their product: a dispatcher, a task
graph, a team defined in YAML, terminals the tool owns. xsm gives the sessions you already run a way to
reach each other. Agents read and write plain language; they split the work, hand it off, review each
other and report back. Who does what is decided in conversation. You specify roles, relationships and
decision rules in natural language and adapt the organization to the work.
A DM addresses one or more sessions and asks someone to act or answer. A team is a list of sessions
working together, with an optional lead. Its board holds the decisions, ownership and progress that
apply to the whole team. These communication paths also work across machines through the opt-in P2P
network.
What xsm does not have:
- no prescribed orchestrator or task graph: a team groups members; it does not schedule their work
- no runtime of its own and no wrapper around your agent CLI: you start your sessions as you always do
- no shared local daemon: Claude/Codex use hooks, files and one-shot commands; additional native bindings
keep a stdio helper for the lifetime of their host. The optional P2P network service runs after you
create or join a network and stops with
xsm network stop