Ignore ephemeral per-agent worktree dirs under .claude/worktrees/ - #742
Closed
missingbulb wants to merge 1 commit into
Closed
Ignore ephemeral per-agent worktree dirs under .claude/worktrees/#742missingbulb wants to merge 1 commit into
missingbulb wants to merge 1 commit into
Conversation
The harness materializes a nested git checkout per isolation:"worktree" subagent there; it was showing up as untracked repo content on Stop. Refs #744 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018975YrYb81uQmAvG315fTE
missingbulb
force-pushed
the
claude/charming-einstein-nr3eqq
branch
from
July 26, 2026 04:12
3bc5950 to
3e2d8f0
Compare
This was referenced Jul 26, 2026
Owner
Author
|
Closing at the owner's request during an open-PR sweep. This and #723 were the same one-line fix — adding the harness-created Branch Generated by Claude Code |
This was referenced Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
isolation:"worktree"subagent under.claude/worktrees/agent-<id>/— this repo's.gitignorehad no entry for it, so those dirs showed up as untracked repo content on every Stop check./.claude/worktrees/to.gitignore. Nested git checkouts aren't sane content togit addanyway (each carries its own.git).This came out of a scheduled Claudinite-executor session that dispatched several subagents with worktree isolation to run independently; the untracked-worktree false positive blocked the session's Stop hook until fixed.
Test plan
git status --shortshows a clean tree with the worktree dirs present but now ignored..gitignore-only change, no code path to test.Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
https://claude.ai/code/session_018975YrYb81uQmAvG315fTE
Generated by Claude Code