{
  "id": 8539883,
  "title": "Worktrunk: Git Worktrees Made Simple for Parallel AI Agents",
  "url": "https://urgent.news/2026/09/19/worktrunk-git-worktrees-made-simple-for-parallel-ai-agents",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-19T21:08:11.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/arshtechpro/worktrunk-git-worktrees-made-simple-for-parallel-ai-agents-1106"
  },
  "original_language": "en",
  "account": "Claude Code and Codex AI coding agents can now operate on longer tasks independently. However, if they work in the same folder, their changes can clash. Git offers a solution called worktrees, allowing multiple branches to coexist in different directories. Yet, Git's worktree commands are cumbersome, requiring repetitive commands for each new worktree. Worktrunk is a Rust-based command-line tool designed to simplify worktree management, presenting a more user-friendly approach. It is open source (MIT or Apache-2.0), released in early 2026, and has already gained over 5,000 stars on GitHub.\n\nWorktrunk streamlines common tasks:\n1. Switching to a worktree: wt switch feat\n2. Creating and starting an agent: wt switch -c -x claude feat\n3. Cleanup: wt remove\n4. Listing worktrees with status: wt list\n\nTo get started, install Worktrunk via Homebrew or Cargo. The shell integration step is crucial, enabling Worktrunk to modify your current directory. Creating a worktree for a new feature is straightforward: wt switch --create feature-auth. Worktrunk also supports parallel execution of agents on different tasks. For instance, running three agents simultaneously on distinct features is easy:\n\n1. wt switch -x claude -c feature-a\n2. Add user authentication\n3. wt switch -x claude -c feature-b\n4. Fix the pagination bug\n5. wt switch -x claude -c feature-c\n6. Write tests for the API\n\nEach agent works within its isolated worktree, preventing file clashes. Worktrunk provides additional features such as hooks for post-create or post-merge commands, LLM-generated commit messages, build cache copying, and PR checkout with wt switch pr:123. Multiple dev servers can run concurrently with unique ports per worktree. While Worktrunk is a relatively new project, its significant benefits make it worth considering, particularly for those managing multiple AI coding agents or juggling numerous branches.",
  "summary": "AI coding agents like Claude Code and Codex can now work on longer tasks without supervision. That means you can realistically run several of them at once, each on a different feature or bug. The catch: if they all work in the same folder, they overwrite each other's changes. Git has a built-in answer for this called worktrees . A worktree is a separate working directory attached to the same…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}