[{"data":1,"prerenderedAt":217,"buildId":218},["ShallowReactive",2],{"docs:\u002F":3},{"page":4,"section":10,"document":18,"credits":10,"prev":10,"next":10},{"id":5,"path":6,"file":7,"title":8,"sourceTitle":8,"description":9,"tagline":9,"eyebrow":10,"credits":10,"keywords":11,"icon":10,"layout":12,"seo":13,"sidebar":15,"toc":16,"kind":10,"group":10,"navigation":15,"order":17},"index","\u002F","index.md","whatfrees","whatfrees tells a coding agent what deleting each thing on the disk really frees, whether it's safe, and the command to run. It deletes nothing.",null,[],"home",{"title":14},"whatfrees · What deleting it really frees",true,false,9007199254740991,{"nodes":19,"toc":214},[20,143,151,205],[21,22,23,28,32,64,84,101],"whatfrees-hero",{},[24,25,27],"h1",{"id":26},"what-does-deleting-it-really-free","What does deleting it really free?",[29,30,31],"p",{},"whatfrees looks at agent worktrees and pnpm stores on a Linux or macOS disk. It reports what it finds, how many bytes it can account for, and what to do next. It deletes nothing.",[33,34,36],"template",{"name":35},"agents",[37,38,41],"pre",{"language":39,"class":40,"wrap":15},"text","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[42,43,45,53,54,53,59],"code",{"class":44},"language-text",[46,47,50],"span",{"class":48,"style":49},"line","display: inline",[46,51,52],{},"Run npx whatfrees --json. Consider only safe entries for automatic cleanup. Leave orphan entries for a person to inspect and approve.","\n",[46,55,56],{"class":48,"style":49},[46,57,58],{},"For a safe worktrees entry, run npx whatfrees check --json \u003Cpath> right before deletion. Use the entry's own command only if the check exits with 0 and still reports safe; otherwise skip it.",[46,60,61],{"class":48,"style":49},[46,62,63],{},"Read https:\u002F\u002Fwhatfrees.loadsheet.dev\u002Fguide\u002Fagents first.",[33,65,67],{"name":66},"humans",[37,68,71],{"language":69,"frame":70,"class":40,"wrap":15},"sh","terminal",[42,72,74],{"class":73},"language-sh",[46,75,76,80],{"class":48,"style":49},[46,77,79],{"style":78},"color:#953800;--shiki-dark:#FFA657","npx",[46,81,83],{"style":82},"color:#0A3069;--shiki-dark:#A5D6FF"," whatfrees",[33,85,86],{"name":42},[37,87,88],{"language":69,"frame":70,"class":40,"wrap":15},[42,89,90],{"class":73},[46,91,92,94,98],{"class":48,"style":49},[46,93,8],{"style":78},[46,95,97],{"style":96},"color:#0550AE;--shiki-dark:#79C0FF"," --min",[46,99,100],{"style":82}," 10MB",[33,102,104],{"name":103},"output",[37,105,106],{"language":39,"class":40,"wrap":15},[42,107,108,53,113,53,118,53,123,53,128,53,133,53,138],{"class":44},[46,109,110],{"class":48,"style":49},[46,111,112],{},"whatfrees: ok. no problems in 3 entries (0.1 s).",[46,114,115],{"class":48,"style":49},[46,116,117],{},"Frees 20 MB safe, 29 MB orphan, 4.8 MB ask. \u002F has 180 GB free of 916 GB.",[46,119,120],{"class":48,"style":49},[46,121,122],{},"29 MB orphan Codex worktree of a repository that is gone. Its repository no longer knows it: \u002Fhome\u002Fyou\u002Fapp\u002F.git\u002Fworktrees\u002Fapp3 is gone, so git can't tell what it holds. run: rm -rf -- \u002Fhome\u002Fyou\u002F.codex\u002Fworktrees\u002Fbb03\u002Fapp",[46,124,125],{"class":48,"style":49},[46,126,127],{},"20 MB safe Codex worktree of app on fix-queue. Clean, pushed and untouched for 9 days. run: git -C \u002Fhome\u002Fyou\u002Fapp worktree remove \u002Fhome\u002Fyou\u002F.codex\u002Fworktrees\u002F9f2c\u002Fapp",[46,129,130],{"class":48,"style":49},[46,131,132],{},"11 MB unsaved Codex worktree of app on wip. git status lists 2 changed or untracked: a.txt, big.bin. run: whatfrees check \u002Fhome\u002Fyou\u002F.codex\u002Fworktrees\u002F56bb\u002Fapp",[46,134,135],{"class":48,"style":49},[46,136,137],{},"next: whatfrees --all   (2 entries hidden: in use or under the minimum)",[46,139,140],{"class":48,"style":49},[46,141,142],{},"next: whatfrees check \u002Fhome\u002Fyou\u002F.codex\u002Fworktrees\u002F9f2c\u002Fapp   (re-checks a path right before you delete it)",[144,145,150],"h2",{"id":146,"anchor":147},"four-things-it-does",{"label":148,"icon":149},"Section titled \"Four things it does\"","#","Four things it does",[152,153,154,168,178,188],"card-group",{},[155,156,164,167],"card",{"color":157,"to":158,"label":159,"icon":160},"primary","\u002Fguide\u002Fspeed#bytes-that-come-back","Counts what deleting frees",{"name":161,"src":162,"ratio":163,"mask":15},"lucide:scale","data:image\u002Fsvg+xml,%3Csvg xmlns='http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 3v18m7-13l3 8a5 5 0 0 1-6 0zV7'\u002F%3E%3Cpath d='M3 7h1a17 17 0 0 0 8-2a17 17 0 0 0 8 2h1M5 8l3 8a5 5 0 0 1-6 0zV7m2 14h10'\u002F%3E%3C\u002Fg%3E%3C\u002Fsvg%3E",1,[165,166,159],"card-title",{},"A file with a hard link outside the folder stays on disk, so it isn't counted",[155,169,175,177],{"color":157,"to":170,"label":171,"icon":172},"\u002Fguide\u002Fverdicts","Says whether it's safe",{"name":173,"src":174,"ratio":163,"mask":15},"lucide:shield-check","data:image\u002Fsvg+xml,%3Csvg xmlns='http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'\u002F%3E%3Cpath d='m9 12l2 2l4-4'\u002F%3E%3C\u002Fg%3E%3C\u002Fsvg%3E",[165,176,171],{},"Six verdicts, each with the facts behind it: live, unsaved, orphan, safe, ask, unchecked",[155,179,185,187],{"color":157,"to":180,"label":181,"icon":182},"\u002Fguide\u002Fspeed","Stays fast",{"name":183,"src":184,"ratio":163,"mask":15},"lucide:gauge","data:image\u002Fsvg+xml,%3Csvg xmlns='http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m12 14l4-4M3.34 19a10 10 0 1 1 17.32 0'\u002F%3E%3C\u002Fsvg%3E",[165,186,181],{},"It reads Git metadata and finds pnpm stores from their settings, without running pnpm. Its file walker has a deadline",[155,189,195,197,200,201,204],{"color":157,"to":190,"label":191,"icon":192},"\u002Fguide\u002Fcheck","Checks again before the delete",{"name":193,"src":194,"ratio":163,"mask":15},"lucide:badge-check","data:image\u002Fsvg+xml,%3Csvg xmlns='http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77a4 4 0 0 1 6.74 0a4 4 0 0 1 4.78 4.78a4 4 0 0 1 0 6.74a4 4 0 0 1-4.77 4.78a4 4 0 0 1-6.75 0a4 4 0 0 1-4.78-4.77a4 4 0 0 1 0-6.76'\u002F%3E%3Cpath d='m16 9l-5.5 5.5L8 12'\u002F%3E%3C\u002Fg%3E%3C\u002Fsvg%3E",[165,196,191],{},[42,198,199],{},"whatfrees check \u003Cpath>"," rechecks worktrees. A successful check can still report ",[42,202,203],{},"orphan",", which needs manual review",[29,206,207,208,213],{},"The only file it writes is its own size cache. Read ",[209,210,212],"a",{"href":211},"\u002Fguide\u002Fagents","For agents"," to see the loop a coding agent follows.",[215],{"id":146,"depth":216,"text":150},2,1796464607786,"84b4d453-0d43-4339-8103-d1d78e551efe"]