---
title: "How we're shipping faster with Claude Code and Git Worktrees"
description: "incident.io engineers run four to seven Claude Code agents in parallel, each isolated in its own Git worktree so concurrent sessions don't clobber a shared working directory."
url: "https://swe.quest/articles/how-we-re-shipping-faster-with-claude-code-and-git-worktrees-4004ae933e0806d1"
canonical: "https://incident.io/blog/shipping-faster-with-claude-code-and-git-worktrees"
source: "incident.io"
published: "2025-06-27"
difficulty: "medium"
kind: "Case study"
reading_minutes: 12
tags: ["ai-coding","version-control","developer-productivity","ai-agents"]
---

# How we're shipping faster with Claude Code and Git Worktrees

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2025-06-27, 12 min read, Case study. Original: [https://incident.io/blog/shipping-faster-with-claude-code-and-git-worktrees](https://incident.io/blog/shipping-faster-with-claude-code-and-git-worktrees)

## Summary

incident.io engineers run four to seven Claude Code agents in parallel, each isolated in its own Git worktree so concurrent sessions don't clobber a shared working directory. A small open-source bash function, \`w\`, creates per-user worktrees under ~/projects/worktrees, autocompletes them, and runs commands such as \`claude\` or \`git status\` inside a worktree without changing directory. Examples include building a multiline JavaScript editor in about 10 minutes and spending $8 of Claude credit to parallelize Makefile API codegen for an 18% (30 second) speedup. The team also leans on Plan Mode to leave agents running safely, uses voice dictation for long context dumps, and wants per-PR ephemeral environments with their own database and backend.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Version control](https://swe.quest/tags/version-control.md) (Engineering practices)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)

## Prerequisites

- Git branching
- command-line shells

## Keywords

Claude Code, Git Worktrees, Plan Mode, SuperWhisper, Makefile

## Related posts

- [Claude Code in the cloud: a field guide to cloud sessions](https://swe.quest/articles/claude-code-in-the-cloud-a-field-guide-to-cloud-sessions-77547c26ca9824eb.md): claude.dev · 2026-10-06 · Medium · 22 min read · AI for coding, AI agents, Developer tools, Sandboxing & isolation
  Claude Code cloud sessions run each task in a fresh VM with the repository cloned onto its own branch, so several agents can work on one repo in parallel without sharing files, ports, or the developer's credentials.
- [Our Claude Code Cheatsheet](https://swe.quest/articles/our-claude-code-cheatsheet-ac83fd2d04af578f.md): Neon · 2025-10-14 · Medium · 9 min read · AI for coding, AI agents, Developer productivity
  A Neon engineer's working cheatsheet for Claude Code covers Plan Mode, parallel task agents for multi-lens code review, and context management with /clear, /compact, /context and @file references.
- [A Virtual Agent team at Docker: How the Coding Agent Sandboxes team uses a fleet of agents to ship faster](https://swe.quest/articles/a-virtual-agent-team-at-docker-how-the-coding-agent-sandboxes-team-uses-a-fleet-c083dfabe4b49d2c.md): Docker · 2026-05-01 · Medium · 12 min read · AI agents, AI for coding, CI/CD, Testing, Developer productivity
  Docker's Coding Agent Sandboxes (sbx) team runs a "Fleet" of seven autonomous Claude Code skill-based agent roles: build engineer, project manager, product owner, CLI tester, performance tester, upgrade tester and software engineer.
- [Effective harnesses for long-running agents](https://swe.quest/articles/effective-harnesses-for-long-running-agents-987ba1b5b74b4050.md): Anthropic Engineering · 2025-11-26 · Medium · 9 min read · AI agents, AI for coding, LLMs, Testing
  Long-running coding agents lose all memory between context windows, and compaction alone doesn't stop them from trying to one-shot an app, leaving half-finished work, or declaring the project done early.
- [Beyond the Hype: How to Use AI to Actually Increase Your Productivity as a Dev](https://swe.quest/articles/beyond-the-hype-how-to-use-ai-to-actually-increase-your-productivity-as-a-dev-6c25eb43524a25ba.md): Docker · 2025-11-21 · Medium · 14 min read · AI for coding, AI agents, Developer productivity, LLMs
  Effective AI-assisted coding comes from applying classic engineering discipline in a four-phase loop: prompting, planning, producing and refining.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
