- Home
- Skills
- Agents & Orchestration
- Git Agent Lock — Part 3: Isolated Worktree Manager
More screenshots
Works with the AI Agents you already use
Git Agent Lock — Part 3: Isolated Worktree Manager
Dynamic Git worktree provisioning and branch isolation for parallel subagents with zero workspace collisions.
Free
Git Agent Lock — Part 3: Isolated Worktree Manager
Example session with this skill installed
Create an isolated git worktree for subagent-stripe-worker on branch feat/stripe-checkout.
- Read your context and instructions
- Compiled the git agent lock
✅ Worktree created at /Users/developer/project/.agent_worktrees/subagent-stripe-worker (branch: feat/stripe-checkout, base: HEAD)
==================================================
🌿 GIT WORKTREE MANAGER — Active Subagent Worktrees (v1.0.0)
Active Agent Worktrees: 1
🌿 #1 Agent: [subagent-stripe-worker]
Branch: refs/heads/feat/stripe-checkout
Path: /Users/developer/project/.agent_worktrees/subagent-stripe-worker
=================================================
Next Steps:
Subagent is isolated in its private worktree with dedicated Git index. Main working copy remains completely clean and unaffected.
Connects securely to your tools. The creator never sees your data.
About this skill
Git Agent Lock — Part 3: Isolated Worktree Manager
When running multiple subagents in parallel (Claude Code subagents, Cursor background composers, Antigravity swarms), sharing a single working directory causes constant merge collisions, corrupted files, and fatal .git/index.lock errors.
Git Agent Lock Part 3 provisions dynamic, isolated Git worktrees (.agent_worktrees/<agent-id>) with dedicated branches, enabling flawless multi-agent parallelism.
⚡ Key Capabilities:
- Dynamic Worktree Allocation: Spins up isolated working directories and dedicated branches for subagents in milliseconds.
- Index Lock Elimination: Each subagent operates on its own private Git staging index, preventing
.git/index.lockcollisions. - Safe Lifecycle & Pruning: Automated cleanup commands safely dismantle scratch worktrees without leaving dangling branches.
- JSON Registry: Full JSON output for orchestrator scripts to monitor active subagent workspaces.
📦 What's Included:
scripts/git_worktree_manager.py— Worktree management CLI and APIscripts/test_git_worktree_manager.py— Automated unit test suite (100% pass)references/multi_agent_worktree_guide.md— Architectural guide for multi-agent worktrees- Universal
SKILL.md— Lean Core architecture (< 40 lines)
🚀 Upgrade Path to Git Agent Lock Pro Suite:
Part 3 provides worktree isolation. For unified atomic locking, pre-commit staging gates, deadlock graph detection, and causal forensics integration, check out the Git Agent Lock Pro Suite ($29) on Agensi.
🔒 100% Local-First & Zero Telemetry
Runs 100% locally on your machine via standard Git and Python. Zero network calls, zero tracking.
Requires Git 2.5+. Requires filesystem permissions to create directories. Does not handle remote branch synchronization automatically.
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 any payment.
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
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 16 days ago
- Free with an Agensi account
Requires
Permissions
Allocates local git worktrees in .agent_worktrees with zero cloud network calls.