<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-m-using-claude---worktree-for-everything-now-yovanq3q5" -->

---
title: I&#x27;m using claude --worktree for everything now | daily.dev
description: Claude Code now has built-in Git worktree support via the `claude --worktree` flag, allowing multiple AI agents to work in parallel on isolated branches...
canonical: https://daily.dev/posts/i-m-using-claude---worktree-for-everything-now-yovanq3q5
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I&#x27;m using claude --worktree for everything now | daily.dev
og:description: Claude Code now has built-in Git worktree support via the `claude --worktree` flag, allowing multiple AI agents to work in parallel on isolated branches...
og:url: https://daily.dev/posts/i-m-using-claude---worktree-for-everything-now-yovanq3q5
og:image: https://api.daily.dev/og/posts/YovAnQ3q5.png
og:image:alt: I&#x27;m using claude --worktree for everything now
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I'm using claude --worktree for everything now

**[Matt Pocock](https://daily.dev/sources/mattpocock)** · 7 min read · 2 upvotes · 0 comments

## Summary

Claude Code now has built-in Git worktree support via the `claude --worktree` flag, allowing multiple AI agents to work in parallel on isolated branches without interfering with each other. The author walks through how Git worktrees work fundamentally, then demonstrates the Claude-specific implementation. A key gotcha is discovered: when Claude creates a worktree from main, pushes default to main unless you explicitly specify the worktree branch name. Despite this paper cut, the author is enthusiastic about the feature for enabling free parallelization — each agent gets its own worktree lifecycle, can commit independently, and push PRs back to main. Sub-agents also support worktrees, though it must be explicitly opted into.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=yv8VZpov8bk>

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#claude-code](https://daily.dev/tags/claude-code), [#git](https://daily.dev/tags/git)

[View this post on daily.dev](https://daily.dev/posts/i-m-using-claude---worktree-for-everything-now-yovanq3q5)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"I'm using claude --worktree for everything now","url":"https://daily.dev/posts/i-m-using-claude---worktree-for-everything-now-yovanq3q5","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-m-using-claude---worktree-for-everything-now-yovanq3q5"},"datePublished":"2026-02-21T16:22:55.801Z","dateModified":"2026-03-15T03:36:01.517Z","description":"Claude Code now has built-in Git worktree support via the `claude --worktree` flag, allowing multiple AI agents to work in parallel on isolated branches...","image":"https://i.ytimg.com/vi/yv8VZpov8bk/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/yv8VZpov8bk/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Matt Pocock","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Matt Pocock","logo":"https://media.daily.dev/image/upload/s--9QIam1r2--/f_auto/v1726499589/logos/mattpocock","url":"https://daily.dev/sources/mattpocock"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/i-m-using-claude---worktree-for-everything-now-yovanq3q5","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,claude-code,git","timeRequired":"PT7M","video":{"@type":"VideoObject","name":"I'm using claude --worktree for everything now","description":"Claude Code now has built-in Git worktree support via the `claude --worktree` flag, allowing multiple AI agents to work in parallel on isolated branches...","thumbnailUrl":"https://i.ytimg.com/vi/yv8VZpov8bk/sddefault.jpg","uploadDate":"2026-02-21T16:22:55.801Z","duration":"PT7M","url":"https://api.daily.dev/r/YovAnQ3q5","embedUrl":"https://www.youtube.com/embed/yv8VZpov8bk"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Matt Pocock","item":"https://daily.dev/sources/mattpocock"},{"@type":"ListItem","position":3,"name":"I'm using claude --worktree for everything now"}]}
```

