Keep Claude Code's agent worktrees out of the repository #6

Merged
JMR-dev merged 1 commits from chore/ignore-claude-dir into main 2026-08-23 01:52:17 +00:00
1 Commits
Author SHA1 Message Date
JMR-devandClaude Opus 5 cf13e0225c Keep Claude Code's agent worktrees out of the repository
.claude/worktrees/ holds complete working copies -- during a parallel agent run
there were six, each a full checkout with its own build output. None of it is
tracked, so it sat in `git status` as untracked noise, and a `git add -A` at the
wrong moment would have committed the repository into itself.
scheduled_tasks.lock is equally machine-local.

Both are named individually rather than ignoring .claude/ wholesale. That
directory is also where shared project config lives -- settings.json, agents/,
skills/ -- and ignoring the parent would have pre-emptively hidden files a
project would normally commit, for no benefit today.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-22 20:42:15 -05:00