Skip to content

Ignore .claude/worktrees/ — agent worktree artifacts#40

Open
kirkabowman wants to merge 1 commit into
petrowsky:mainfrom
kirkabowman:chore/gitignore-claude-worktrees
Open

Ignore .claude/worktrees/ — agent worktree artifacts#40
kirkabowman wants to merge 1 commit into
petrowsky:mainfrom
kirkabowman:chore/gitignore-claude-worktrees

Conversation

@kirkabowman
Copy link
Copy Markdown

Summary

Claude Code creates ephemeral git worktrees under .claude/worktrees/ when an agent runs in isolation mode. These are local-only artifacts and should never be tracked. Adds the directory to .gitignore alongside the existing .cursor/in-development/ entry.

Test plan

  • After this lands, run an isolated Claude Code agent and confirm the resulting .claude/worktrees/<name>/ does not appear in git status

🤖 Generated with Claude Code

Claude Code creates ephemeral git worktrees under .claude/worktrees/
for isolated agent operations. These are local-only artifacts and
should never be committed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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