[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C39KJ7F8MFZ3HZK445EN2H":3,"skill-same:01M6C39KJ7F8MFZ3HZK445EN2H":136},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":50,"linkOnly":51,"markdownContent":52,"markdownBody":53,"frontMatter":54,"refName":67,"commitSha":68,"skillDirectory":69,"forksCount":70,"repositoryHtmlUrl":71,"repositoryHomepageUrl":6,"ownerHtmlUrl":72,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":73,"install":74,"resources":87},"01M6C39KJ7F8MFZ3HZK445EN2H","mac-di[REDACTED_OPENAI_KEY]",null,"Diagnose and safely reclaim disk space on macOS when a disk-usage alert fires (system or 3rd-party like `disk_usage_alert.sh`). Use when the user shares a disk-alert message, says \"disk full\", \"low disk space\", \"running out of space\", \"free up disk\", \"reclaim space\", \"what's eating my disk\", or when `df -h \u002F` shows \u003C15% free. Covers the **sealed System Volume trap** (`df \u002F` shows ~17G used on the sealed system snapshot — the real user-data volume is `\u002FSystem\u002FVolumes\u002FData` at `\u002Fdev\u002Fdisk3s5`), the standard investigation ladder (df → du per dir → `.claude\u002Fworktrees\u002Fagent-*` accumulation → git-worktree-registered cleanup), and the safe-cleanup decision tree (what to delete vs what to keep). Trigger on any di[REDACTED_OPENAI_KEY] phrase.","jleechanorg\u002Fjleechan-skills","jleechanorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221404966?v=4","01M6C1VJ99XG950X1DWPEBCBGX","01M6C1VJDK5YVDNT3362RT5WSB",6,"MIT","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fdevops\u002Fmac-disk-pressure-triage\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],"di","mac di[REDACTED OPENAI KEY]","mac","openai","alert","use","up","worktrees","message","volume","df","du","free","at","reclaim space","git-worktree","when","safe","snapshot","user","decision","system","disk","investigation","data","worktree","dev","git","delete","cleanup","diagnose","capacity","2026-11-10 10:12:30",false,"---\nname: mac-di[REDACTED_OPENAI_KEY]\ndescription: Diagnose and safely reclaim disk space on macOS when a disk-usage alert fires (system or 3rd-party like `disk_usage_alert.sh`). Use when the user shares a disk-alert message, says \"disk full\", \"low disk space\", \"running out of space\", \"free up disk\", \"reclaim space\", \"what's eating my disk\", or when `df -h \u002F` shows \u003C15% free. Covers the **sealed System Volume trap** (`df \u002F` shows ~17G used on the sealed system snapshot — the real user-data volume is `\u002FSystem\u002FVolumes\u002FData` at `\u002Fdev\u002Fdisk3s5`), the standard investigation ladder (df → du per dir → `.claude\u002Fworktrees\u002Fagent-*` accumulation → git-worktree-registered cleanup), and the safe-cleanup decision tree (what to delete vs what to keep). Trigger on any di[REDACTED_OPENAI_KEY] phrase.\ntriggers:\n  - disk full\n  - low disk space\n  - running out of disk\n  - reclaim disk\n  - free up space\n  - what is eating my disk\n  - disk usage alert\n  - disk-alert\n  - threshold exceeded\n  - capacity 95\n  - capacity 90\n---\n\n# macOS Disk Pressure Triage\n\n## Trap #1 — `df \u002F` lies on Apple Silicon (sealed system volume)\n\nOn modern macOS (11+), `df -h \u002F` returns numbers for the **sealed read-only system snapshot** (`\u002Fdev\u002Fdisk3s1s1` \u002F `\u002Fdev\u002Fdisk3s1`), which holds only ~17G of system files. **The real user-data volume is `\u002Fdev\u002Fdisk3s5` mounted at `\u002FSystem\u002FVolumes\u002FData`.** A \"disk full\" alert that fires because `df \u002F` looks fine is real — the sealed volume is full of pre-allocated APFS snapshots and the user's files live on the Data volume.\n\n**Always start with:**\n```bash\ndf -h \u002FSystem\u002FVolumes\u002FData\n```\nThat number is the truth. If `df -h \u002F` says 27% used but `\u002FSystem\u002FVolumes\u002FData` says 96% used, trust the Data volume. The alert script at `~\u002FLibrary\u002FApplication Support\u002Fuser-scope\u002Fbin\u002Fdisk_usage_alert.sh` defaults to checking `\u002F`, which can understate real pressure — read both.\n\n## Trap #3 — APFS purgable space makes successive `df` readings drift (2026-07-14 instance)\n\n**Symptom:** successive `df -h \u002FSystem\u002FVolumes\u002FData` readings taken minutes apart can show wildly different free-space values (observed 21 Gi free at 17:18 PT → 53 Gi free at 17:23 PT on the same disk with no user-driven cleanup in between). The disk-alert script fires on one snapshot, the agent reads 21G free, the user sees 53G free in real life, and the triage report overstates pressure.\n\n**Root cause:** APFS maintains **\"purgeable space\"** — blocks held by older Time Machine snapshots, APFS snapshots, and `tmutil` artifacts that are allocated but reclaimable on demand. The kernel returns a conservative free-space estimate on the first read after a high-water-mark event (a big write, a snapshot rotation, an Xcode build) and re-reconciles the actual reclaimable blocks lazily as `photolibraryd`, `bird`, and `deleted` reaped in the background. Five minutes later the same `df` can show tens of gigabytes more free.\n\n**Mitigation — read 3-4 successive `df`s before reporting the baseline:**\n```bash\nfor i in 1 2 3 4; do\n  df -h \u002FSystem\u002FVolumes\u002FData | tail -1 | awk -v i=$i '{print \"Read \" i \": \" $4 \" free (\" $5 \" used)\"}'\ndone\n```\nIf the four reads converge, that number is the real baseline; report it. If they drift, wait 60s and re-read — APFS reconciliation is usually settled within a minute. **Do NOT report the very first `df` reading as the post-cleanup baseline** right after the alert fired — wait for convergence or specifically tag the reading as \"mid-reconciliation\" so the user knows it's an upper bound.\n\n**Also worth running to confirm purgable reality:**\n```bash\ndiskutil apfs list 2>&1 | grep -A2 \"Volume .* Data\"\ntmutil listlocalsnapshots \u002F 2>\u002Fdev\u002Fnull | head -10\n```\nA long `tmutil listlocalsnapshots` output means APFS is holding pre-purge Time Machine snapshots that account for most of the drift — those are SAFE to delete with `tmutil deletelocalsnapshots \u003Cdate>` if you've reconciled Time Machine backups first, but that's a user-decision call, not an autonomous cleanup.\n\n## Trap #5 — `state.db-wal` runaway is the silent disk hog (added 2026-07-31)\n\n**Symptom:** Disk at 100%, no obvious culprit. `du -sh ~\u002F.hermes\u002F*` shows `state.db-wal` at **95+ GiB** while `state.db` is only ~6 GiB. Recurring `OSError [Errno 28] No space left on device: '$HOME\u002F.hermes\u002Fsessions\u002F.sessions_*.tmp'` errors in the gateway log — these are symptoms of disk-full, NOT the cause.\n\n**Root cause:** SQLite WAL-mode journaling. Every gateway write (session append, cron tick, message ingest) appends to `state.db-wal`. The WAL is checkpointed back into `state.db` and truncated only when no writer holds an open transaction. The `hermes gateway` Python process holds long-lived write txns (4h+ sessions observed), so the WAL grows unbounded instead of being recycled. **Verified 2026-07-31:** PID 48473 = `hermes gateway run`, holding 10+ FDs open on `state.db-wal`, runtime 4h18m, WAL = 95 GiB.\n\n**Why `rm .sessions_*.tmp` doesn't help:** Tmp files are only a few KB each; the gateway writes a fresh one per turn. Even if you delete them all, the next gateway turn hits ENOSPC again because the WAL is the real consumer. Don't loop on tmp cleanup — diagnose the WAL first.\n\n**Diagnosis ladder (in this order):**\n\n```bash\n# 1. Confirm WAL runaway (expect WAL >> main DB)\ndu -sh ~\u002F.hermes\u002Fstate.db ~\u002F.hermes\u002Fstate.db-wal ~\u002F.hermes\u002Fstate.db-shm 2>\u002Fdev\u002Fnull\n\n# 2. Identify the writer holding the WAL open\nlsof ~\u002F.hermes\u002Fstate.db-wal 2>\u002Fdev\u002Fnull\n# Typical: \u002Fopt\u002Fhomebrew\u002FCellar\u002Fpython@3.13\u002F...\u002FPython $HOME\u002F.local\u002Fbin\u002Fhermes gateway run\n\n# 3. Confirm it's the gateway (NOT a transient tool like sqlite3)\nps -p \u003Cpid> -o pid,user,etime,command\n# Etime > 1h + command = \"hermes gateway run\" → this is the long-lived writer\n\n# 4. Try a passive checkpoint (will fail while writer holds txns — that confirms the trap)\nsqlite3 ~\u002F.hermes\u002Fstate.db \"PRAGMA wal_checkpoint(PASSIVE);\"\n# Expected: 1|\u003Cbusy>|\u003Ccheckpointed> with busy frames > 0 while writer is live\n\n# 5. Force a TRUNCATE checkpoint — likely reports success but file doesn't shrink\nsqlite3 ~\u002F.hermes\u002Fstate.db \"PRAGMA wal_checkpoint(TRUNCATE);\"\nls -lh ~\u002F.hermes\u002Fstate.db-wal\n# If size unchanged → writer is holding the WAL mmap; safe truncate impossible while it lives\n```\n\n**Safe recovery path (user-approved, NOT autonomous):**\n\n1. **Stop writing.** `cronjob pause` on heavy cron jobs (audit-firing, dropped-thread-followup) — they append to the WAL.\n2. **Ask the user to restart the gateway.** `hermes gateway stop && hermes gateway start` (or `launchctl kickstart -k gui\u002F$(id -u)\u002Fai.hermes.gateway`). When the gateway PID exits, all its FDs on the WAL close. A fresh sqlite3 session against `state.db` can then `PRAGMA wal_checkpoint(TRUNCATE);` and the WAL truncates to ~0 bytes.\n3. **Verify reclaim.** `df -h \u002FSystem\u002FVolumes\u002FData` should jump by ~95 GiB. `du -sh ~\u002F.hermes\u002Fstate.db-wal` should be ~0 (or a few KB for the active WAL window).\n4. **Long-term prevention.** Add a daily cron that runs `sqlite3 ~\u002F.hermes\u002Fstate.db \"PRAGMA wal_checkpoint(TRUNCATE);\"` from a separate process (NOT the gateway). If the gateway's txns block it, the cron logs the busy-frame count as a health metric. WAL > 1 GiB for >24h = gateway-bug signal, post a Slack alert.\n\n**Forbidden (autonomous-recovery footguns):**\n- `kill -9` on the gateway PID — drops Slack relay, cron workers, and all in-flight sessions. User approval required.\n- `rm ~\u002F.hermes\u002Fstate.db-wal` while gateway is running — corrupts the DB on next write; gateway will need a full restart anyway AND a recovery.\n- `sqlite3 ... .recover` \u002F `.backup` against a live gateway-held DB — reads see partial WAL state, backup may be inconsistent.\n- Looping `rm .sessions_*.tmp` — wastes turns, doesn't free meaningful space, masks the real problem.\n\n**Diagnostic signal — is it the WAL or something else?** Run `du -sh ~\u002F.hermes\u002F* 2>\u002Fdev\u002Fnull | sort -rh | head -10`. If `state.db-wal` is in the top 3 and is >> `state.db`, this trap applies. If WAL is normal but `projects\u002F*` or `Library\u002FCaches\u002F*` is the offender, fall back to the standard tier ladder above.\n\n## Trap #4 — EA-sweep disk numbers are stale by N hours; verify live before quoting (added 2026-07-21)\n\nEA sweeps capture disk pressure at brief-time (e.g. 12:00 PT) and reference it again at 16:00 PT. **The number in the sweep is not the number the user sees now.** Real instance 2026-07-21: sweep reported `data volume 93% (809Gi used \u002F 67Gi free)`; a later sweep within the same day appeared to escalate but the live `df -h \u002FSystem\u002FVolumes\u002FData` confirmed 67 Gi free (stable across 4 successive 2s reads, no APFS reconciliation drift).\n\nWhen an EA sweep or alert-script number drives a triage reply:\n\n1. Run `df -h \u002FSystem\u002FVolumes\u002FData` fresh (do not trust the sweep's quoted percentage).\n2. Cross-check against `diskutil apfs list | grep -A2 \"Volume .* Data\"` for container-level ceiling + consumed.\n3. **Always also report the iOS Simulator subvolumes** — `\u002Fdev\u002Fdisk5s1` (typically 8.5–9 GiB iOS Bundle, often >95%) and `\u002Fdev\u002Fdisk7s1` (typically 19–20 GiB iOS Simulator, often >95%). The `disk_usage_alert.sh` script does NOT watch these. Without them, a triage misses 28 GiB of commonly-fillable space on Apple Silicon dev machines.\n4. If the live number is materially different from the sweep number (more free, fewer offenders), say so explicitly: \"Sweep reported X; live read is Y\" — and base the recommendation on Y.\n\nCompanion pitfall — do NOT delete worktrees, caches, snapshots, or user data during a verification reply. Triage replies classify and propose; cleanup is a separate user-approved action. The 89 hermes\u002Fagent processes, 6 docker runners, and 6 active `ez-mac-runner-b-N` containers observed on 2026-07-21 are the live-working set; bulk worktree deletion against them would terminate active jobs.\n\n## Trap #2 — `du -sh ~` and `du -sh \u002FUsers\u002F*` time out at scale\n\nWhen the disk has 300+ project subdirectories or millions of files, `du` on the entire home directory can take >10 minutes and hit the 180s tool timeout. **Don't try to enumerate the whole tree at once.** Drill in by category:\n\n```bash\n# 1. Top-level categories (fast, ~5s each)\ndu -sh ~\u002FLibrary\u002F* 2>\u002Fdev\u002Fnull | sort -rh | head -10\ndu -sh ~\u002FDocuments ~\u002FDownloads ~\u002FDesktop ~\u002FMovies ~\u002FMusic ~\u002FPictures 2>\u002Fdev\u002Fnull\n\n# 2. Project\u002Fwork dirs (may need -d 2 if too slow) — PREFER -d 1, NOT bare glob\ndu -d 1 -sh ~\u002Fprojects\u002F* 2>\u002Fdev\u002Fnull | sort -rh | head -20\ndu -sh ~\u002Fprojects\u002Fworktree_* 2>\u002Fdev\u002Fnull | sort -rh | head -20\n\n# 3. Hidden dirs at known accumulation points\ndu -sh ~\u002Fprojects\u002F\u003Crepo>\u002F.claude\u002Fworktrees\u002F 2>\u002Fdev\u002Fnull\ndu -sh ~\u002FLibrary\u002FDeveloper\u002FCoreSimulator\u002F* 2>\u002Fdev\u002Fnull | sort -rh | head -5\ndu -sh ~\u002FLibrary\u002FApplication\\ Support\u002FAside\u002F* 2>\u002Fdev\u002Fnull | sort -rh | head -5\n```\n\n> **Pitfall (added 2026-07-15):** `du -sh ~\u002F*` and `du -sh \u002FUsers\u002F*` with a bare glob can enumerate 200+ subdirs and time out hard (180s limit). Use **`du -d 1 -sh`** (one level, ~30s total) or enumerate specific candidates individually via a list. If `du` repeatedly returns no output without timing out, suspect an APFS snapshot conflict or a corrupted dirent cache — try `ls` first to confirm the path exists.\n>\n> **Pitfall — `du -d 1 -sh` returns empty output on certain pools (added 2026-07-15):** `du -d 1 -sh ~\u002F.worktrees\u002F*` and `du -d 1 -sh ~\u002F.gemini\u002Fantigravity-cli\u002Fbrain\u002F*` can return **no output at all** (not an error, not a timeout) when the dir has 50+ entries with mixed perm bits or when shell glob expansion interacts badly with the dotfile path. The diagnostic step that always works is a per-entry loop: `for d in \u003Cpool>\u002F*\u002F; do du -sh \"$d\" 2>\u002Fdev\u002Fnull; done | sort -rh | head -15`. Use that instead of `du -d 1 -sh \u003Cpool>\u002F*`. Same trap applies to `du -d 1 -sh ~\u002F.claude\u002F*` which additionally times out at 180s with the 50KB stdout cap (~1247 entries on a busy `.claude\u002Fprojects\u002F`).\n>\n> **Pitfall — `~\u002F.claude\u002Fprojects\u002F` is session metadata, NOT garbage (added 2026-07-15):** When `du -d 1 -sh ~\u002F.claude\u002F*` reports `~\u002F.claude\u002Fprojects\u002F` at 7G+ across ~1200+ entries, **do not propose deleting it**. Each entry is a `\u003Ccwd-hash>\u002F\u003Csession-id>.jsonl` transcript file — the agent's past-conversation recall surface. Deleting drops `session_search` history. Tier-1 cleanup targets are `.worktrees\u002F`, `.gemini\u002Fantigravity-cli\u002Fbrain\u002F`, `.lvl-lanes\u002F`, `.codex\u002Fworktrees\u002F`, `.ao\u002Fdata\u002Fworktrees\u002F`, and `.claude\u002Ffile-history` (the cumulative file-edit history, regenerable).\n>\n> **Pitfall — subvolumes the alert script doesn't watch (added 2026-07-15):** `disk_usage_alert.sh` checks `\u002F` by default, which on Apple Silicon routes through the sealed `\u002Fdev\u002Fdisk3s1` snapshot — `df \u002FSystem\u002FVolumes\u002FData` is the real read for user files. **Two more subvolumes silently fill without triggering the alert:** `\u002Fdev\u002Fdisk5s1` (typically 8.5G, `\u002FLibrary\u002FCaches\u002Fcom.apple...`) and `\u002Fdev\u002Fdisk7s1` (typically 19G, `\u002FLibrary\u002FDeveloper\u002FCoreSimulator\u002F...`). When you see these at 98% in `df -h` output, the home-data disk may still report 96% — both need cleanup. Simulator caches are safe to reap with `xcrun simctl delete unavailable` + `rm -rf ~\u002FLibrary\u002FDeveloper\u002FCoreSimulator\u002FCaches\u002FDevices\u002F*`. The 8.5G `\u002FLibrary\u002FCaches` is often Xcode DerivedData or installer caches — check with `du -sh \u002FLibrary\u002FCaches\u002F* | sort -rh | head -10`.\n\nThe disk alert message body almost always contains \"Threshold: 787G\" or similar — that's the *raw* number from `df`, often in GB. Cross-check against `df -h \u002FSystem\u002FVolumes\u002FData` to confirm the alert and current free space.\n\n## The smoking gun: worktree accumulation across many pools\n\nGit worktrees accumulate in many pools, not just `\u003Crepo>\u002F.claude\u002Fworktrees\u002F`. A single user can have tens of thousands of worktree directories spread across registry-tracked and unregistered pools. **Always enumerate ALL of these before concluding \"where is the disk going\":**\n\n```bash\n# Registry-tracked pools (appear in `git worktree list`)\ndu -sh ~\u002Fprojects\u002F\u003Crepo>\u002F.claude\u002Fworktrees\u002F 2>\u002Fdev\u002Fnull        # delegate_task spawns\ndu -sh ~\u002F.worktrees\u002F\u003Corg>\u002F\u003Crepo>\u002F 2>\u002Fdev\u002Fnull                   # manual \u002F launchd-managed lanes (e.g. wa-NNNN)\ndu -sh ~\u002F.worktrees\u002F\u003Corg>_\u003Crepo>\u002F 2>\u002Fdev\u002Fnull                   # alt naming convention\ndu -sh ~\u002F.ao\u002Fdata\u002Fworktrees\u002F\u003Corg>\u002F\u003Crepo>-\u003Cid>\u002F 2>\u002Fdev\u002Fnull      # Agent Orchestrator pool\ndu -sh ~\u002F.codex\u002Fworktrees\u002F 2>\u002Fdev\u002Fnull                          # Codex CLI pool (hex-hash subdirs)\ndu -sh ~\u002F.lvl-lanes\u002F 2>\u002Fdev\u002Fnull                                # leveling\u002Fgreen-driver lanes\n\n# Unregistered pools (NOT in `git worktree list` — separate cleanup logic)\ndu -sh ~\u002F.gemini\u002Fantigravity-cli\u002Fbrain\u002F 2>\u002Fdev\u002Fnull             # antigravity brain sessions (20G+ common)\nfind ~\u002F.gemini\u002Fantigravity-cli\u002Fbrain -path '*\u002F.system_generated\u002Fworktrees\u002F*' -type d 2>\u002Fdev\u002Fnull | wc -l\n```\n\nOn `your-project.com` a single triage found: `~\u002Fprojects\u002F\u003Crepo>\u002F.claude\u002Fworktrees` 46G, `~\u002F.worktrees\u002Fworldarchitect*` 9.7G, `~\u002F.ao\u002Fdata\u002Fworktrees\u002Fworldarchitect` 3.7G, `~\u002F.codex\u002Fworktrees` 1.5G, `~\u002F.lvl-lanes` 5.3G, `~\u002F.gemini\u002Fantigravity-cli\u002Fbrain` 20G. **Total often 80-120G for one active repo.** Pick a repo with the largest `~\u002Fprojects\u002F*` footprint first.\n\n### Per-repo registry-tracked worktree triage\n\n`delegate_task` in Hermes spawns one git worktree per subagent at `\u003Crepo>\u002F.claude\u002Fworktrees\u002Fagent-\u003Chash>\u002F`. **Each worktree is a full checkout of the repo (300MB–1GB depending on repo size) plus accumulated `docs\u002F` and `evidence\u002F` directories.** They are registered with `git worktree list` but rarely cleaned up after the subagent finishes. On `your-project.com` this grew to **46G across 128 worktrees** in one session.\n\n**How to detect:**\n```bash\ndu -sh ~\u002Fprojects\u002F\u003Crepo>\u002F.claude\u002Fworktrees\u002F 2>\u002Fdev\u002Fnull  # main offender\nls ~\u002Fprojects\u002F\u003Crepo>\u002F.claude\u002Fworktrees\u002F | wc -l           # count\n```\n\n**How to assess which are safe to remove (use the script, not the awk — see scripts\u002Fparse_worktrees.py):**\n```bash\n# 1. Run the reliable Python parser (see scripts\u002Fparse_worktrees.py)\npython3 ~\u002F.hermes\u002Fskills\u002Fdevops\u002Fmac-di[REDACTED_OPENAI_KEY]\u002Fscripts\u002Fparse_worktrees.py ~\u002Fprojects\u002F\u003Crepo>\n# Outputs: total \u002F prunable_by_git \u002F locked \u002F unlocked+PR-free (Tier 1 safe) \u002F unlocked+on-PR (DO NOT DELETE)\n\n# 2. Load open PR heads for ALL repos referenced by worktrees (REST API, paginated)\ngh api 'repos\u002Fjleechanorg\u002F\u003Crepo>\u002Fpulls?state=open&per_page=100' --jq '.[] | .head.ref' > \u002Ftmp\u002Fopen_prs_\u003Crepo>.txt\ngh api 'repos\u002Fjleechanorg\u002F\u003Crepo>\u002Fpulls?state=open&per_page=100&page=2' --jq '.[] | .head.ref' >> \u002Ftmp\u002Fopen_prs_\u003Crepo>.txt\n\n# 3. Age distribution (for the antigravity \u002F unregistered pools without git state)\nfind ~\u002F.gemini\u002Fantigravity-cli\u002Fbrain -maxdepth 1 -mindepth 1 -type d -mtime -7   | wc -l  # active\nfind ~\u002F.gemini\u002Fantigravity-cli\u002Fbrain -maxdepth 1 -mindepth 1 -type d -mtime +7   | wc -l  # stale candidates\n```\n\n**Safe cleanup recipe (3 tiers, lowest risk first):**\n\n1. **Unlocked + not on open PR** (gold-standard Tier 1 — git registry's own state, cross-checked against live PRs):\n   ```bash\n   python3 ~\u002F.hermes\u002Fskills\u002Fdevops\u002Fmac-di[REDACTED_OPENAI_KEY]\u002Fscripts\u002Fparse_worktrees.py ~\u002Fprojects\u002F\u003Crepo> --delete-safe --open-pr-file \u002Ftmp\u002Fopen_prs_\u003Crepo>.txt\n   # Or manually with git:\n   git worktree list --porcelain | python3 -c '\n   import sys, subprocess, os\n   prunables = []\n   cur = None\n   for line in sys.stdin:\n       line = line.rstrip()\n       if line.startswith(\"worktree \"):\n           cur = line[len(\"worktree \"):]\n       elif line == \"locked\" or line.startswith(\"locked \"):\n           cur = None\n       elif (line == \"prunable\" or line.startswith(\"prunable \")) and cur:\n           prunables.append(cur); cur = None\n       elif line == \"\":\n           cur = None\n   for wt in prunables:\n       if os.path.isdir(wt):\n           subprocess.run([\"git\", \"worktree\", \"remove\", \"--force\", wt], check=False)\n   '\n   ```\n   Real-world: a single repo can have **hundreds** of Tier 1 candidates (one triage found 298 unlocked + PR-free worktrees in `your-project.com`, vs. 50 locked + 54 backing open PRs).\n2. **Older than 30 days + not locked + not on open PR headRefName** (looser sweep — may include unregistered pools):\n   ```bash\n   for dir in ~\u002Fprojects\u002F\u003Crepo>\u002F.claude\u002Fworktrees\u002Fagent-*\u002F; do\n     age_days=$(( ( $(date +%s) - $(stat -f %B \"$dir\") ) \u002F 86400 ))\n     [[ $age_days -lt 30 ]] && continue\n     git -C ~\u002Fprojects\u002F\u003Crepo> worktree list | grep -q \"$(basename \"$dir\")\" || continue\n     git -C ~\u002Fprojects\u002F\u003Crepo> worktree remove --force \"$dir\" 2>\u002Fdev\u002Fnull || rm -rf \"$dir\"\n   done\n   ```\n3. **8–30 days old + not locked + not on open PR:** same recipe with `[[ $age_days -lt 8 ]] && continue`.\n\n**Pitfall — `prunable` worktrees:** The earlier recipe `git worktree list --porcelain | grep -B1 'prunable'` produces **false positives** — the literal text \"prunable\" sometimes matches nearby lines that contain the substring (e.g. branch names like `pr-7980-prunable-foo`). Use the Python parser (`scripts\u002Fparse_worktrees.py`) which checks for the EXACT `prunable` keyword, or check by running `git worktree prune --dry-run -v` (true prunables appear there with a reason).\n\n**Pitfall — `locked` worktrees:** `git worktree remove` refuses to remove locked worktrees. Either unlock first (`git worktree unlock \u003Cpath>`) OR use `rm -rf` directly. Locked worktrees may be held by a *still-running* delegate session — check `ps aux | grep -i claude` before force-removing.\n\n**Pitfall — open PR branches:** Before bulk-deleting, ALWAYS load open PR heads via **`gh api ...\u002Fpulls?state=open&per_page=100`** (paginated through 2+ pages for repos with >100 open PRs) and intersect with `git worktree list`. The `gh pr list --state open --limit 200` wrapper has been seen returning **0 results intermittently** (likely a GraphQL pagination bug at the `--limit 200` boundary), so the REST API is the safer path. Always use a file (`\u002Ftmp\u002Fopen_prs_\u003Crepo>.txt`) for the intersect — pipe-based intersects break when branch names contain spaces.\n\n**Pitfall — unregistered worktree pools:** `~\u002F.worktrees\u002F`, `~\u002F.ao\u002Fdata\u002Fworktrees\u002F`, `~\u002F.codex\u002Fworktrees\u002F`, and `~\u002F.lvl-lanes\u002F` may have worktrees that are NOT in `git worktree list` of any single repo (they are registered in their own sub-pool's git dir). When cleaning these, check `git -C \u003Cpool_root>\u002F\u003Crepo_or_lane>\u002F worktree list` separately for each pool's primary working dir, not the parent pool dir.\n\n## Standard recovery tiers (priority order)\n\nWhen you've found the offenders, propose cleanup in this order (most → least reclaimable, safest → most aggressive):\n\n| Tier | Targets | Typical reclaim | Risk |\n|---|---|---|---|\n| 0. **Unregistered agent-pool cleanup** | `~\u002F.gemini\u002Fantigravity-cli\u002Fbrain\u002F\u003Cuuid>\u002F.system_generated\u002Fworktrees\u002F*` (32K+ dirs typical), 7+ days old; `~\u002F.codex\u002Fworktrees\u002F\u003Chex>\u002F*`; `~\u002F.lvl-lanes\u002F\u003Clane>` | **10-50G** | Medium — confirm no active antigravity\u002Fcodex session via `ps aux \\| grep -i 'gemini\\|codex\\|antigravity'` before bulk delete |\n| 1. Stale unlocked worktrees | `git worktree list` entries that are unlocked + not on any open PR headRefName (typically **200-500 candidates** for an active repo) | 50-150G | Low — git registry confirms safety + REST-PR cross-check |\n| 2. Stale worktrees 8-30d (unregistered paths) | `~\u002Fprojects\u002F*\u002F.claude\u002Fworktrees\u002Fagent-*` 8-30d old, NOT touched by Tier 1 | 5-30G | Low — age + filesystem check |\n| 3. iOS simulators | `~\u002FLibrary\u002FDeveloper\u002FCoreSimulator\u002FCaches\u002FDevices\u002F` | 5-10G | Low — `xcrun simctl delete unavailable` |\n| 4. Browser cache (Aside\u002FChrome) | `~\u002FLibrary\u002FApplication Support\u002FAside\u002FDefault`, `Profile 1` (NOT `~\u002FLibrary\u002FCaches\u002FAside\u002F` — both hold state) | 1-3G | Low — fully regenerable |\n| 5. Docker prune | `docker system prune -a` | 5-15G | Medium — confirm no running containers first |\n| 6. Downloads duplicates | `~\u002FDownloads\u002F*backup*`, `*v4*`, `*v6*`, etc. | 0.5-2G | Low — user judgment call |\n| 7. Photos library | `~\u002FPictures\u002FPhotos Library.photoslibrary` | 5-15G | High — user data, never auto-delete |\n| 8. **`~\u002F.lvl-lanes\u002F` \u002F `~\u002F.worktrees\u002F\u003Crepo>\u002Fwt-NNNN-*` closed-PR worktrees** | Every `wt-*` lane whose `gh pr list --state all --head \u003Cbranch>` returns a CLOSED PR — common pattern across `your-project.com` `feat\u002Flevelup-v2-*` cluster | 1-10G per cluster | Low — sync to upstream + `git worktree remove --force`. See `references\u002Flvl-lanes-closed-pr-pattern.md`. |\n| 9. APFS subvolumes (`\u002Fdev\u002Fdisk5s1`, `\u002Fdev\u002Fdisk7s1`) | `\u002FLibrary\u002FCaches\u002F*` (Xcode DerivedData, installer caches); `~\u002FLibrary\u002FDeveloper\u002FCoreSimulator\u002FCaches\u002FDevices\u002F*` | 5-25G | Low — `xcrun simctl delete unavailable` for simulators; inspect `\u002FLibrary\u002FCaches\u002F*` before deletion. **Alert script does NOT watch these** — see Pitfall below. |\n\nAlways present tiers 1–4 as \"do now\", tier 5 as \"if Docker is running\", tier 6 as \"you decide\", and tier 7 as \"never auto-touch — flag for user review.\"\n\n## The disk alert script contract\n\nThe canonical macOS di[REDACTED_OPENAI_KEY] watchdog (in `~\u002FLibrary\u002FApplication Support\u002Fuser-scope\u002Fbin\u002F`):\n- `disk_usage_alert.sh` — checks `\u002F` by default, posts to Slack\n- `disk_usage_alert.sh --silence` — writes `$HOME\u002F.di[REDACTED_OPENAI_KEY]`, suppresses future alerts\n- `disk_usage_alert.sh --unsilence` — re-enables\n- `disk_usage_alert.sh --status` — print current state and threshold\n\n**When to silence during cleanup:** If you're doing a 10+ minute sweep that will temporarily keep usage high (e.g. copying out files before deleting), `--silence` first, then `--unsilence` when done. Otherwise the watchdog will spam mid-job.\n\n**Threshold tuning:** `DISK_ALERT_THRESHOLD_GB` env var. Default derives from 90% of disk capacity. Override in the launchd plist if the default fires too aggressively.\n\n## Companion skills\n\n- `hermes-health-check` — gateway\u002FQdrant\u002FSlack-side health (different concern; disk pressure is filesystem-side).\n- `slack-thread-routing-investigation` — for posting the report to Slack if the bot gets `not_in_channel`.\n\n## Support files\n\n- `scripts\u002Fparse_worktrees.py` — reliable porcelain parser + Tier-1 classifier; replaces the awk\u002Fgrep \"prunable\" pattern that produces false positives.\n- `references\u002F2026-07-14-15-apfs-lazy-purge-di[REDACTED_OPENAI_KEY]` — first documented instance of the APFS drift trap (Trace #3).\n- `references\u002Fworldarchitect-claude-worktree-leak-2026-07-14.md` — first documented instance of the `.claude\u002Fworktrees\u002Fagent-*` accumulation pattern.\n- `references\u002Flvl-lanes-closed-pr-pattern.md` — recurring `~\u002F.lvl-lanes\u002Fwt-lvl-pr\u003CN>\u002F` and `~\u002F.worktrees\u002F\u003Crepo>\u002Fwa-NNNN-*\u002F` closed-PR worktree reaping recipe (your-project.com fleet, 5-25G per cluster).\n- `references\u002F2026-07-31-state-db-wal-runaway-95gib.md` — Trap #5 instance: `~\u002F.hermes\u002Fstate.db-wal` ballooned to 95 GiB held open by `hermes gateway` PID 48473; verified diagnosis ladder + recovery recipe. **Also covers the user-facing `Idle.` \u002F `:hourglass_flowing_sand:` gateway re-prompt loop signature, the runtime-level safety guard that blocks `launchctl kickstart` \u002F `nohup` from inside the gateway session, and the working alert-script path via `terminal(background=true)`.**\n- `references\u002F2026-08-02-slack-post-under-enospc.md` — recipe for delivering a status message when the disk is full and the agent terminal is on hardline block: standalone `export HERMES_SLACK_BOT_TOKEN` + `echo '...' | curl --data-binary @-` (avoids `\u002Ftmp` redirects that fail with ENOSPC).\n\n## Reporting findings to the user (template)\n\nWhen reporting disk pressure, use this structure (matches the Slack-friendly section format):\n\n```\n? **Disk pressure report — \u003CN>% (\u003Cused>G\u002F\u003Ctotal>G, \u003Cfree>G free)**\n\n? Big offenders:\n- \u003Cpath> (\u003Csize>) — \u003Cone-line description>\n- \u003Cpath> (\u003Csize>) — \u003Cdescription>\n\n? Safe cleanup proposal (lowest → highest risk):\n1. \u003Caction> → ~\u003CN>G back\n2. \u003Caction> → ~\u003CN>G back\n\nPick a tier or \"just show me the list\" for surgical delete.\n```\n\nAlways include the actual `df -h \u002FSystem\u002FVolumes\u002FData` output as proof. Don't just say \"disk is full\" — show the exact number.\n\n## Companion skills\n\n- `hermes-health-check` — gateway\u002FQdrant\u002FSlack-side health (different concern; disk pressure is filesystem-side).\n- `slack-thread-routing-investigation` — for posting the report to Slack if the bot gets `not_in_channel`.","# macOS Disk Pressure Triage\n\n## Trap #1 — `df \u002F` lies on Apple Silicon (sealed system volume)\n\nOn modern macOS (11+), `df -h \u002F` returns numbers for the **sealed read-only system snapshot** (`\u002Fdev\u002Fdisk3s1s1` \u002F `\u002Fdev\u002Fdisk3s1`), which holds only ~17G of system files. **The real user-data volume is `\u002Fdev\u002Fdisk3s5` mounted at `\u002FSystem\u002FVolumes\u002FData`.** A \"disk full\" alert that fires because `df \u002F` looks fine is real — the sealed volume is full of pre-allocated APFS snapshots and the user's files live on the Data volume.\n\n**Always start with:**\n```bash\ndf -h \u002FSystem\u002FVolumes\u002FData\n```\nThat number is the truth. If `df -h \u002F` says 27% used but `\u002FSystem\u002FVolumes\u002FData` says 96% used, trust the Data volume. The alert script at `~\u002FLibrary\u002FApplication Support\u002Fuser-scope\u002Fbin\u002Fdisk_usage_alert.sh` defaults to checking `\u002F`, which can understate real pressure — read both.\n\n## Trap #3 — APFS purgable space makes successive `df` readings drift (2026-07-14 instance)\n\n**Symptom:** successive `df -h \u002FSystem\u002FVolumes\u002FData` readings taken minutes apart can show wildly different free-space values (observed 21 Gi free at 17:18 PT → 53 Gi free at 17:23 PT on the same disk with no user-driven cleanup in between). The disk-alert script fires on one snapshot, the agent reads 21G free, the user sees 53G free in real life, and the triage report overstates pressure.\n\n**Root cause:** APFS maintains **\"purgeable space\"** — blocks held by older Time Machine snapshots, APFS snapshots, and `tmutil` artifacts that are allocated but reclaimable on demand. The kernel returns a conservative free-space estimate on the first read after a high-water-mark event (a big write, a snapshot rotation, an Xcode build) and re-reconciles the actual reclaimable blocks lazily as `photolibraryd`, `bird`, and `deleted` reaped in the background. Five minutes later the same `df` can show tens of gigabytes more free.\n\n**Mitigation — read 3-4 successive `df`s before reporting the baseline:**\n```bash\nfor i in 1 2 3 4; do\n  df -h \u002FSystem\u002FVolumes\u002FData | tail -1 | awk -v i=$i '{print \"Read \" i \": \" $4 \" free (\" $5 \" used)\"}'\ndone\n```\nIf the four reads converge, that number is the real baseline; report it. If they drift, wait 60s and re-read — APFS reconciliation is usually settled within a minute. **Do NOT report the very first `df` reading as the post-cleanup baseline** right after the alert fired — wait for convergence or specifically tag the reading as \"mid-reconciliation\" so the user knows it's an upper bound.\n\n**Also worth running to confirm purgable reality:**\n```bash\ndiskutil apfs list 2>&1 | grep -A2 \"Volume .* Data\"\ntmutil listlocalsnapshots \u002F 2>\u002Fdev\u002Fnull | head -10\n```\nA long `tmutil listlocalsnapshots` output means APFS is holding pre-purge Time Machine snapshots that account for most of the drift — those are SAFE to delete with `tmutil deletelocalsnapshots \u003Cdate>` if you've reconciled Time Machine backups first, but that's a user-decision call, not an autonomous cleanup.\n\n## Trap #5 — `state.db-wal` runaway is the silent disk hog (added 2026-07-31)\n\n**Symptom:** Disk at 100%, no obvious culprit. `du -sh ~\u002F.hermes\u002F*` shows `state.db-wal` at **95+ GiB** while `state.db` is only ~6 GiB. Recurring `OSError [Errno 28] No space left on device: '$HOME\u002F.hermes\u002Fsessions\u002F.sessions_*.tmp'` errors in the gateway log — these are symptoms of disk-full, NOT the cause.\n\n**Root cause:** SQLite WAL-mode journaling. Every gateway write (session append, cron tick, message ingest) appends to `state.db-wal`. The WAL is checkpointed back into `state.db` and truncated only when no writer holds an open transaction. The `hermes gateway` Python process holds long-lived write txns (4h+ sessions observed), so the WAL grows unbounded instead of being recycled. **Verified 2026-07-31:** PID 48473 = `hermes gateway run`, holding 10+ FDs open on `state.db-wal`, runtime 4h18m, WAL = 95 GiB.\n\n**Why `rm .sessions_*.tmp` doesn't help:** Tmp files are only a few KB each; the gateway writes a fresh one per turn. Even if you delete them all, the next gateway turn hits ENOSPC again because the WAL is the real consumer. Don't loop on tmp cleanup — diagnose the WAL first.\n\n**Diagnosis ladder (in this order):**\n\n```bash\n# 1. Confirm WAL runaway (expect WAL >> main DB)\ndu -sh ~\u002F.hermes\u002Fstate.db ~\u002F.hermes\u002Fstate.db-wal ~\u002F.hermes\u002Fstate.db-shm 2>\u002Fdev\u002Fnull\n\n# 2. Identify the writer holding the WAL open\nlsof ~\u002F.hermes\u002Fstate.db-wal 2>\u002Fdev\u002Fnull\n# Typical: \u002Fopt\u002Fhomebrew\u002FCellar\u002Fpython@3.13\u002F...\u002FPython $HOME\u002F.local\u002Fbin\u002Fhermes gateway run\n\n# 3. Confirm it's the gateway (NOT a transient tool like sqlite3)\nps -p \u003Cpid> -o pid,user,etime,command\n# Etime > 1h + command = \"hermes gateway run\" → this is the long-lived writer\n\n# 4. Try a passive checkpoint (will fail while writer holds txns — that confirms the trap)\nsqlite3 ~\u002F.hermes\u002Fstate.db \"PRAGMA wal_checkpoint(PASSIVE);\"\n# Expected: 1|\u003Cbusy>|\u003Ccheckpointed> with busy frames > 0 while writer is live\n\n# 5. Force a TRUNCATE checkpoint — likely reports success but file doesn't shrink\nsqlite3 ~\u002F.hermes\u002Fstate.db \"PRAGMA wal_checkpoint(TRUNCATE);\"\nls -lh ~\u002F.hermes\u002Fstate.db-wal\n# If size unchanged → writer is holding the WAL mmap; safe truncate impossible while it lives\n```\n\n**Safe recovery path (user-approved, NOT autonomous):**\n\n1. **Stop writing.** `cronjob pause` on heavy cron jobs (audit-firing, dropped-thread-followup) — they append to the WAL.\n2. **Ask the user to restart the gateway.** `hermes gateway stop && hermes gateway start` (or `launchctl kickstart -k gui\u002F$(id -u)\u002Fai.hermes.gateway`). When the gateway PID exits, all its FDs on the WAL close. A fresh sqlite3 session against `state.db` can then `PRAGMA wal_checkpoint(TRUNCATE);` and the WAL truncates to ~0 bytes.\n3. **Verify reclaim.** `df -h \u002FSystem\u002FVolumes\u002FData` should jump by ~95 GiB. `du -sh ~\u002F.hermes\u002Fstate.db-wal` should be ~0 (or a few KB for the active WAL window).\n4. **Long-term prevention.** Add a daily cron that runs `sqlite3 ~\u002F.hermes\u002Fstate.db \"PRAGMA wal_checkpoint(TRUNCATE);\"` from a separate process (NOT the gateway). If the gateway's txns block it, the cron logs the busy-frame count as a health metric. WAL > 1 GiB for >24h = gateway-bug signal, post a Slack alert.\n\n**Forbidden (autonomous-recovery footguns):**\n- `kill -9` on the gateway PID — drops Slack relay, cron workers, and all in-flight sessions. User approval required.\n- `rm ~\u002F.hermes\u002Fstate.db-wal` while gateway is running — corrupts the DB on next write; gateway will need a full restart anyway AND a recovery.\n- `sqlite3 ... .recover` \u002F `.backup` against a live gateway-held DB — reads see partial WAL state, backup may be inconsistent.\n- Looping `rm .sessions_*.tmp` — wastes turns, doesn't free meaningful space, masks the real problem.\n\n**Diagnostic signal — is it the WAL or something else?** Run `du -sh ~\u002F.hermes\u002F* 2>\u002Fdev\u002Fnull | sort -rh | head -10`. If `state.db-wal` is in the top 3 and is >> `state.db`, this trap applies. If WAL is normal but `projects\u002F*` or `Library\u002FCaches\u002F*` is the offender, fall back to the standard tier ladder above.\n\n## Trap #4 — EA-sweep disk numbers are stale by N hours; verify live before quoting (added 2026-07-21)\n\nEA sweeps capture disk pressure at brief-time (e.g. 12:00 PT) and reference it again at 16:00 PT. **The number in the sweep is not the number the user sees now.** Real instance 2026-07-21: sweep reported `data volume 93% (809Gi used \u002F 67Gi free)`; a later sweep within the same day appeared to escalate but the live `df -h \u002FSystem\u002FVolumes\u002FData` confirmed 67 Gi free (stable across 4 successive 2s reads, no APFS reconciliation drift).\n\nWhen an EA sweep or alert-script number drives a triage reply:\n\n1. Run `df -h \u002FSystem\u002FVolumes\u002FData` fresh (do not trust the sweep's quoted percentage).\n2. Cross-check against `diskutil apfs list | grep -A2 \"Volume .* Data\"` for container-level ceiling + consumed.\n3. **Always also report the iOS Simulator subvolumes** — `\u002Fdev\u002Fdisk5s1` (typically 8.5–9 GiB iOS Bundle, often >95%) and `\u002Fdev\u002Fdisk7s1` (typically 19–20 GiB iOS Simulator, often >95%). The `disk_usage_alert.sh` script does NOT watch these. Without them, a triage misses 28 GiB of commonly-fillable space on Apple Silicon dev machines.\n4. If the live number is materially different from the sweep number (more free, fewer offenders), say so explicitly: \"Sweep reported X; live read is Y\" — and base the recommendation on Y.\n\nCompanion pitfall — do NOT delete worktrees, caches, snapshots, or user data during a verification reply. Triage replies classify and propose; cleanup is a separate user-approved action. The 89 hermes\u002Fagent processes, 6 docker runners, and 6 active `ez-mac-runner-b-N` containers observed on 2026-07-21 are the live-working set; bulk worktree deletion against them would terminate active jobs.\n\n## Trap #2 — `du -sh ~` and `du -sh \u002FUsers\u002F*` time out at scale\n\nWhen the disk has 300+ project subdirectories or millions of files, `du` on the entire home directory can take >10 minutes and hit the 180s tool timeout. **Don't try to enumerate the whole tree at once.** Drill in by category:\n\n```bash\n# 1. Top-level categories (fast, ~5s each)\ndu -sh ~\u002FLibrary\u002F* 2>\u002Fdev\u002Fnull | sort -rh | head -10\ndu -sh ~\u002FDocuments ~\u002FDownloads ~\u002FDesktop ~\u002FMovies ~\u002FMusic ~\u002FPictures 2>\u002Fdev\u002Fnull\n\n# 2. Project\u002Fwork dirs (may need -d 2 if too slow) — PREFER -d 1, NOT bare glob\ndu -d 1 -sh ~\u002Fprojects\u002F* 2>\u002Fdev\u002Fnull | sort -rh | head -20\ndu -sh ~\u002Fprojects\u002Fworktree_* 2>\u002Fdev\u002Fnull | sort -rh | head -20\n\n# 3. Hidden dirs at known accumulation points\ndu -sh ~\u002Fprojects\u002F\u003Crepo>\u002F.claude\u002Fworktrees\u002F 2>\u002Fdev\u002Fnull\ndu -sh ~\u002FLibrary\u002FDeveloper\u002FCoreSimulator\u002F* 2>\u002Fdev\u002Fnull | sort -rh | head -5\ndu -sh ~\u002FLibrary\u002FApplication\\ Support\u002FAside\u002F* 2>\u002Fdev\u002Fnull | sort -rh | head -5\n```\n\n> **Pitfall (added 2026-07-15):** `du -sh ~\u002F*` and `du -sh \u002FUsers\u002F*` with a bare glob can enumerate 200+ subdirs and time out hard (180s limit). Use **`du -d 1 -sh`** (one level, ~30s total) or enumerate specific candidates individually via a list. If `du` repeatedly returns no output without timing out, suspect an APFS snapshot conflict or a corrupted dirent cache — try `ls` first to confirm the path exists.\n>\n> **Pitfall — `du -d 1 -sh` returns empty output on certain pools (added 2026-07-15):** `du -d 1 -sh ~\u002F.worktrees\u002F*` and `du -d 1 -sh ~\u002F.gemini\u002Fantigravity-cli\u002Fbrain\u002F*` can return **no output at all** (not an error, not a timeout) when the dir has 50+ entries with mixed perm bits or when shell glob expansion interacts badly with the dotfile path. The diagnostic step that always works is a per-entry loop: `for d in \u003Cpool>\u002F*\u002F; do du -sh \"$d\" 2>\u002Fdev\u002Fnull; done | sort -rh | head -15`. Use that instead of `du -d 1 -sh \u003Cpool>\u002F*`. Same trap applies to `du -d 1 -sh ~\u002F.claude\u002F*` which additionally times out at 180s with the 50KB stdout cap (~1247 entries on a busy `.claude\u002Fprojects\u002F`).\n>\n> **Pitfall — `~\u002F.claude\u002Fprojects\u002F` is session metadata, NOT garbage (added 2026-07-15):** When `du -d 1 -sh ~\u002F.claude\u002F*` reports `~\u002F.claude\u002Fprojects\u002F` at 7G+ across ~1200+ entries, **do not propose deleting it**. Each entry is a `\u003Ccwd-hash>\u002F\u003Csession-id>.jsonl` transcript file — the agent's past-conversation recall surface. Deleting drops `session_search` history. Tier-1 cleanup targets are `.worktrees\u002F`, `.gemini\u002Fantigravity-cli\u002Fbrain\u002F`, `.lvl-lanes\u002F`, `.codex\u002Fworktrees\u002F`, `.ao\u002Fdata\u002Fworktrees\u002F`, and `.claude\u002Ffile-history` (the cumulative file-edit history, regenerable).\n>\n> **Pitfall — subvolumes the alert script doesn't watch (added 2026-07-15):** `disk_usage_alert.sh` checks `\u002F` by default, which on Apple Silicon routes through the sealed `\u002Fdev\u002Fdisk3s1` snapshot — `df \u002FSystem\u002FVolumes\u002FData` is the real read for user files. **Two more subvolumes silently fill without triggering the alert:** `\u002Fdev\u002Fdisk5s1` (typically 8.5G, `\u002FLibrary\u002FCaches\u002Fcom.apple...`) and `\u002Fdev\u002Fdisk7s1` (typically 19G, `\u002FLibrary\u002FDeveloper\u002FCoreSimulator\u002F...`). When you see these at 98% in `df -h` output, the home-data disk may still report 96% — both need cleanup. Simulator caches are safe to reap with `xcrun simctl delete unavailable` + `rm -rf ~\u002FLibrary\u002FDeveloper\u002FCoreSimulator\u002FCaches\u002FDevices\u002F*`. The 8.5G `\u002FLibrary\u002FCaches` is often Xcode DerivedData or installer caches — check with `du -sh \u002FLibrary\u002FCaches\u002F* | sort -rh | head -10`.\n\nThe disk alert message body almost always contains \"Threshold: 787G\" or similar — that's the *raw* number from `df`, often in GB. Cross-check against `df -h \u002FSystem\u002FVolumes\u002FData` to confirm the alert and current free space.\n\n## The smoking gun: worktree accumulation across many pools\n\nGit worktrees accumulate in many pools, not just `\u003Crepo>\u002F.claude\u002Fworktrees\u002F`. A single user can have tens of thousands of worktree directories spread across registry-tracked and unregistered pools. **Always enumerate ALL of these before concluding \"where is the disk going\":**\n\n```bash\n# Registry-tracked pools (appear in `git worktree list`)\ndu -sh ~\u002Fprojects\u002F\u003Crepo>\u002F.claude\u002Fworktrees\u002F 2>\u002Fdev\u002Fnull        # delegate_task spawns\ndu -sh ~\u002F.worktrees\u002F\u003Corg>\u002F\u003Crepo>\u002F 2>\u002Fdev\u002Fnull                   # manual \u002F launchd-managed lanes (e.g. wa-NNNN)\ndu -sh ~\u002F.worktrees\u002F\u003Corg>_\u003Crepo>\u002F 2>\u002Fdev\u002Fnull                   # alt naming convention\ndu -sh ~\u002F.ao\u002Fdata\u002Fworktrees\u002F\u003Corg>\u002F\u003Crepo>-\u003Cid>\u002F 2>\u002Fdev\u002Fnull      # Agent Orchestrator pool\ndu -sh ~\u002F.codex\u002Fworktrees\u002F 2>\u002Fdev\u002Fnull                          # Codex CLI pool (hex-hash subdirs)\ndu -sh ~\u002F.lvl-lanes\u002F 2>\u002Fdev\u002Fnull                                # leveling\u002Fgreen-driver lanes\n\n# Unregistered pools (NOT in `git worktree list` — separate cleanup logic)\ndu -sh ~\u002F.gemini\u002Fantigravity-cli\u002Fbrain\u002F 2>\u002Fdev\u002Fnull             # antigravity brain sessions (20G+ common)\nfind ~\u002F.gemini\u002Fantigravity-cli\u002Fbrain -path '*\u002F.system_generated\u002Fworktrees\u002F*' -type d 2>\u002Fdev\u002Fnull | wc -l\n```\n\nOn `your-project.com` a single triage found: `~\u002Fprojects\u002F\u003Crepo>\u002F.claude\u002Fworktrees` 46G, `~\u002F.worktrees\u002Fworldarchitect*` 9.7G, `~\u002F.ao\u002Fdata\u002Fworktrees\u002Fworldarchitect` 3.7G, `~\u002F.codex\u002Fworktrees` 1.5G, `~\u002F.lvl-lanes` 5.3G, `~\u002F.gemini\u002Fantigravity-cli\u002Fbrain` 20G. **Total often 80-120G for one active repo.** Pick a repo with the largest `~\u002Fprojects\u002F*` footprint first.\n\n### Per-repo registry-tracked worktree triage\n\n`delegate_task` in Hermes spawns one git worktree per subagent at `\u003Crepo>\u002F.claude\u002Fworktrees\u002Fagent-\u003Chash>\u002F`. **Each worktree is a full checkout of the repo (300MB–1GB depending on repo size) plus accumulated `docs\u002F` and `evidence\u002F` directories.** They are registered with `git worktree list` but rarely cleaned up after the subagent finishes. On `your-project.com` this grew to **46G across 128 worktrees** in one session.\n\n**How to detect:**\n```bash\ndu -sh ~\u002Fprojects\u002F\u003Crepo>\u002F.claude\u002Fworktrees\u002F 2>\u002Fdev\u002Fnull  # main offender\nls ~\u002Fprojects\u002F\u003Crepo>\u002F.claude\u002Fworktrees\u002F | wc -l           # count\n```\n\n**How to assess which are safe to remove (use the script, not the awk — see scripts\u002Fparse_worktrees.py):**\n```bash\n# 1. Run the reliable Python parser (see scripts\u002Fparse_worktrees.py)\npython3 ~\u002F.hermes\u002Fskills\u002Fdevops\u002Fmac-di[REDACTED_OPENAI_KEY]\u002Fscripts\u002Fparse_worktrees.py ~\u002Fprojects\u002F\u003Crepo>\n# Outputs: total \u002F prunable_by_git \u002F locked \u002F unlocked+PR-free (Tier 1 safe) \u002F unlocked+on-PR (DO NOT DELETE)\n\n# 2. Load open PR heads for ALL repos referenced by worktrees (REST API, paginated)\ngh api 'repos\u002Fjleechanorg\u002F\u003Crepo>\u002Fpulls?state=open&per_page=100' --jq '.[] | .head.ref' > \u002Ftmp\u002Fopen_prs_\u003Crepo>.txt\ngh api 'repos\u002Fjleechanorg\u002F\u003Crepo>\u002Fpulls?state=open&per_page=100&page=2' --jq '.[] | .head.ref' >> \u002Ftmp\u002Fopen_prs_\u003Crepo>.txt\n\n# 3. Age distribution (for the antigravity \u002F unregistered pools without git state)\nfind ~\u002F.gemini\u002Fantigravity-cli\u002Fbrain -maxdepth 1 -mindepth 1 -type d -mtime -7   | wc -l  # active\nfind ~\u002F.gemini\u002Fantigravity-cli\u002Fbrain -maxdepth 1 -mindepth 1 -type d -mtime +7   | wc -l  # stale candidates\n```\n\n**Safe cleanup recipe (3 tiers, lowest risk first):**\n\n1. **Unlocked + not on open PR** (gold-standard Tier 1 — git registry's own state, cross-checked against live PRs):\n   ```bash\n   python3 ~\u002F.hermes\u002Fskills\u002Fdevops\u002Fmac-di[REDACTED_OPENAI_KEY]\u002Fscripts\u002Fparse_worktrees.py ~\u002Fprojects\u002F\u003Crepo> --delete-safe --open-pr-file \u002Ftmp\u002Fopen_prs_\u003Crepo>.txt\n   # Or manually with git:\n   git worktree list --porcelain | python3 -c '\n   import sys, subprocess, os\n   prunables = []\n   cur = None\n   for line in sys.stdin:\n       line = line.rstrip()\n       if line.startswith(\"worktree \"):\n           cur = line[len(\"worktree \"):]\n       elif line == \"locked\" or line.startswith(\"locked \"):\n           cur = None\n       elif (line == \"prunable\" or line.startswith(\"prunable \")) and cur:\n           prunables.append(cur); cur = None\n       elif line == \"\":\n           cur = None\n   for wt in prunables:\n       if os.path.isdir(wt):\n           subprocess.run([\"git\", \"worktree\", \"remove\", \"--force\", wt], check=False)\n   '\n   ```\n   Real-world: a single repo can have **hundreds** of Tier 1 candidates (one triage found 298 unlocked + PR-free worktrees in `your-project.com`, vs. 50 locked + 54 backing open PRs).\n2. **Older than 30 days + not locked + not on open PR headRefName** (looser sweep — may include unregistered pools):\n   ```bash\n   for dir in ~\u002Fprojects\u002F\u003Crepo>\u002F.claude\u002Fworktrees\u002Fagent-*\u002F; do\n     age_days=$(( ( $(date +%s) - $(stat -f %B \"$dir\") ) \u002F 86400 ))\n     [[ $age_days -lt 30 ]] && continue\n     git -C ~\u002Fprojects\u002F\u003Crepo> worktree list | grep -q \"$(basename \"$dir\")\" || continue\n     git -C ~\u002Fprojects\u002F\u003Crepo> worktree remove --force \"$dir\" 2>\u002Fdev\u002Fnull || rm -rf \"$dir\"\n   done\n   ```\n3. **8–30 days old + not locked + not on open PR:** same recipe with `[[ $age_days -lt 8 ]] && continue`.\n\n**Pitfall — `prunable` worktrees:** The earlier recipe `git worktree list --porcelain | grep -B1 'prunable'` produces **false positives** — the literal text \"prunable\" sometimes matches nearby lines that contain the substring (e.g. branch names like `pr-7980-prunable-foo`). Use the Python parser (`scripts\u002Fparse_worktrees.py`) which checks for the EXACT `prunable` keyword, or check by running `git worktree prune --dry-run -v` (true prunables appear there with a reason).\n\n**Pitfall — `locked` worktrees:** `git worktree remove` refuses to remove locked worktrees. Either unlock first (`git worktree unlock \u003Cpath>`) OR use `rm -rf` directly. Locked worktrees may be held by a *still-running* delegate session — check `ps aux | grep -i claude` before force-removing.\n\n**Pitfall — open PR branches:** Before bulk-deleting, ALWAYS load open PR heads via **`gh api ...\u002Fpulls?state=open&per_page=100`** (paginated through 2+ pages for repos with >100 open PRs) and intersect with `git worktree list`. The `gh pr list --state open --limit 200` wrapper has been seen returning **0 results intermittently** (likely a GraphQL pagination bug at the `--limit 200` boundary), so the REST API is the safer path. Always use a file (`\u002Ftmp\u002Fopen_prs_\u003Crepo>.txt`) for the intersect — pipe-based intersects break when branch names contain spaces.\n\n**Pitfall — unregistered worktree pools:** `~\u002F.worktrees\u002F`, `~\u002F.ao\u002Fdata\u002Fworktrees\u002F`, `~\u002F.codex\u002Fworktrees\u002F`, and `~\u002F.lvl-lanes\u002F` may have worktrees that are NOT in `git worktree list` of any single repo (they are registered in their own sub-pool's git dir). When cleaning these, check `git -C \u003Cpool_root>\u002F\u003Crepo_or_lane>\u002F worktree list` separately for each pool's primary working dir, not the parent pool dir.\n\n## Standard recovery tiers (priority order)\n\nWhen you've found the offenders, propose cleanup in this order (most → least reclaimable, safest → most aggressive):\n\n| Tier | Targets | Typical reclaim | Risk |\n|---|---|---|---|\n| 0. **Unregistered agent-pool cleanup** | `~\u002F.gemini\u002Fantigravity-cli\u002Fbrain\u002F\u003Cuuid>\u002F.system_generated\u002Fworktrees\u002F*` (32K+ dirs typical), 7+ days old; `~\u002F.codex\u002Fworktrees\u002F\u003Chex>\u002F*`; `~\u002F.lvl-lanes\u002F\u003Clane>` | **10-50G** | Medium — confirm no active antigravity\u002Fcodex session via `ps aux \\| grep -i 'gemini\\|codex\\|antigravity'` before bulk delete |\n| 1. Stale unlocked worktrees | `git worktree list` entries that are unlocked + not on any open PR headRefName (typically **200-500 candidates** for an active repo) | 50-150G | Low — git registry confirms safety + REST-PR cross-check |\n| 2. Stale worktrees 8-30d (unregistered paths) | `~\u002Fprojects\u002F*\u002F.claude\u002Fworktrees\u002Fagent-*` 8-30d old, NOT touched by Tier 1 | 5-30G | Low — age + filesystem check |\n| 3. iOS simulators | `~\u002FLibrary\u002FDeveloper\u002FCoreSimulator\u002FCaches\u002FDevices\u002F` | 5-10G | Low — `xcrun simctl delete unavailable` |\n| 4. Browser cache (Aside\u002FChrome) | `~\u002FLibrary\u002FApplication Support\u002FAside\u002FDefault`, `Profile 1` (NOT `~\u002FLibrary\u002FCaches\u002FAside\u002F` — both hold state) | 1-3G | Low — fully regenerable |\n| 5. Docker prune | `docker system prune -a` | 5-15G | Medium — confirm no running containers first |\n| 6. Downloads duplicates | `~\u002FDownloads\u002F*backup*`, `*v4*`, `*v6*`, etc. | 0.5-2G | Low — user judgment call |\n| 7. Photos library | `~\u002FPictures\u002FPhotos Library.photoslibrary` | 5-15G | High — user data, never auto-delete |\n| 8. **`~\u002F.lvl-lanes\u002F` \u002F `~\u002F.worktrees\u002F\u003Crepo>\u002Fwt-NNNN-*` closed-PR worktrees** | Every `wt-*` lane whose `gh pr list --state all --head \u003Cbranch>` returns a CLOSED PR — common pattern across `your-project.com` `feat\u002Flevelup-v2-*` cluster | 1-10G per cluster | Low — sync to upstream + `git worktree remove --force`. See `references\u002Flvl-lanes-closed-pr-pattern.md`. |\n| 9. APFS subvolumes (`\u002Fdev\u002Fdisk5s1`, `\u002Fdev\u002Fdisk7s1`) | `\u002FLibrary\u002FCaches\u002F*` (Xcode DerivedData, installer caches); `~\u002FLibrary\u002FDeveloper\u002FCoreSimulator\u002FCaches\u002FDevices\u002F*` | 5-25G | Low — `xcrun simctl delete unavailable` for simulators; inspect `\u002FLibrary\u002FCaches\u002F*` before deletion. **Alert script does NOT watch these** — see Pitfall below. |\n\nAlways present tiers 1–4 as \"do now\", tier 5 as \"if Docker is running\", tier 6 as \"you decide\", and tier 7 as \"never auto-touch — flag for user review.\"\n\n## The disk alert script contract\n\nThe canonical macOS di[REDACTED_OPENAI_KEY] watchdog (in `~\u002FLibrary\u002FApplication Support\u002Fuser-scope\u002Fbin\u002F`):\n- `disk_usage_alert.sh` — checks `\u002F` by default, posts to Slack\n- `disk_usage_alert.sh --silence` — writes `$HOME\u002F.di[REDACTED_OPENAI_KEY]`, suppresses future alerts\n- `disk_usage_alert.sh --unsilence` — re-enables\n- `disk_usage_alert.sh --status` — print current state and threshold\n\n**When to silence during cleanup:** If you're doing a 10+ minute sweep that will temporarily keep usage high (e.g. copying out files before deleting), `--silence` first, then `--unsilence` when done. Otherwise the watchdog will spam mid-job.\n\n**Threshold tuning:** `DISK_ALERT_THRESHOLD_GB` env var. Default derives from 90% of disk capacity. Override in the launchd plist if the default fires too aggressively.\n\n## Companion skills\n\n- `hermes-health-check` — gateway\u002FQdrant\u002FSlack-side health (different concern; disk pressure is filesystem-side).\n- `slack-thread-routing-investigation` — for posting the report to Slack if the bot gets `not_in_channel`.\n\n## Support files\n\n- `scripts\u002Fparse_worktrees.py` — reliable porcelain parser + Tier-1 classifier; replaces the awk\u002Fgrep \"prunable\" pattern that produces false positives.\n- `references\u002F2026-07-14-15-apfs-lazy-purge-di[REDACTED_OPENAI_KEY]` — first documented instance of the APFS drift trap (Trace #3).\n- `references\u002Fworldarchitect-claude-worktree-leak-2026-07-14.md` — first documented instance of the `.claude\u002Fworktrees\u002Fagent-*` accumulation pattern.\n- `references\u002Flvl-lanes-closed-pr-pattern.md` — recurring `~\u002F.lvl-lanes\u002Fwt-lvl-pr\u003CN>\u002F` and `~\u002F.worktrees\u002F\u003Crepo>\u002Fwa-NNNN-*\u002F` closed-PR worktree reaping recipe (your-project.com fleet, 5-25G per cluster).\n- `references\u002F2026-07-31-state-db-wal-runaway-95gib.md` — Trap #5 instance: `~\u002F.hermes\u002Fstate.db-wal` ballooned to 95 GiB held open by `hermes gateway` PID 48473; verified diagnosis ladder + recovery recipe. **Also covers the user-facing `Idle.` \u002F `:hourglass_flowing_sand:` gateway re-prompt loop signature, the runtime-level safety guard that blocks `launchctl kickstart` \u002F `nohup` from inside the gateway session, and the working alert-script path via `terminal(background=true)`.**\n- `references\u002F2026-08-02-slack-post-under-enospc.md` — recipe for delivering a status message when the disk is full and the agent terminal is on hardline block: standalone `export HERMES_SLACK_BOT_TOKEN` + `echo '...' | curl --data-binary @-` (avoids `\u002Ftmp` redirects that fail with ENOSPC).\n\n## Reporting findings to the user (template)\n\nWhen reporting disk pressure, use this structure (matches the Slack-friendly section format):\n\n```\n? **Disk pressure report — \u003CN>% (\u003Cused>G\u002F\u003Ctotal>G, \u003Cfree>G free)**\n\n? Big offenders:\n- \u003Cpath> (\u003Csize>) — \u003Cone-line description>\n- \u003Cpath> (\u003Csize>) — \u003Cdescription>\n\n? Safe cleanup proposal (lowest → highest risk):\n1. \u003Caction> → ~\u003CN>G back\n2. \u003Caction> → ~\u003CN>G back\n\nPick a tier or \"just show me the list\" for surgical delete.\n```\n\nAlways include the actual `df -h \u002FSystem\u002FVolumes\u002FData` output as proof. Don't just say \"disk is full\" — show the exact number.\n\n## Companion skills\n\n- `hermes-health-check` — gateway\u002FQdrant\u002FSlack-side health (different concern; disk pressure is filesystem-side).\n- `slack-thread-routing-investigation` — for posting the report to Slack if the bot gets `not_in_channel`.",{"name":5,"triggers":55,"description":7},[56,57,58,59,60,61,62,63,64,65,66],"disk full","low disk space","running out of disk","reclaim disk","free up space","what is eating my disk","disk usage alert","disk-alert","threshold exceeded","capacity 95","capacity 90","main","42ccd02cbf5e8e47839dc3eab6fc754dc6b339cf","hermes\u002Fskills\u002Fdevops\u002Fmac-disk-pressure-triage",0,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills","https:\u002F\u002Fgithub.com\u002Fjleechanorg","2026-11-14 14:55:35",{"source":8,"skillName":5,"commands":75,"prompt":85,"zipAvailable":86},[76,79,82],{"tool":77,"command":78},"npx","npx skills add jleechanorg\u002Fjleechan-skills --skill \"mac-di[REDACTED_OPENAI_KEY]\"",{"tool":80,"command":81},"bunx","bunx skills add jleechanorg\u002Fjleechan-skills --skill \"mac-di[REDACTED_OPENAI_KEY]\"",{"tool":83,"command":84},"pnpm","pnpm dlx skills add jleechanorg\u002Fjleechan-skills --skill \"mac-di[REDACTED_OPENAI_KEY]\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fdevops\u002Fmac-disk-pressure-triage\u002FSKILL.md",true,[88,94,98,102,106,110,114,118,122,126,130],{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002F2026-07-14-15-apfs-lazy-purge-disk-alert.md","REFERENCE","参考文档",5557,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fdevops\u002Fmac-disk-pressure-triage\u002Freferences\u002F2026-07-14-15-apfs-lazy-purge-disk-alert.md",{"path":95,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002F2026-07-31-state-db-wal-runaway-95gib.md",7863,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fdevops\u002Fmac-disk-pressure-triage\u002Freferences\u002F2026-07-31-state-db-wal-runaway-95gib.md",{"path":99,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002F2026-08-02-slack-post-under-enospc.md",6419,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fdevops\u002Fmac-disk-pressure-triage\u002Freferences\u002F2026-08-02-slack-post-under-enospc.md",{"path":103,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Ferrors.md",331,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fvercel-pack\u002Fskills\u002Fvercel-advanced-troubleshooting\u002Freferences\u002Ferrors.md",{"path":107,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Fevidence-collection-framework.md",1134,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fvercel-pack\u002Fskills\u002Fvercel-advanced-troubleshooting\u002Freferences\u002Fevidence-collection-framework.md",{"path":111,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":112,"sourceHtmlUrl":113},"references\u002Fexamples.md",150,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fvercel-pack\u002Fskills\u002Fvercel-advanced-troubleshooting\u002Freferences\u002Fexamples.md",{"path":115,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":116,"sourceHtmlUrl":117},"references\u002Flvl-lanes-closed-pr-pattern.md",5088,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fdevops\u002Fmac-disk-pressure-triage\u002Freferences\u002Flvl-lanes-closed-pr-pattern.md",{"path":119,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":120,"sourceHtmlUrl":121},"references\u002Fsystematic-isolation.md",1307,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fvercel-pack\u002Fskills\u002Fvercel-advanced-troubleshooting\u002Freferences\u002Fsystematic-isolation.md",{"path":123,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Ftiming-analysis.md",854,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fvercel-pack\u002Fskills\u002Fvercel-advanced-troubleshooting\u002Freferences\u002Ftiming-analysis.md",{"path":127,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fworldarchitect-claude-worktree-leak-2026-07-14.md",3975,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fdevops\u002Fmac-disk-pressure-triage\u002Freferences\u002Fworldarchitect-claude-worktree-leak-2026-07-14.md",{"path":131,"resourceType":132,"resourceTypeDesc":133,"sizeBytes":134,"sourceHtmlUrl":135},"scripts\u002Fparse_worktrees.py","SCRIPT","脚本",11578,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fdevops\u002Fmac-disk-pressure-triage\u002Fscripts\u002Fparse_worktrees.py",[137,145,152,160,168,177],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":144},"01M7DRVZXXMGY4G81K5GVF4V20","disk-reclaim-playbook","Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdisk-reclaim-playbook\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":144},"01M7B63PNTT2TY78RFKHD8SP3X","claudea-bench","Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fclaudea-bench\u002FSKILL.md",[],[],{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":159},"01M7622KQJ32AV4K5BXEMVSSEB","pr","Alias for the canonical pr-lifecycle PR workflow skill (\u002Fpr-workflow, \u002Fprw).","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":167},"01M7432W92AKC4D1TKJ00VCMMT","whisper","OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwhisper\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":172,"licenseFileUrl":173,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":167},"01M7432T6BN1A9SHB8RBQR5EMP","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":167},"01M7432NDC7S6C6MX7M6RW8CTT","pr-report","This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, \u002Fpr-report, or wants per-PR summary with delta files\u002Flines. Generates a structured report for one or more open PRs covering purpose, files changed, +\u002F− line counts, \u002Fcode-standards + \u002Fthermo review findings, \u002Fponytail simplification opportunities, file-overlap combination candidates, and \u002Fgreen status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fpr-report\u002FSKILL.md",[],[]]