Git worktrees are an underrated feature that AI coding tool Antigravity (Google) elevates into a first-class workflow concept called 'agent branches'. Each task or feature gets its own isolated worktree with a dedicated branch, checkout, and filesystem directory — enabling concurrent agent execution without stashing or context-switching friction. The worktrees are stored under a `.gemini` namespace and can be listed with `git worktree list`. This approach makes parallel development streams cleaner and safer to manage.

5m read timeFrom amitmerchant.com
Post cover image
Table of contents
Rediscovering WorktreesAgent Branches in ActionUnder the HoodIn Closing
56.6K Impressions