Coding-agent internals · Concept

Git worktree

Also called: worktrees

A separate working directory linked to a repository; it is not a security isolation boundary.

Example

Create separate working directories so two coding tasks do not overwrite each other.

The distinction that matters

A worktree does not isolate secrets, processes, or network access.

Related terms

Sandbox · Subagent · Artifact

Primary references

Reference definition