<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dmitriy Kudryavtsev</title>
    <description>The latest articles on DEV Community by Dmitriy Kudryavtsev (@kuderr).</description>
    <link>https://dev.to/kuderr</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3789581%2Fc5f202cd-9797-4de3-9e83-27a447e9b9a5.jpeg</url>
      <title>DEV Community: Dmitriy Kudryavtsev</title>
      <link>https://dev.to/kuderr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kuderr"/>
    <language>en</language>
    <item>
      <title>How I Run 5+ AI Agents in Parallel on the Same Repo with Git Worktrees</title>
      <dc:creator>Dmitriy Kudryavtsev</dc:creator>
      <pubDate>Tue, 24 Feb 2026 13:48:05 +0000</pubDate>
      <link>https://dev.to/kuderr/how-i-run-5-ai-agents-in-parallel-on-the-same-repo-with-git-worktrees-2ngb</link>
      <guid>https://dev.to/kuderr/how-i-run-5-ai-agents-in-parallel-on-the-same-repo-with-git-worktrees-2ngb</guid>
      <description>&lt;h3&gt;
  
  
  Context
&lt;/h3&gt;

&lt;p&gt;I run multiple AI coding agents (Claude Code, Cursor, Windsurf) on the same repo in parallel. The isolation mechanism is &lt;code&gt;git worktree&lt;/code&gt; — each agent gets its own working directory while sharing the same &lt;code&gt;.git&lt;/code&gt; history. No cloning, no disk waste.&lt;/p&gt;

&lt;p&gt;The problem is management. The native &lt;code&gt;git worktree&lt;/code&gt; commands are bare-bones — manual paths, no naming, no config copying. And tools like Claude Code Desktop and Codex create worktrees on their own, but each does it differently. There's no unified way to list, switch between, or clean them up.&lt;/p&gt;

&lt;h3&gt;
  
  
  git-wt
&lt;/h3&gt;

&lt;p&gt;I built &lt;a href="https://github.com/kuderr/git-wt" rel="noopener noreferrer"&gt;git-wt&lt;/a&gt; — a pure Bash wrapper that gives you one CLI for all of this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Create 3 isolated worktrees from main&lt;/span&gt;
git wt add main &lt;span class="nt"&gt;--copy-env&lt;/span&gt;    &lt;span class="c"&gt;# → "swift-jade"&lt;/span&gt;
git wt add main &lt;span class="nt"&gt;--copy-env&lt;/span&gt;    &lt;span class="c"&gt;# → "bold-ember"&lt;/span&gt;
git wt add main &lt;span class="nt"&gt;--copy-env&lt;/span&gt;    &lt;span class="c"&gt;# → "calm-frost"&lt;/span&gt;

&lt;span class="c"&gt;# Open each in a separate editor window&lt;/span&gt;
git wt open swift-jade &lt;span class="nt"&gt;--editor&lt;/span&gt; cursor
git wt open bold-ember &lt;span class="nt"&gt;--editor&lt;/span&gt; cursor
git wt open calm-frost &lt;span class="nt"&gt;--editor&lt;/span&gt; cursor

&lt;span class="c"&gt;# Launch an AI agent in each — zero conflicts&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  What it does
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Auto-naming.&lt;/strong&gt; Each worktree gets a memorable name like &lt;code&gt;swift-jade&lt;/code&gt; — no thinking about paths.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Centralized storage.&lt;/strong&gt; Everything lives in &lt;code&gt;~/.git-wt/&lt;/code&gt;, not inside your project directory.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;--copy-env&lt;/code&gt;.&lt;/strong&gt; Copies &lt;code&gt;.env&lt;/code&gt; and config files into the new worktree automatically. Without this, every worktree needs manual setup before it can run anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Shell completions.&lt;/strong&gt; Full Bash/Zsh tab completion — commands, flags, worktree names.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Editor integration.&lt;/strong&gt; &lt;code&gt;git wt open &amp;lt;name&amp;gt; --editor code&lt;/code&gt; opens the worktree directly in VS Code or Cursor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI agent support.&lt;/strong&gt; Ships with a SKILL.md file — Claude Code discovers and uses &lt;code&gt;git-wt&lt;/code&gt; on its own without you explaining the commands.&lt;/p&gt;

&lt;h3&gt;
  
  
  Installation
&lt;/h3&gt;

&lt;p&gt;Zero dependencies, 5 seconds:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/kuderr/git-wt/main/install.sh | bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Works as a git subcommand: &lt;code&gt;git wt &amp;lt;command&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Other use cases
&lt;/h3&gt;

&lt;p&gt;Not just for AI agents:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Code reviews&lt;/strong&gt; — check out a PR in a separate worktree without touching your current work&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hotfixes&lt;/strong&gt; — create a worktree for a fix without &lt;code&gt;git stash&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing&lt;/strong&gt; — run tests in one worktree while developing in another&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/kuderr/git-wt" rel="noopener noreferrer"&gt;https://github.com/kuderr/git-wt&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Stars and feedback welcome.&lt;/p&gt;

</description>
      <category>git</category>
      <category>productivity</category>
      <category>ai</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
