Glossary · AI-native development
Worktree
In Git, a working directory attached to a repository and branch or commit, with shared object storage but its own checked-out files and index.
Why it matters
Separate worktrees let people and agents work concurrently without constantly switching or overwriting one checkout.
In practice
Give each coding agent a named feature branch and exact worktree path, then review and integrate patches through normal Git history.
Common confusion
A worktree isolates checked-out files, not every process, port, cache, database, or secret on the machine.
Related terms
Sources
Browse the learning paths to see this term in context — every lesson is free to read.