Developers Clash Over Git Worktrees for AI Agent Workflows
In late August, developers clashed over whether Git Worktrees suit large-scale development and AI agent collaboration. No verdict has emerged, but both sides' positions, alternative tools, and an accompanying methodology are now on the table.
Confirmed
- Critics, including @doodlestein, argued that tools like Next forcing git worktrees on users is problematic: worktrees slow development, produce junk files, waste disk space, and cause confusion; when agents' changes later diverge, extra debt must be repaid, making worktrees an anti-pattern. He also argued shared workspaces surface conflicts immediately.
- Supporters countered that teams including OpenAI and Anthropic use worktrees at scale, and Anthropic's Claude Code team still recommends them for relevant workflows.
- Following the proposal to drop worktrees, developers (including @miktor1an) asked how to achieve agent workspace isolation—spinning up fresh Git environments or other trade-offs—extending the discussion to alternative technical paths.
- @doodlestein recommended his tool "Agent Mail," which manages agent workspaces via advisory file reservations to resolve conflicts in concurrent multi-agent operations.
- @doodlestein also proposed the "Agent Flywheel" methodology: end-to-end software building with frontier AI models and agent swarms, shifting the hardest thinking into representations within the model's context window (e.g., detailed Markdown plans), coordinated via "Beads"-based task management.
Unconfirmed
- The core factual claims on both sides—worktrees' real impact on development speed, and how OpenAI and Anthropic actually use them internally—come from the debaters' own statements, with no authoritative measurements or official data in the posts.
Why it matters
- As parallel AI agent development becomes the norm, how multiple agents safely share and isolate code workspaces is a key infrastructure question; the debate crystallizes the split between "reuse Git-native mechanisms" and "build a separate coordination layer," directly relevant to agent toolchain design.
- Agent Flywheel and Agent Mail give the critics a systematic alternative path, turning the argument from criticism into evaluable engineering proposals.
2026-08-28 ~ 2026-08-29 · 7 related posts
Primary sources
- Agent Mail manages workspaces via advisory file reservations — doodlestein · 2026-08-28
- [source] Doodlestein Against Forced Git Worktrees: Shared Workspace Surfaces Agent Conflicts Immediately — doodlestein · 2026-08-28
- [source] Agent Flywheel: A methodology for building software with AI swarms — doodlestein · 2026-08-28
- Alternatives to Git worktrees for agent workspace isolation — miktor1an · 2026-08-28
- Debate on Git Worktrees: velocity killer or essential tool for agents? — miktor1an · 2026-08-29
- Debate: Git worktrees considered an anti-pattern in agent dev — doodlestein · 2026-08-29
1 near-duplicate retellings: doodlestein