multi-session-coordination
Skill0 starsChanged 4 months agoMITView on GitHub
Use when several independent Claude Code sessions are working on related areas of the same project and someone has to hold the whole picture — discovering what is in flight, detecting incompatibilities beyond merge conflicts, assigning ownership of shared contracts, sequencing the work, and planning integration. Not for ordinary subagent delegation within one session.
2 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- P2ppyJack/session-coordtheir own version, first seen Nov 1, 2026
- ArcanEdge-AI/coding-agent-playbook-codexedited, first seen Aug 17, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- ArcanEdge-AI/coding-agent-playbook-codex★ 322% same
Wrote their own version · 1
- P2ppyJack/session-coord★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository28 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- aws-local-preflightSkill
- feature-branch-lifecycleSkill
- handoffSkill
- legacy-path-retirementSkill
- local-ci-preflightSkill
- multi-role-repo-reviewSkill
- platform-documentationSkill
- production-api-integrationSkill
- production-architecture-reviewSkill
- production-code-qualitySkill
- production-database-integritySkill
- production-devops-releaseSkill
- production-documentation-onboardingSkill
- production-pass-orchestratorSkill
- production-performance-reviewSkill
- production-readiness-reportSkill
- production-reliability-observabilitySkill
- production-security-reviewSkill
- production-testing-qaSkill
- production-ux-accessibilitySkill
- reference-doc-routingSkill
- senior-code-reviewSkill
- session-cleanupSkill
- subagent-orchestrationSkill
- task-graph-orchestrationSkill
- technical-debt-auditorSkill
- worktree-lifecycleSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 13 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Do not: use it when only one implementation session is active, the task is ordinary subagent delegation, the work spans unrelated …
- Distinctive: line 47
If you cannot rename the session yourself, return the exact name and command rather than claiming it happened.
- Distinctive: line 55
Do not ask the user for anything you can detect reliably.
- Very specific: line 61
Start with reachable sessions via ListAgents where messaging is enabled, then sessions active in the previous 72 hours where history is …
- Distinctive: line 67
Ask for a specific session name only when discovery is materially incomplete *and* the gap affects a safe integration decision.
- Distinctive: line 78
Never claim you reviewed a session when you inspected only its branch, PR, or diff.
- Distinctive: line 84
Keep confirmed facts visibly separate from inference.
- Distinctive: line 102
Prefer the smallest safe coordination change.
- Distinctive: line 106
Keep instruction authority separate from evidence of current behavior:
- Distinctive: line 108
Follow the host's instruction hierarchy, then the relevant scope and specificity within the same authority level — the applicable CLAUDE.md …
- Distinctive: line 110
Check established shared contracts and their supported consumers.
- Distinctive: line 113
Ask the user only when the remaining decision materially affects architecture, behavior, data, safety, release timing, or user-visible …
- Distinctive: line 127
Inspect the combined result yourself: before declaring the work compatible.
- Distinctive: line 146
Stop and report the limitation when the project directory or repository cannot be identified safely, relevant sessions are inaccessible and …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Multi-Session Coordination
Subagents report to you. Independent sessions do not. Each has its own history, branch, assumptions, and sense of ownership, and nobody is holding the whole picture until you do.
The failure this skill exists to prevent is not a merge conflict. It is two sessions each doing correct work against different assumptions about a shared contract, both passing their own tests, and Git merging them cleanly into something broken.
Detailed rules: references/multi-session-coordination.md, packaged with this skill. Worktree rules: the worktree-lifecycle skill. Branch topology, promotion, and temporary-branch cleanup: the feature-branch-lifecycle skill.
Use this when
- Multiple Claude Code sessions are active on the same project or repository.
- Several features are being implemented concurrently.
- Branches or worktrees may overlap.
- Shared APIs, schemas, types, components, dependencies, or user flows are changing.
- One session's work could invalidate another's assumptions.
- The user asks you to coordinate, reconcile, integrate, or review parallel work.
Do not use it when only one implementation session is active, the task is ordinary subagent delegation, the work spans unrelated repositories, the user wants a review of one finished change, or the evidence is too thin to compare anything meaningfully.
Ask the other sessions before inferring
Where cross-session messaging is enabled, this beats reconstruction from artifacts:
ListAgentsenumerates the sessions and agents you can reach, labeled by kind.SendMessagesends to one by name — so you can ask what a session owns and what it assumed, instead of guessing from its commits.
Two caveats: crossSessionInbound can restrict delivery, and some session kinds receive without being able to reply. Check what a row supports rather than assuming a round trip. When messaging is unavailable, use artifact-based discovery and label the evidence accordingly.
Session naming
Project - Three-to-Four-Word DescriptionDetect the project from the directory or repository; derive the description from the primary objective. No literal square brackets. Do not ask the user for a name when the project and task are clear, and do not rename existing sessions unless asked for cleanup.
claude -n "Project - Three-to-Four-Word Description" # at launch
/rename Project - Three-to-Four-Word Description # mid-sessionIf you cannot rename the session yourself, return the exact name and command rather than claiming it happened.
Workflow
1. Resolve the operating context
Identify the project directory, repository, default branch, active branch, worktree, the applicable CLAUDE.md and authoritative docs, and the Claude Code home if session-history inspection is needed and permitted.
Do not ask the user for anything you can detect reliably.
Classify every relevant checkout as host-managed primary, user-managed existing, or task-created auxiliary, and record ownership and permits where known. Never infer cleanup authority from age, inactivity, or a clean status.
2. Discover what is in flight
Start with reachable sessions via ListAgents where messaging is enabled, then sessions active in the previous 72 hours where history is accessible.
Then inspect: sessions for this project directory, sessions in other worktrees of the same repository, active branches, worktrees, open pull requests, unmerged commits, and any active-work records under .claude/coordination/active-work/.
Repository state outranks session recency. Include older work when evidence shows it is still unmerged, incomplete, blocked, contract-relevant, or otherwise active. Exclude work that is unrelated, fully merged and no longer decision-relevant, abandoned, or exploratory and never adopted.
Ask for a specific session name only when discovery is materially incomplete and the gap affects a safe integration decision.
3. Label every piece of evidence
- Directly reviewed session — you inspected the session or transcript.
- Direct session report — you asked it and it answered.
- Session-metadata inference — identified from name, activity, branch, or worktree metadata only.
- Repository-inferred work — identified from branches, commits, diffs, PRs, tests, files.
- User-supplied — the user told you.
- Potentially missing — evidence suggests work you cannot reach.
Never claim you reviewed a session when you inspected only its branch, PR, or diff. Coordination advice built on unlabeled inference is how two sessions get told they are compatible when nobody checked.
4. Build the shared change map
Per work item: session name and identifier, evidence label, objective, status, last activity, project directory, branch or worktree, worktree class and permit, branch role and its permitted merge target, promotion state, cleanup eligibility, files and modules affected, APIs/events/routes/interfaces affected, schemas and migrations affected, dependencies changed, upstream artifacts or decisions it needs, tests affected, verification gates, assumptions, unmet dependencies and blockers, open decisions, integration status.
Keep confirmed facts visibly separate from inference.
5. Detect conflicts — all seven kinds
Merge conflicts are the easiest to find and the least dangerous.
- File and ownership — two sessions editing one file; two owning a module; a refactor reaching into another's area.
- Architecture — competing abstractions for one responsibility; duplicate components, utilities, or services built for the same job; incompatible state management; independent redesigns of a shared subsystem.
- Contract — incompatible request/response shapes; conflicting shared types; disagreeing event payloads; one session on an outdated contract.
- Data — incompatible migrations; conflicting schema assumptions; duplicate persistence models; an unexpected destructive change.
- Dependency — incompatible versions; two libraries for one job; changed build or runtime requirements.
- Behavioral — one feature changes a flow another relies on; auth behavior disagrees; two features work alone and fail together.
- Validation — tests encoding incompatible assumptions; invalidated fixtures or snapshots; nothing covering the combined workflow.
6. Assign ownership and sequence
State explicitly: one owner per shared file, contract, schema, or coupled area; who continues independently; who pauses; what must finish first; who rebases or moves to a separate worktree; which branches converge through one feature integration branch before promotion; which contract is settled before implementation continues; who adapts to an established interface; the integration checkpoints; and the remaining chain of blocking work.
Prefer the smallest safe coordination change. Never allow independent redesigns of the same shared subsystem. Never say only "coordinate with the other session."
7. Resolve disagreements: authority first, then evidence
Keep instruction authority separate from evidence of current behavior:
- Follow the host's instruction hierarchy, then the relevant scope and specificity within the same authority level — the applicable
CLAUDE.mdfiles and authoritative project docs included. Preserve explicit user decisions within that hierarchy. - Establish current behavior from code, tests, schemas, configuration, and runtime observations. These facts show what is true now; they do not override an authorized target requirement.
- Check established shared contracts and their supported consumers. Report a conflict with the requested change instead of silently preserving or discarding the contract.
- Choose the smallest safe change that satisfies the governing requirements and the compatibility they require.
Ask the user only when the remaining decision materially affects architecture, behavior, data, safety, release timing, or user-visible output.
8. Write copy-ready instructions per session
What may continue; what must pause; owned paths; prohibited paths; required contracts; upstream dependencies; compatibility changes; validation to run; evidence to return; the condition for integration-ready.
Include the resume target when useful: claude --resume "Session Name".
9. Define integration verification
Match the combined blast radius: targeted E2E tests per feature, E2E coverage of the combined user flows and shared contracts, schema and migration checks, typechecking, build validation, and a final combined diff review.
Retain E2E behavioral tests only. Every unit test any owner created is temporary, whatever its purpose; none remains in the completed change. Require each owner to remove its unit tests and their exclusive support code after passing E2E coverage carries their still-required assertions, failure and boundary cases included. Existing non-E2E suites migrate only within authorized scope, and required repository gates stay.
Inspect the combined result yourself before declaring the work compatible.
Reconcile every task-created auxiliary worktree before the final response — removed after verified gates, or preserved with exact ownership and blocker. Do not defer to scheduled automation, and never remove a host-managed, user-managed, or other session's worktree.
Output
- Executive summary
- Discovery coverage
- Active session and work summary
- Shared change map
- Conflict and overlap matrix
- Ranked risks: Critical / High / Medium / Low
- Recommended implementation order
- Copy-ready instructions per session
- Integration verification checklist
- Open decisions requiring user approval
Stop conditions
Stop and report the limitation when the project directory or repository cannot be identified safely, relevant sessions are inaccessible and repository evidence cannot compensate, a destructive or production-affecting change needs approval, or two plausible resolutions materially differ and primary evidence does not settle it.
Do not implement code unless the user explicitly asks. This skill's default role is coordination, conflict detection, sequencing, and integration planning.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

