Issue 13 · Nov 2–8, 2026Editions · Glossary · Archive · Method · RSS · HU / ENG

News of the AI era, curated weekly

Glossary › Developer basics

worktree

in English: git worktree

advancedwidespread

A worktree is an additional working instance of the same codebase opened in a separate folder, allowing multiple tasks to be worked on simultaneously without them mixing.

In plain terms

Imagine working on a thick manuscript and needing to rewrite two chapters at once. If you have only one desk, you must pack away the pages of one chapter every time you switch to get the other. A worktree is like getting a second desk: both chapters can remain open, yet the manuscript is still just one.

Programmers use the Git version control system to track code changes. Typically, one working directory belongs to a project, and only one version (branch) can be active at a time. With worktree, you can open multiple directories for the same project, each with a different branch.

In the AI era, it suddenly became important because often multiple coding agents work on the same project simultaneously. If three agents were rewriting files in the same folder, they would ruin each other's work. If each gets its own worktree, they can work peacefully, and the final result can be merged at the end.

How it works

  1. The project has a shared repository (repo) that preserves the entire history of the code; there is always only one.
  2. With one command (git worktree add), you request a new folder and specify which branch it should contain. Git places the appropriate version of the files there.
  3. In the new folder, you can edit, test, and save just as in the original. Changes made here do not appear in other folders.
  4. Saves (commits) go into the shared repository, so the history is not copied multiple times, and folders can be aware of each other's branches.
  5. Once the task is done, you merge the branch into the main version and delete the now-unnecessary worktree.

An everyday example

You ask a coding agent to build a new feature for your webshop while another agent fixes an urgent bug. Both work in separate worktrees, so they do not overwrite each other's files, and you review and accept their work individually at the end.

Who is affected

developerIt can work on multiple branches simultaneously or run multiple agents in parallel without constantly having to stop and clear its work. → Code
entrepreneur, executiveThis makes it practically feasible for multiple AI agents to work simultaneously on the same software, which can accelerate development.
parent, student, teacherAnyone learning to program will soon encounter the term when using AI coding tools; it is worth knowing it refers to a separate working directory. → Education & Family

A common misconception

MythA worktree is a full copy of the project, as if you were downloading the entire thing again.
In realityOnly the working files go into a new folder; the code history stays in a single shared repository. That makes it faster and lighter on disk than a full copy, and the folders can see each other's branches.

Limits and risks

Similar, but not the same

Related concepts

Broader

Git, version control

Narrower

–

On the edge

branch, repo (code repository), coding agent, parallel agents, sandbox

A brief history

Linus Torvalds launched the Git version control system in 2005. The worktree command was added with version 2.5 released in 2015 and remained a little-known advanced feature for many years until coding agents working in parallel made it widely known.

Where things stand

As of late 2026, worktrees are a long-stable, built-in part of Git, and several AI coding tools automatically create one for their agents. Among developers, it is one of the usual ways to run agents in parallel.

Status: 2026 November

In the news

Appears in 1 Agent Age stories; the curve shows weekly occurrence in the news magazine.

Also known as

worktree · git worktree · work tree · working tree · linked worktree · munkafa · Git-munkafa

Sources

This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.