From fd60dbaa3baa12ded0a66bf2f88b0d2c4c949ccf Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 19 Oct 2026 11:46:21 +0700 Subject: [PATCH] skills: self-cleanup derives the main checkout from git, not a developer home path (Closes #10851) secret-scan's scan job (tools/check_devhome_paths.py) has failed on master and on every pull request since 1f43ce70f added this line. The main checkout is "$(git rev-parse --git-common-dir)/.." from any worktree, the idiom the analog-emulation skill uses. Co-Authored-By: Claude Opus 5.5 --- .claude/skills/self-cleanup/SKILL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.claude/skills/self-cleanup/SKILL.md b/.claude/skills/self-cleanup/SKILL.md index 331f5ee193..944329273e 100644 --- a/.claude/skills/self-cleanup/SKILL.md +++ b/.claude/skills/self-cleanup/SKILL.md @@ -52,7 +52,7 @@ Remove it only when all of these hold; otherwise keep it and say why in the ledg The Bash sandbox cannot delete `.git/worktrees/` (`Operation not permitted`), so `git worktree remove` fails there for lane trees. Run the removal in the session's Terminal tab (`run_in_terminal`, one line), then verify from Bash: ``` -git -C /Users/playom/t27 worktree remove -f # -f -f when a finished agent left its lock +git -C "$(git rev-parse --git-common-dir)/.." worktree remove -f # -f -f when a finished agent left its lock [ -d ] && echo "still there" || echo removed df -h /System/Volumes/Data | tail -1 ```