By leaf76
Multi-session collaboration for Claude Code - prevents conflicts, persists context, and protects important files
Initialize session collaboration for multi-session conflict prevention. Use this at the start of a conversation or when you need to register a new collaboration session.
Mark a plan as completed and archive it. Use this when you've finished implementing all items in a plan document.
Register a plan document for protection. Use this after creating a plan file to ensure it won't be accidentally deleted.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A Model Context Protocol (MCP) server for Claude Code that prevents conflicts when multiple sessions work on the same codebase simultaneously.
When using parallel Claude Code sessions or the parallel-dev workflow:
Root cause: No synchronization mechanism for "work intent" between sessions.
Session Collab MCP provides a Work-in-Progress (WIP) Registry that allows sessions to:
Install as a Claude Code plugin for automatic MCP server setup, hooks, and skills:
# Add marketplace
/plugin marketplace add leaf76/session-collab-mcp
# Install plugin
/plugin install session-collab@session-collab-plugins
The plugin includes:
collab-start for full initialization/session-collab:status and /session-collab:endAdd to your ~/.claude.json:
{
"mcpServers": {
"session-collab": {
"command": "npx",
"args": ["-y", "session-collab-mcp@latest"]
}
}
}
npm install -g session-collab-mcp
# Start HTTP server
session-collab-http --host 127.0.0.1 --port 8765
# CLI wrapper (HTTP client)
session-collab health
session-collab tools
session-collab call --name collab_session_start --args '{"project_root":"/repo","name":"demo"}'
Once installed, Claude will:
Context persistence that survives context compaction:
Guard critical files from accidental changes:
Configure behavior with collab_config:
| Mode | Behavior |
|---|---|
strict | Always ask user, never bypass |
smart (default) | Auto-proceed with safe content, ask for blocked |
bypass | Proceed despite conflicts (warn only) |
| Option | Default | Description |
|---|---|---|
auto_release_immediate | false | Auto-release claims after Edit/Write |
auto_release_stale | false | Auto-release claims exceeding threshold |
stale_threshold_hours | 2 | Hours before claim is considered stale |
auto_release_delay_minutes | 5 | Grace period for stale release |
| Tool | Purpose |
|---|---|
collab_session_start | Register a new session |
collab_session_end | End session and release all claims |
collab_session_list | List active sessions |
collab_config | Configure session behavior |
collab_status | Get session status summary |
| Tool | Actions |
|---|---|
collab_claim | create, check, release, list (check: exclude_self defaults to true) |
| Tool | Purpose |
|---|---|
collab_memory_save | Save context (upsert) |
collab_memory_recall | Recall context |
collab_memory_clear | Clear memories |
| Tool | Actions |
|---|---|
collab_protect | register, check, list |
| Tool | Purpose |
|---|---|
collab_status | Unified session status |
Core endpoints map 1:1 to MCP tools:
npx claudepluginhub leaf76/session-collab-mcp --plugin session-collabInter-session communication for Claude Code — session registry, messaging, and coordination
Let local Claude Code sessions talk to each other in natural language.
Sync Claude Code sessions across devices with encrypted cloud storage
Peer-to-peer communication between Claude Code sessions on the same machine
Coordinate multiple AI agents working on the same codebase. Prevents merge conflicts before code is written.
(Alpha) Persistent memory, architectural decisions, and safety guardrails for Claude Code. Your agent starts every session with full project context — stack, decisions, patterns, safety rules, and a handoff from the previous session.