From 3640cb7adc89990e13519e2bbe0b0bfccd73efdd Mon Sep 17 00:00:00 2001 From: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Date: Mon, 24 Aug 2026 19:09:26 +0200 Subject: [PATCH] chore: ignore per-session agent worktrees _claude_autoworktree_enter creates .claude/worktrees/ for each session, so every concurrent session left a permanently-untracked directory here. That is scratch, not source: it made `git status` read dirty forever, which is precisely the noise that let 206 genuinely stranded files hide in plain sight across this fleet for ten days. threadkit already ignores these; this matches it, but scopes the rule to worktrees/ rather than all of .claude/ so tracked settings and CLAUDE.md are unaffected. --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 9b6a48a0..014a2353 100644 --- a/.gitignore +++ b/.gitignore @@ -93,3 +93,6 @@ credentials/ # Debug .debug/ + +# Per-session agent worktrees — scratch, never part of the repo. +.claude/worktrees/