- Home
- Skills
- Agents & Orchestration
- Parallel Worktree Orchestrator
More screenshots
Works with the AI Agents you already use
Parallel Worktree Orchestrator
Run parallel AI coding lanes in isolated Git worktrees with exclusive file-ownership locks, dry-run conflict gates, and token-bounded handoff briefs.
$12
Parallel Worktree Orchestrator
Example session with this skill installed
Split our sprint work into two parallel coding lanes (api-auth owning src/api,tests/api and ui-table owning src/ui,tests/ui) plus one read-only reviewer lane inspecting src/api. Enforce a 3-lane cap, generate a token-bounded handoff brief, and run the zero-mutation merge gate before merging ui-table into main.
- Read your context and instructions
- Compiled the parallel worktree orchestrator
Parallel Lane Allocation & Pre-Merge Gate Summary
1. Isolated Worktree Lanes Created (scripts/worktree-lane.mjs)
| Lane | Role | Branch | Exclusive Write Scope | Status |
|---|---|---|---|---|
api-auth | developer | lane/api-auth | src/api, tests/api | LANE_CREATED (exit 0) |
ui-table | developer | lane/ui-table | src/ui, tests/ui | LANE_CREATED (exit 0) |
audit-auth | reviewer (read-only) | lane/audit-auth | src/api (no write lock) | LANE_CREATED (exit 0) |
Collision Guard Verified: Attempting to spawn a duplicate writable lane on src/api/users.js was blocked immediately (exit 2, PATH_OWNERSHIP_CONFLICT).
Concurrency Cap Verified: Active secondary lanes 3/3; spawning a 4th lane returns exit 2 (MAX_ACTIVE_LANES_EXCEEDED).
2. Token-Bounded Handoff Brief (scripts/context-brief.mjs)
{
"status": "BRIEF_PACKED",
"branch": "main",
"activeLanes": 3,
"budgetChars": 2400,
"actualChars": 812,
"estimatedTokens": 203,
"briefHash": "4e9b2f7c1a8d..."
}
3. Zero-Mutation Merge Readiness Gate (scripts/merge-readiness.mjs)
{
"ok": true,
"gateStatus": "READY_TO_MERGE",
"laneBranch": "lane/ui-table",
"targetRef": "main",
"commitCount": 1,
"changedFiles": ["src/ui/table.js", "tests/ui/table.test.js"],
"scopeViolations": [],
"conflictFiles": [],
"mergeTreeSha": "9c31a7b4f2..."
}
Next step: Merge lane/ui-table into main, then release the worktree lock with node scripts/worktree-lane.mjs remove --repo . --path <lane-path>.
Connects securely to your tools. The creator never sees your data.
About this skill
Running multiple AI coding agents on the same repository routinely leads to silent file overwrites, orphaned branches, late merge conflicts, and 40K-token context dumps every time a worker resumes.
Parallel Worktree Orchestrator installs a deterministic 3-stage multi-agent execution kit powered by standalone, zero-dependency, offline Node.js (>=18) scripts (zero network calls, zero process.env reads, zero shell: true):
worktree-lane.mjs— Allocates isolated Git worktrees on dedicated branches (lane/<slug>) with concurrency cap enforcement (--max-active, default3) and exclusive write-path ownership locks. Overlapping writabledeveloperpaths fail immediately withexit 2(PATH_OWNERSHIP_CONFLICT), while read-onlyresearcher/reviewerlanes inspect freely without holding write locks. Safely refuses to remove the main repo or dirty secondary worktrees.merge-readiness.mjs— Zero-mutation pre-merge gate (git merge-tree --write-tree) that verifies clean worktree state, 100% path-ownership scope compliance (SCOPE_VIOLATION→exit 2), and conflict-free mergeability (CONFLICT_DETECTED→exit 3,READY_TO_MERGE→exit 0) without ever touching your primary working tree.context-brief.mjs— Compiles a deterministic, character- and token-bounded recovery brief (~400–600tokens with SHA-256briefHash) containing Git HEAD, active lanes, path locks, recent commits, and bounded checkpoint notes for fast subagent dispatch or post-compaction handoff.
Works Out of the Box
Compatible with Claude Code, Codex CLI, Cursor, OpenCode, GitHub Copilot, Gemini CLI, and any SKILL.md-compatible agent on macOS, Linux, and Windows. Requires only Node.js >=18 and Git >=2.38.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.
Requires Node.js 18+. Does not perform network requests or remote git operations like push/pull. No support for SVN or Mercurial.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Software
Node.js
Git