multi-session-coordination
Skill3 starsChanged 3 months agoMITView on GitHub
Use when multiple independent Codex threads are working on related areas of the same project and need conflict detection, ownership, sequencing, and integration guidance.
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-claude-codeedited, first seen Jul 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
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 repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- aws-local-preflightSkill
- design-taste-frontendSkill
- feature-branch-lifecycleSkill
- handoffSkill
- humanizerSkill
- impeccableSkill
- 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
- taste-new-websiteSkill
- taste-redesign-websiteSkill
- technical-debt-auditorSkill
- worktree-lifecycleSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 16 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 10
Use this skill when:
- Distinctive: line 19
Do not use this skill when:
- Distinctive: line 21
only one implementation thread is active
- Very specific: line 28
Use the worktree-lifecycle skill when any participating task proposes, owns, integrates, or cleans an auxiliary worktree.
- Very specific: line 29
Use the feature-branch-lifecycle skill when participating development branches must converge through one feature integration branch or when …
- Distinctive: line 33
When creating a new project thread, title it:
- Distinctive: line 56
Do not ask the user for values that can be detected reliably from the environment or repository.
- Distinctive: line 62
Start with threads active during the previous 72 hours when the environment supports thread discovery.
- Distinctive: line 76
Ask for specific thread identifiers only when automatic discovery is unavailable or materially incomplete and the missing context affects a …
- Distinctive: line 87
Do not claim direct review when only repository evidence was inspected.
- Distinctive: line 130
Do not stop at Git merge-conflict detection.
- Distinctive: line 145
Prefer the smallest safe coordination change.
- Distinctive: line 151
Follow the host's instruction hierarchy, then relevant scope and specificity within the same authority level.
- Distinctive: line 153
Check established shared contracts and supported consumers.
- Distinctive: line 156
Ask the user only when a remaining decision materially affects architecture, behavior, data, safety, release timing, or user-visible output.
- Distinctive: line 173
Do not use vague instructions such as “coordinate with the other thread.”
- Distinctive: line 209
Stop and report the limitation when:
- Distinctive: line 216
Do not implement code unless the user explicitly requests implementation.
≈ “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 Skill
The main agent is the integration coordinator. Independent Codex threads may contribute work, but the main agent owns architecture, compatibility decisions, sequencing, validation, and the final report.
Use this skill when:
- multiple Codex threads are active in 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 thread's work could invalidate another thread's assumptions
- the user asks to coordinate, reconcile, integrate, or review parallel work
Do not use this skill when:
- only one implementation thread is active
- the task is ordinary bounded subagent delegation
- the work is unrelated across repositories
- the user only wants a review of one completed change
- available evidence is too incomplete to compare the work meaningfully
Consult references/multi-session-coordination.md for the detailed coordination rules.
Use the worktree-lifecycle skill when any participating task proposes, owns, integrates, or cleans an auxiliary worktree.
Use the feature-branch-lifecycle skill when participating development branches must converge through one feature integration branch or when promotion and temporary-branch cleanup are in scope.
Project Thread Naming
When creating a new project thread, title it:
Project - Three-to-Four-Word DescriptionDetect the project name from the current project or repository and derive the description from the thread's primary objective. Use clear title-style wording, omit literal square brackets, and do not ask the user for a title when the project and task are already clear.
Apply this standard to newly created threads. Do not rename existing threads automatically unless the user requests cleanup.
Workflow
1. Resolve the operating context
Identify the current:
- project
- repository
- default branch
- active branch
- worktrees when available
- applicable repository instructions and authoritative project docs
Do not ask the user for values that can be detected reliably from the environment or repository.
Classify relevant checkouts as host-managed primary, user-managed existing, or task-created auxiliary. Record exact ownership and permits when known. Never infer cleanup authority from age, inactivity, or clean status.
2. Discover active work
Start with threads active during the previous 72 hours when the environment supports thread discovery.
Then inspect:
- active branches
- worktrees
- open pull requests
- unmerged commits
- active-work records under
.codex/coordination/active-work/when present
Include older work when repository evidence shows that it remains unmerged, incomplete, blocked, contract-relevant, or otherwise active.
Repository state takes precedence over thread recency.
Ask for specific thread identifiers only when automatic discovery is unavailable or materially incomplete and the missing context affects a safe integration decision.
3. Classify discovery coverage
Label every work item as:
- directly reviewed thread
- repository-inferred work
- user-supplied thread
- potentially missing work
Do not claim direct review when only repository evidence was inspected.
4. Build the shared change map
For each relevant work item, capture:
- thread title and identifier when available
- objective
- status
- last activity
- branch or worktree
- files and modules affected
- APIs, events, routes, and shared interfaces affected
- schemas, migrations, and persistence affected
- software or service dependencies added or changed
- accepted upstream work artifacts or decisions required before the item can begin or integrate
- tests affected
- handoff and integration verification gates
- assumptions
- unmet upstream dependencies and other blockers
- open decisions
- integration status
- branch role, promotion target, and cleanup eligibility when the feature-branch lifecycle applies
- worktree lifecycle status and final disposition when the worktree is task-created
Separate confirmed facts from inference.
5. Detect conflicts
Check for:
- overlapping file ownership
- incompatible architectural decisions
- conflicting API or event contracts
- conflicting shared types
- incompatible schemas or migrations
- dependency-version conflicts
- authentication or authorization inconsistencies
- user-flow and lifecycle conflicts
- duplicate utilities, components, or services
- tests based on incompatible assumptions
- combined behavior that fails even when isolated changes pass
Do not stop at Git merge-conflict detection.
6. Establish ownership and sequence
Define:
- one owner for each shared file, contract, schema, or tightly coupled area
- which work may continue independently
- which work must pause
- which dependency must complete first
- which shared contract must be fixed before implementation continues
- which thread must adapt to an established interface
- required integration checkpoints
- the remaining chain of blocking work that controls integration completion
Prefer the smallest safe coordination change. Do not allow independent redesigns of the same shared subsystem.
7. Resolve disagreements with primary evidence
Separate instruction authority from evidence of current behavior:
- Follow the host's instruction hierarchy, then relevant scope and specificity within the same authority level. Preserve explicit user decisions within that hierarchy.
- Establish current behavior from code, tests, schemas, configuration, and runtime observations. These facts do not override an authorized target requirement.
- Check established shared contracts and supported consumers. Report any conflict with the requested change instead of silently preserving or discarding the contract.
- Choose the smallest safe change that satisfies the governing requirements and required compatibility.
Ask the user only when a remaining decision materially affects architecture, behavior, data, safety, release timing, or user-visible output.
8. Produce copy-ready thread instructions
For each active thread, state:
- what may continue
- what must pause
- owned paths or systems
- prohibited paths or systems
- required contracts
- upstream dependencies
- compatibility changes
- validation to run
- evidence to return
- integration-ready completion condition
Do not use vague instructions such as “coordinate with the other thread.”
9. Define integration verification
Require validation appropriate to the combined blast radius, including when relevant:
- targeted E2E tests for each feature
- E2E coverage of combined user flows and shared contracts
- schema or migration checks
- typechecking
- build validation
- final combined diff review
Retain E2E behavioral tests only. Every unit test created by any owner is temporary, regardless of purpose; none may remain in a completed change. Require each owner to remove them and exclusively used support code after corresponding E2E assertions pass, preserving failure and boundary coverage. Keep migration of existing non-E2E suites within authorized scope and preserve required repository gates.
The main agent must inspect the combined result before declaring the work compatible.
The owning root must also reconcile every task-created auxiliary worktree before its final response: remove it after verified integration and cleanup gates, or preserve it with exact ownership and blocker evidence. Do not defer task-owned cleanup to scheduled automation, and do not remove another thread's or the user's existing worktree.
Output Format
Return:
- Executive summary
- Discovery coverage
- Active work summary
- Shared change map
- Conflict and overlap matrix
- Ranked risks: Critical, High, Medium, Low
- Recommended implementation order
- Copy-ready instructions for each thread
- Integration verification checklist
- Open decisions requiring user approval
Stop Conditions
Stop and report the limitation when:
- the current project or repository cannot be identified safely
- relevant work is inaccessible and repository evidence cannot compensate
- destructive, production-impacting, or sensitive changes require approval
- two plausible resolutions materially affect architecture or behavior and primary evidence does not resolve them
Do not implement code unless the user explicitly requests implementation. The default role of this skill 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.
Reviews can't be read right now.
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.

