← ClaudeAtlas

agent-isolationlisted

Use before spawning any agent that writes files, and by every developer/fixer agent as its first and last action. Gives each agent its own git worktree, forbids blanket staging, and requires confirming a mutation actually landed. Triggers from /app-build, /app-audit, parallel-orchestrator, and any parallel agent launch. Prevents parallel agents corrupting each other's work.
vmobifystudio/app-dev-team · ★ 4 · AI & Automation · score 74
Install: claude install-skill vmobifystudio/app-dev-team
# Agent isolation Parallel agents that share one working tree corrupt each other. Not "might" — *do*. The default developer method is: write the files, then `git checkout -b feat/APP-NNN` and commit. Run two of those concurrently in one tree and the sequence is: ``` dev A writes ui/TodoListUiState.kt (on main, untracked) dev B writes data/InMemoryTodoRepository.kt (on main, untracked) dev A runs git checkout -b feat/APP-001 -> B's file comes along dev A runs git add . && git commit -> A ships B's half-finished work dev B runs git checkout -b feat/APP-002 -> from A's branch, inheriting A's commit ``` Both branches are now wrong, and neither agent can tell. Worse, this is silent: every agent reports `DONE`, tests pass, and the review reads a diff that contains someone else's changes. **A read-only agent is not exempt.** A verification agent sharing a working tree once left a billing file with its guest-purchase guard deleted. Only explicit-path staging kept it out of the commit. One `git add -A` ships a removed billing guard. ## Rule 1 — one worktree per WRITING AGENT, always Before spawning any agent that writes, the orchestrator leases its slot: ```bash node "${CLAUDE_PLUGIN_ROOT}/scripts/worktree-slot.mjs" lease --owner ios-developer --tickets APP-001,APP-002 ``` The agent is given that path — `.agent-wt/ios-developer` — as its **project root** and never leaves it. Its `git` commands are confined there. It cuts `feat/APP-001-short-slug