From 8605398b9455145e9fc8ca2c90f65176e75a1911 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 7 Sep 2026 12:44:03 +0000 Subject: [PATCH] chore: ignore agent worktrees under .claude/worktrees/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subagents create git worktrees at .claude/worktrees/agent-/, which show up as untracked directories in the repo root. They are transient checkouts of other branches and must never be committed. .gitignore already ignores .claude/settings.local.json, so this keeps the same selective approach rather than ignoring .claude/ wholesale — any project config added there stays trackable. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01MA98m7ua7qvDFZjxFaww6Z --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 844a02084..74d98ad21 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ dist/ .DS_Store .fallow/ .claude/settings.local.json +.claude/worktrees/