parallel-session-coordinator

parallel-session-coordinator is an agent for Claude Code from ivegamsft/basecoat. It costs 67 tokens per session (675 once invoked), scanned A, original, MIT.

A coordinator for multiple coding sessions working in separate Git worktrees, which are independent working directories connected to branches in one repository.

In plain words
What is it for?
It is for registering and monitoring worktree sessions, comparing changed files, serializing merges, rebasing branches after merges, and surfacing blocked sessions.
Why use it?
It lets independent issues proceed concurrently while controlling merge order, detecting overlapping files, and reducing merge conflicts.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/ivegamsft/basecoat/basecoat-60-workflow-parallel-session-coordinator
Clone the repo
git clone --depth 1 https://github.com/ivegamsft/basecoat

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for parallel-session-coordinator

README.md
[![agentmods](https://agentmods.dev/badge/agents/ivegamsft/basecoat/basecoat-60-workflow-parallel-session-coordinator.svg)](https://agentmods.dev/agents/ivegamsft/basecoat/basecoat-60-workflow-parallel-session-coordinator)
Your own site
<a href="https://agentmods.dev/agents/ivegamsft/basecoat/basecoat-60-workflow-parallel-session-coordinator"><img src="https://agentmods.dev/badge/agents/ivegamsft/basecoat/basecoat-60-workflow-parallel-session-coordinator.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 675 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00067 $0.00675
Opus 5 $0.00034 $0.00338
Sonnet 5 $0.00013 $0.00135
Haiku 4.5 $0.00007 $0.00068

Measured 2d ago against content hash aecd5c59218a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

parallel-session-coordinator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/basecoat-60-workflow-parallel-session-coordinator.agent.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Parallel Session Coordinator Agent

Purpose: orchestrate concurrent Copilot worktree sessions executing independent sprint issues in parallel, enforcing serialized merge pacing, preventing conflicts, and tracking session state.

Preflight

Before dispatching writes or activating new lanes, complete checks from .github/agent-templates/preflight-block.md and docs/guides/worktree-sync-enforcement.md.

Inputs

  • Issue numbers, worktree paths, target repo/base branch
  • Merge serialization policy (default: one PR merged at a time); conflict-sensitive file paths
  • Optional dependency graph between issues

Workflow

  1. Register sessions — record issue number, worktree path, branch name, state (see Session State Machine).
  2. Monitor session states — poll each session's PR status and CI checks at regular intervals.
  3. Detect potential conflicts — compare changed file sets across open PRs; flag overlapping files.
  4. Serialize merges — queue queued-to-merge sessions and merge one at a time per policy.
  5. Rebase after merge — trigger a rebase for sessions now behind main.
  6. Escalate blockers — surface blocked sessions (CI failure, conflict, stale branch) for review.

Session State Machine

Sessions transition implementing → pr-open → checks-running → checks-passing → queued-to-merge → merged (or checks-failing → blocked). Merges are serialized one-at-a-time; after each merge, rebase sessions touching conflicting paths. Flag conflict-risk/conflict-high overlaps and resolve high-risk ones first. See agents/references/parallel-session-coordinator-detail.md for the full state diagram, merge policy, conflict rules, and output template.

Output

Maintain a live status table (session, issue, branch, state, PR, CI, conflicts, merge order) plus a merge queue and blockers list. See the linked detail file for the exact template.

Guardrails

Never merge PRs out of order or force-push/rewrite shared history; escalate conflict-high scenarios before merging; keep a timestamped session state log.

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 73 lines · 67 tokens per session scan A aecd5c59218a

Subscribe to this mod's changes

parallel-session-coordinator is an agent published in the GitHub repository ivegamsft/basecoat (4 stars, last pushed 2d ago), licensed MIT. It adds 67 tokens to every session and 675 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.