[{"data":1,"prerenderedAt":467,"buildId":468},["ShallowReactive",2],{"docs:\u002Fguide\u002Fcheck":3},{"page":4,"section":16,"document":17,"credits":10,"prev":459,"next":463},{"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},"check","\u002Fguide\u002Fcheck","guide\u002Fcheck.md","whatfrees check","Re-check one path right before you delete it. It exits with 0 only when the path is safe or orphan.",null,[],"i-lucide-badge-check","article",true,6,"guide",{"nodes":18,"toc":454},[19,27,52,69,82,96,104,169,178,184,191,194,233,238,244,254,347],[20,21,22,23,26],"p",{},"A report is a snapshot. A person may have opened the worktree a minute after the scan. ",[24,25,8],"code",{}," asks again, about one path.",[28,29,33],"pre",{"language":30,"frame":31,"class":32,"wrap":14},"sh","terminal","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[24,34,36],{"class":35},"language-sh",[37,38,41,45,49],"span",{"class":39,"style":40},"line","display: inline",[37,42,44],{"style":43},"color:#953800;--shiki-dark:#FFA657","whatfrees",[37,46,48],{"style":47},"color:#0A3069;--shiki-dark:#A5D6FF"," check",[37,50,51],{"style":47}," ~\u002F.codex\u002Fworktrees\u002F9f2c\u002Fapp",[28,53,55],{"language":54,"class":32,"wrap":14},"text",[24,56,58,63,64],{"class":57},"language-text",[37,59,60],{"class":39,"style":40},[37,61,62],{},"whatfrees check: ok. no problems \u002Fhome\u002Fyou\u002F.codex\u002Fworktrees\u002F9f2c\u002Fapp is safe: deletable.","\n",[37,65,66],{"class":39,"style":40},[37,67,68],{},"Clean, pushed and untouched for 9 days.",[28,70,71],{"language":30,"frame":31,"class":32,"wrap":14},[24,72,73],{"class":35},[37,74,75,77,79],{"class":39,"style":40},[37,76,44],{"style":43},[37,78,48],{"style":47},[37,80,81],{"style":47}," ~\u002F.codex\u002Fworktrees\u002F56bb\u002Fapp",[28,83,84],{"language":54,"class":32,"wrap":14},[24,85,86,63,91],{"class":57},[37,87,88],{"class":39,"style":40},[37,89,90],{},"whatfrees check: failed. no problems \u002Fhome\u002Fyou\u002F.codex\u002Fworktrees\u002F56bb\u002Fapp is unsaved: don't delete it.",[37,92,93],{"class":39,"style":40},[37,94,95],{},"git status lists 2 changed or untracked: a.txt, big.bin.",[97,98,103],"h2",{"id":99,"anchor":100},"exit-codes",{"label":101,"icon":102},"Section titled \"Exit codes\"","#","Exit codes",[105,106,107,120],"table",{},[108,109,110],"thead",{},[111,112,113,117],"tr",{},[114,115,116],"th",{},"Code",[114,118,119],{},"Meaning",[121,122,123,139,161],"tbody",{},[111,124,125,129],{},[126,127,128],"td",{},"0",[126,130,131,132,135,136],{},"The path exists and its verdict is ",[24,133,134],{},"safe"," or ",[24,137,138],{},"orphan",[111,140,141,144],{},[126,142,143],{},"1",[126,145,146,147,150,151,150,154,135,157,160],{},"Anything else: the path is ",[24,148,149],{},"live",", ",[24,152,153],{},"unsaved",[24,155,156],{},"ask",[24,158,159],{},"unchecked",", or doesn't exist",[111,162,163,166],{},[126,164,165],{},"2",[126,167,168],{},"Usage error, such as a missing path",[20,170,171,172,174,175,177],{},"For automatic worktree cleanup, require both exit code 0 and a ",[24,173,134],{}," verdict. An ",[24,176,138],{}," can also exit with 0: that confirms the verdict, not that the files are backed up. Leave it for a person to inspect and approve.",[97,179,183],{"id":180,"anchor":181},"what-it-re-runs",{"label":182,"icon":102},"Section titled \"What it re-runs\"","What it re-runs",[20,185,186,187,190],{},"It runs the same checks as a scan, for one path: the process table, the file times, ",[24,188,189],{},"git status",", the unpushed commits and the stash log. It doesn't size anything.",[20,192,193],{},"Some paths get a special answer:",[195,196,197,208,211,221],"ul",{},[198,199,200,201,203,204,207],"li",{},"A path that doesn't exist is ",[24,202,159],{},", with ",[24,205,206],{},"exists: false",".",[198,209,210],{},"A symlink is judged as the link itself, found through its parent folder, not the folder it points to.",[198,212,213,214,217,218,220],{},"A folder that holds git checkouts, such as ",[24,215,216],{},"~\u002F.codex\u002Fworktrees\u002F9f2c",", is ",[24,219,156],{},": check each checkout instead.",[198,222,223,224,226,227,229,230,232],{},"A folder that isn't a checkout is a leftover. A leftover is ",[24,225,156],{},", so ",[24,228,5],{}," doesn't clear it. A regular file is ",[24,231,138],{}," only when it sits in an agent's worktree folder and hasn't changed for 30 days.",[20,234,235,237],{},[24,236,8],{}," knows Git checkouts and the agents' leftovers. It cannot verify a pnpm store; see the report's evidence instead.",[97,239,243],{"id":240,"anchor":241},"json",{"label":242,"icon":102},"Section titled \"JSON\"","JSON",[20,245,246,249,250,253],{},[24,247,248],{},"--json"," prints a ",[24,251,252],{},"whatfrees\u002Fcheck@1"," document.",[28,255,256],{"language":240,"class":32,"wrap":14},[24,257,259,63,265,63,280,63,292,63,305,63,317,63,328,63,342],{"class":258},"language-json",[37,260,261],{"class":39,"style":40},[37,262,264],{"style":263},"color:#1F2328;--shiki-dark:#E6EDF3","{",[37,266,267,271,274,277],{"class":39,"style":40},[37,268,270],{"style":269},"color:#116329;--shiki-dark:#7EE787","  \"schema\"",[37,272,273],{"style":263},": ",[37,275,276],{"style":47},"\"whatfrees\u002Fcheck@1\"",[37,278,279],{"style":263},",",[37,281,282,285,287,290],{"class":39,"style":40},[37,283,284],{"style":269},"  \"path\"",[37,286,273],{"style":263},[37,288,289],{"style":47},"\"\u002Fhome\u002Fyou\u002F.codex\u002Fworktrees\u002F9f2c\u002Fapp\"",[37,291,279],{"style":263},[37,293,294,297,299,303],{"class":39,"style":40},[37,295,296],{"style":269},"  \"exists\"",[37,298,273],{"style":263},[37,300,302],{"style":301},"color:#0550AE;--shiki-dark:#79C0FF","true",[37,304,279],{"style":263},[37,306,307,310,312,315],{"class":39,"style":40},[37,308,309],{"style":269},"  \"verdict\"",[37,311,273],{"style":263},[37,313,314],{"style":47},"\"safe\"",[37,316,279],{"style":263},[37,318,319,322,324,326],{"class":39,"style":40},[37,320,321],{"style":269},"  \"deletable\"",[37,323,273],{"style":263},[37,325,302],{"style":301},[37,327,279],{"style":263},[37,329,330,333,336,339],{"class":39,"style":40},[37,331,332],{"style":269},"  \"evidence\"",[37,334,335],{"style":263},": [",[37,337,338],{"style":47},"\"Clean, pushed and untouched for 9 days.\"",[37,340,341],{"style":263},"]",[37,343,344],{"class":39,"style":40},[37,345,346],{"style":263},"}",[105,348,349,361],{},[108,350,351],{},[111,352,353,356,359],{},[114,354,355],{},"Field",[114,357,358],{},"Type",[114,360,119],{},[121,362,363,377,390,403,420,440],{},[111,364,365,370,374],{},[126,366,367],{},[24,368,369],{},"schema",[126,371,372],{},[24,373,276],{},[126,375,376],{},"The document's version",[111,378,379,384,387],{},[126,380,381],{},[24,382,383],{},"path",[126,385,386],{},"string",[126,388,389],{},"The absolute path that was checked",[111,391,392,397,400],{},[126,393,394],{},[24,395,396],{},"exists",[126,398,399],{},"boolean",[126,401,402],{},"Whether anything is at the path",[111,404,405,410,412],{},[126,406,407],{},[24,408,409],{},"verdict",[126,411,386],{},[126,413,414,415],{},"One of the ",[416,417,419],"a",{"href":418},"\u002Fguide\u002Fverdicts","six verdicts",[111,421,422,427,429],{},[126,423,424],{},[24,425,426],{},"deletable",[126,428,399],{},[126,430,431,433,434,436,437,439],{},[24,432,302],{}," only for ",[24,435,134],{}," and ",[24,438,138],{},", and only when the path exists",[111,441,442,447,451],{},[126,443,444],{},[24,445,446],{},"evidence",[126,448,386,449],{},[37,450],{},[126,452,453],{},"The facts behind the verdict",[455,457,458],{"id":99,"depth":456,"text":103},2,{"id":180,"depth":456,"text":183},{"id":240,"depth":456,"text":243},{"path":460,"title":461,"description":462},"\u002Fguide\u002Fsources","Sources","Every place whatfrees looks for space, what it finds there, who it asks, and the verdict it gives.",{"path":464,"title":465,"description":466},"\u002Fguide\u002Fagents","For agents","The loop a coding agent follows to free disk space with whatfrees, and the rules that keep it from deleting work.",1796464608605,"84b4d453-0d43-4339-8103-d1d78e551efe"]