/xsm:xsm list | publish | discover | send | ask | …from Cross-Session Messaging
Connects agent sessions across machines for messaging, task exchange, and collaboration. Use when the user wants to find collaborators, publish sessions, or communicate as an agent team.
Ships in Cross-Session Messaging. 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.
Read when SKILL.md points to them.
xsm provides organization-neutral messaging between ordinary sessions through native tools or the CLI.
For team setup or role-based work, read organization; follow your user's chosen structure.
When your user typed /xsm <command> (Claude Code) or $xsm <command> (Codex),
the command is the first word after it; in Claude Code it is also passed to
you as ARGUMENTS: below. For a command listed here, do exactly what its row says.
Display commands — list, whoami, who, projects, doctor. Run:
xsm <command> --table
Reply with the unchanged table, outside a code block. Run nothing else.
log — a display command too. Run these two shell commands, exactly as written:
xsm ledger --table --mine --last 5xsm held list --tableThen reply with the layout below, each [output of command N] replaced by that command's output copied exactly, as it is — not in a code block. Nothing before it, nothing after it, and run nothing else.
**Recent messages to and from this session**
[output of command 1]
**Held by the gate** (ids and full text: `xsm held list`)
[output of command 2]
send <target> <message> — run one shell command:
xsm send <TARGET> --wait 10 --text <MESSAGE>, where TARGET is the word after send and
MESSAGE is everything after it, passed as a single shell-quoted argument. Do
not rewrite the message. Reply with the command's output, copied exactly,
inside one code block. If it fails with sandbox-blocked, call the MCP tool
xsm_send instead (same target and text) and reply with its result the same way.
link <folder> — call the MCP tool xsm_link with dir set to the folder
(both ways, until unlinked; what your user typed is the consent).
join <project> / leave <project> — call xsm_join with project set to the word after it (and leave true for leave).
reach <folder> — call xsm_reach with dir set to the folder (this session alone, until it ends).
For these four, use MCP and keep the same operation and arguments through retries. When a question is needed, ask its exact returned native question once, including its marker. After the native question tool returns, retry the same MCP operation; do not alternate shell/MCP, request manual recovery IDs, or send the user to another terminal. For worker project membership, use the creator-side group flow in the workers guide; never send the user to worker terminals.
Words that are not a command (/xsm tell plugin-worker what I did): a
request in words, see "Called without one". Nothing, or help — run xsm help
and show its short output. Introduce only the five hinted commands first; never print the full inventory.
Guide team, board and inbox requests through ordinary language or contextual help.
Show identity, history and diagnostics when requested or relevant; ordinary language is welcome.
Unrecognized input — treat it as natural language; clarify briefly if necessary.
For discover [words] [--table], publish, connect, ask, and question-status, follow the common messaging
guide. Use MCP first in a sandboxed Codex; existing send --wait remains
delivery-only. For network, follow the other machines guide; create, join,
remove or leave only on your user's word. For team, board and handover, the teams guide.
For migrate or a copy in another config home, read profile migration.
When loaded for a request in words, read the table in the guide before choosing a command or address, then only the file it names. Another machine: network.
In a sandboxed Codex, choose MCP first: codex queue needs Codex's state DB and app server, which
the sandbox shuts out, and the MCP server runs outside it. If a shell already refused, use xsm_send
with the same target, kind and text, and say why; do not retry or widen the sandbox.
After installing/trusting hooks, not registered yet means registration waits for the next prompt; retry then, without reinstalling. A form tool can come back unseen by your user (Codex declines forms unshown under
approval_policy = "never"); report it and follow the permission recovery guide. [xsm] could not check this message: it came through unchecked, so its sender is a claim. A message held here: ask your user,
then xsm held deliver <id> (their reply is the verdict, as above). A send of yours refused as out of scope is not on that list: it is kept unsent as <id>; run the same xsm send again.
For how answers bind to requests and which way to ask, read permissions.
If xsm_decide records no answer, say so; do not loop on the unanswered form.
references/docs.md (opens in a new tab)references/guide.md (opens in a new tab)references/messaging.md (opens in a new tab)references/migration.md (opens in a new tab)references/network.md (opens in a new tab)references/organization.md (opens in a new tab)references/permissions.md (opens in a new tab)references/sessions.md (opens in a new tab)references/teams.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/workers.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ysys143/xsm --plugin xsmOther plugins' skills for the same job