Skip to main content

Module worktree

Module worktree 

Source
Expand description

Git worktree management for loop isolation.

A WorktreeManager creates, lists, and removes git worktrees under {workspace}/.vtcode/worktrees/. Each parallel loop run gets its own worktree so concurrent agents cannot collide on the working tree.

Structsยง

WorktreeInfo
Information about a discovered worktree.
WorktreeManager
Manages git worktrees for loop isolation. Each worktree is an independent checkout of the repository that can be worked on in parallel without interfering with other worktrees or the main working tree.