Skip to content

Commit abafca7

Browse files
claudehyperpolymath
authored andcommitted
chore(gitignore): ignore .claude/worktrees/ (transient agent worktrees)
Claude Code worktree-isolated agents create per-agent git worktrees under .claude/worktrees/. These are transient scratch checkouts and must never be committed — committing a nested worktree would corrupt the repo. Ignoring the path keeps the working tree clean while an agent runs.
1 parent 5fe60f9 commit abafca7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,7 @@ packages/affine-js/deno.lock
107107

108108
# ADR-015 S3: fetch-pinned WASI adapter (provisioned, not committed)
109109
tools/vendor/
110+
111+
# Claude Code agent worktrees — transient per-agent git worktrees,
112+
# never committed (committing a nested worktree would corrupt the repo).
113+
/.claude/worktrees/

0 commit comments

Comments
 (0)