Skip to content

chore: ignore per-session agent worktrees - #225

Merged
github-actions[bot] merged 1 commit into
mainfrom
chore/ignore-agent-worktrees
Aug 25, 2026
Merged

chore: ignore per-session agent worktrees#225
github-actions[bot] merged 1 commit into
mainfrom
chore/ignore-agent-worktrees

Conversation

@catomean

Copy link
Copy Markdown
Collaborator

_claude_autoworktree_enter creates .claude/worktrees/<name> for each session, so every concurrent session left a permanently-untracked directory in the repo. That is scratch, not source: it made git status read dirty forever — precisely the noise that lets genuinely stranded files hide in plain sight.

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.

npm run verify green locally on this branch rebased onto main (de29301): lint 0 errors / 161 warnings, tsc clean, 43 tests pass, build succeeds.

🤖 Generated with Claude Code

_claude_autoworktree_enter creates .claude/worktrees/<name> 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.
@github-actions
github-actions Bot merged commit 992542e into main Aug 25, 2026
2 checks passed
@github-actions
github-actions Bot deleted the chore/ignore-agent-worktrees branch August 25, 2026 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant