[{"data":1,"prerenderedAt":377,"buildId":378},["ShallowReactive",2],{"docs:\u002Fguide\u002Fsources":3},{"page":4,"section":16,"document":17,"credits":10,"prev":369,"next":373},{"id":5,"path":6,"file":7,"title":8,"sourceTitle":8,"description":9,"tagline":9,"eyebrow":10,"credits":10,"keywords":11,"icon":12,"layout":13,"sidebar":14,"toc":14,"kind":10,"group":10,"navigation":14,"order":15},"sources","\u002Fguide\u002Fsources","guide\u002Fsources.md","Sources","Every place whatfrees looks for space, what it finds there, who it asks, and the verdict it gives.",null,[],"i-lucide-folder-search","article",true,5,"guide",{"nodes":18,"toc":363},[19,32,46,54,61,151,166,175,181,191,213,219,227,325,344,350],[20,21,22,23,27,28,31],"p",{},"A source is one place that holds space. Each one has an id, the platforms it runs on, a cheap ",[24,25,26],"code",{},"detect"," and an ",[24,29,30],{},"entries"," step. A source whose tool isn't on the machine reports nothing and raises no error.",[20,33,34,37,38,41,42,45],{},[24,35,36],{},"whatfrees sources"," prints the sources your installed version has. Run ",[24,39,40],{},"whatfrees --only pnpm-store --all"," to list detected pnpm stores, or ",[24,43,44],{},"whatfrees --only worktrees,pnpm-store,docker --all"," to include entries from all three built-in sources.",[47,48,53],"h2",{"id":49,"anchor":50},"agent-worktrees",{"label":51,"icon":52},"Section titled \"Agent worktrees\"","#","Agent worktrees",[20,55,56,57,60],{},"The ",[24,58,59],{},"worktrees"," source looks in the folders where coding agents keep checkouts.",[62,63,64,77],"table",{},[65,66,67],"thead",{},[68,69,70,74],"tr",{},[71,72,73],"th",{},"Agent",[71,75,76],{},"Folder",[78,79,80,91,105,115,125,140],"tbody",{},[68,81,82,86],{},[83,84,85],"td",{},"T3 Code",[83,87,88],{},[24,89,90],{},"~\u002F.t3\u002Fworktrees",[68,92,93,96],{},[83,94,95],{},"Codex",[83,97,98,101,102],{},[24,99,100],{},"$CODEX_HOME\u002Fworktrees",", else ",[24,103,104],{},"~\u002F.codex\u002Fworktrees",[68,106,107,110],{},[83,108,109],{},"Conductor",[83,111,112],{},[24,113,114],{},"~\u002Fconductor\u002Fworkspaces",[68,116,117,120],{},[83,118,119],{},"Cursor",[83,121,122],{},[24,123,124],{},"~\u002F.cursor\u002Fworktrees",[68,126,127,130],{},[83,128,129],{},"Claude Code",[83,131,132,135,136,139],{},[24,133,134],{},"\u003Cproject>\u002F.claude\u002Fworktrees",", for each project in ",[24,137,138],{},"~\u002F.claude.json"," and each repository found in the folders above",[68,141,142,145],{},[83,143,144],{},"Anything else",[83,146,147,148],{},"Each folder you pass with ",[24,149,150],{},"--root",[20,152,153,154,157,158,161,162,165],{},"Under each folder, a git checkout is judged with git. A folder that holds checkouts, such as ",[24,155,156],{},"\u003Cbucket>\u002F\u003Crepo>",", is listed by its children. Anything else is a leftover: a folder that isn't a checkout is ",[24,159,160],{},"ask",", and a regular file in an agent's folder is ",[24,163,164],{},"orphan"," after 30 days without a change.",[20,167,168,169,171,172,174],{},"For a checkout under ",[24,170,90],{},", whatfrees also reads T3 Code's thread database in read-only, immutable mode. An open thread makes the checkout ",[24,173,160],{},". So does a database it can't read safely. A deleted or archived thread adds a line of evidence and changes nothing else.",[47,176,180],{"id":177,"anchor":178},"pnpm-stores",{"label":179,"icon":52},"Section titled \"pnpm stores\"","pnpm stores",[20,182,56,183,186,187,190],{},[24,184,185],{},"pnpm-store"," source looks for versioned stores, such as ",[24,188,189],{},"v10",". It checks environment variables, settings files and the usual store folders without starting pnpm.",[20,192,193,194,196,197,200,201,204,205,208,209,212],{},"The verdict is ",[24,195,160],{}," and the size is ",[24,198,199],{},"unmeasured",": link counts don't tell what ",[24,202,203],{},"pnpm store prune"," keeps. The entry points you to ",[24,206,207],{},"pnpm store path",", which identifies the store your project uses without removing anything. Use ",[24,210,211],{},"--all"," to include entries whose unmeasured savings would otherwise fall below the CLI's minimum.",[47,214,218],{"id":215,"anchor":216},"docker",{"label":217,"icon":52},"Section titled \"Docker\"","Docker",[20,220,56,221,223,224,226],{},[24,222,215],{}," source asks the Docker daemon what its images, containers, volumes and build cache take, over its socket, or through the ",[24,225,215],{}," CLI for a named context. Every command targets the host or context that supplied the sizes, so scan again after you change a context's endpoint. OrbStack and Docker Desktop are read through their Docker sockets. Podman isn't read yet: querying its disk usage can initialize or update its store.",[62,228,229,242],{},[65,230,231],{},[68,232,233,236,239],{},[71,234,235],{},"Entry",[71,237,238],{},"Verdict",[71,240,241],{},"Command",[78,243,244,268,282,296,311],{},[68,245,246,249,258],{},[83,247,248],{},"Idle build cache",[83,250,251,254,255,257],{},[24,252,253],{},"safe",", or ",[24,256,160],{}," with an upper-bound size when Buildx may prune another builder",[83,259,260,263,264,267],{},[24,261,262],{},"docker builder prune -a -f",", without ",[24,265,266],{},"-f"," when it asks",[68,269,270,273,277],{},[83,271,272],{},"Dangling images",[83,274,275],{},[24,276,253],{},[83,278,279],{},[24,280,281],{},"docker image prune -f",[68,283,284,287,291],{},[83,285,286],{},"Unused images",[83,288,289],{},[24,290,160],{},[83,292,293],{},[24,294,295],{},"docker image prune -a",[68,297,298,301,306],{},[83,299,300],{},"Stopped containers",[83,302,303,305],{},[24,304,160],{},": their writable layers may hold data",[83,307,308],{},[24,309,310],{},"docker container prune",[68,312,313,316,320],{},[83,314,315],{},"Unused volumes",[83,317,318],{},[24,319,160],{},[83,321,322],{},[24,323,324],{},"docker volume rm \u003Cname>",[20,326,327,328,331,332,335,336,339,340,343],{},"A daemon on another machine, through ",[24,329,330],{},"tcp:\u002F\u002F",", ",[24,333,334],{},"ssh:\u002F\u002F",", a bare ",[24,337,338],{},"host:port"," or a context that points there, is skipped with reason ",[24,341,342],{},"remote",": its bytes aren't on this disk.",[47,345,349],{"id":346,"anchor":347},"write-your-own",{"label":348,"icon":52},"Section titled \"Write your own\"","Write your own",[20,351,352,353,356,357,362],{},"A source is a plain object built with ",[24,354,355],{},"defineSource",". See ",[358,359,361],"a",{"href":360},"\u002Freference\u002Fapi#defining-a-source","the JavaScript API",".",[364,366,367,368],{"id":49,"depth":365,"text":53},2,{"id":177,"depth":365,"text":180},{"id":215,"depth":365,"text":218},{"id":346,"depth":365,"text":349},{"path":370,"title":371,"description":372},"\u002Fguide\u002Fverdicts","Verdicts","What each whatfrees verdict means, which facts decide it, and which ones an agent may act on.",{"path":374,"title":375,"description":376},"\u002Fguide\u002Fcheck","whatfrees check","Re-check one path right before you delete it. It exits with 0 only when the path is safe or orphan.",1796464608410,"84b4d453-0d43-4339-8103-d1d78e551efe"]