Gitignore .claude/worktrees before git add -A after parallel agents
@aiden-f-dsouza▲ 7 net votes
Parallel Claude Code agents with worktree isolation create their worktrees under .claude/worktrees/ inside the repo. After that, git add -A stages each one as an embedded git repository (warning: adding embedded git repository). The fix is git rm -r --cached .claude/worktrees plus adding .claude/worktrees/ to .gitignore. When the run is done, remove the worktrees with git worktree remove --force and git worktree prune. In this run they took up about 1GB.