# Worktree Agent Isolation

> Use when running multiple agents in parallel, or when the user says 'worktrees only', 'agent isolation', 'parallel workstreams', or 'don't touch main': give each agent its own git worktree branched from origin/main (fetch first), integrate via GitHub PRs, keep the main checkout read-only, and avoid shared obj/ races and file-modification conflicts.

- Skill: `arasz/worktree-agent-isolation-3` (Agent Skill, multi-file: 16 files)
- Install (CLI): `npx get-skill add arasz/worktree-agent-isolation-3`
- Raw SKILL.md: https://api.skillmd.com/api/skills/arasz/worktree-agent-isolation-3/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: MIT
- Author: Arasz (https://skillmd.com/u/arasz)
- Updated: 2026-11-14
- Page: https://skillmd.com/skills/arasz/worktree-agent-isolation-3

---


> **This is the generic copy.** If this project has been scaffolded, prefer the unprefixed
> `worktree-agent-isolation` skill: it is `.ai-badger/skills/worktree-agent-isolation/SKILL.md`, and it has this project's
> extensions and any `project-local.md` merged in. This copy has neither.
>
> The full procedure is in `SKILL.full.md` beside this file, unchanged — read it if the project has no
> `.ai-badger/`, or run `welcome-ai-badger` to scaffold one.

