/cc-dm:cc-dmfrom cc-dm
Sends and receives direct messages between active Claude Code sessions on the same machine. Coordinates parallel sessions without copy-pasting context.
Ships in cc-dm. 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.
cc-dm is a peer-to-peer message bus for Claude Code sessions running on the same machine. Use it to coordinate between parallel sessions without copy-pasting context manually.
Session registration is handled automatically from environment variables (CC_DM_SESSION_NAME, CC_DM_SESSION_ROLE, CC_DM_SESSION_PROJECT). Check the MCP instructions to see if name, role, and project are already configured:
When the user says "dm [session] [message]" or "tell [session] [message]":
Use the dm tool. Example: dm(to="backend", content="auth spec is ready") With metadata: dm(to="backend", content="deploy broken", priority="urgent", message_type="status")
Optional metadata fields on dm and broadcast:
These appear as attributes on the tag the receiver sees.
If this session has a project tag set, DMs can only reach sessions in the same project. A DM to a session outside the project will return an error. The message is delivered to the target session within 500ms. You do not need to wait for a reply — continue your work.
Incoming messages arrive as a event in your context:
auth spec is readyWhen you receive a event:
When the user says "broadcast [message]" or "tell all sessions [message]":
Use the broadcast tool. Example: broadcast(content="wrapping up in 10 minutes")
If this session has a project tag set, both broadcasts and DMs are automatically scoped to sessions with the same project tag. Sessions without a project tag can broadcast and DM any active session.
When the user asks "who is active" or "who is online" or "list sessions":
Use the who tool. It returns all sessions with active heartbeats on this machine.
When /compact or auto-compaction occurs, you may lose awareness of your
session identity. Your MCP server process survives compaction — the session
ID, DB registration, and heartbeat all persist. Every tool response includes
an _identity field with your current name, role, and project, so the first
cc-dm tool call after compaction restores your identity. Do NOT re-register.
If you are unsure of your identity, call the who tool and match your
session ID (from the MCP instructions) against the results.
If this session has CC_DM_PERMISSION_RELAY=1 enabled, tool approval
requests are relayed to other sessions instead of showing a local dialog.
When you receive a permission request from another session, it will look like:
[Permission Request] Session "worker" wants to use Bash: Execute a shell command Request ID: abcde
Reply with "yes abcde" to approve or "no abcde" to deny.
To approve or deny, use the dm tool with the exact verdict format: dm(to="worker", content="yes abcde") — to approve dm(to="worker", content="no abcde") — to deny
DMs and broadcasts may be restricted by env var configuration:
If messages aren't arriving:
who — verify your session is listed and last_seen is recentregister to re-registerregister to pick a new name.If you get "not configured" after compaction, call who to recover your
identity.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/install-streamInstall or check cc-dm-stream, the live TUI viewer for cc-dm messages. Use when the user asks to install stream, install cc-dm-stream, set up stream viewer, get cc-dm-stream, or check if cc-dm-stream is installed./registerRegister this session with cc-dm — sets your session name, role, and optional project tag for project-scoped messaging. Auto-invoked on first interaction if session name or role is missing. Use when the user asks to register, set name, change role, or set/change project.npx claudepluginhub akramdotsh/cc-dm --plugin cc-dmOther plugins' skills for the same job