Every entry has one verdict and a list of evidence, one short sentence per fact. The CLI counts safe and orphan separately; only safe qualifies for automatic cleanup after a successful worktree recheck.
| Verdict | Meaning | An agent may delete |
|---|---|---|
safe | Clean, pushed and unused. Deleting it loses nothing | Yes |
orphan | Worktree metadata is missing, or an agent's leftover file is old | Only after a person inspects it and approves |
ask | A person should decide | No |
unsaved | It holds work that exists nowhere else | No |
live | Something uses it now | No |
unchecked | whatfrees couldn't tell | No |
The totals line counts safe, orphan and ask bytes. unsaved, live and unchecked entries are never added to it.
live wins over every other verdict. An entry is live when:
- A running process has its working directory inside it. On Linux whatfrees reads
/proc/<pid>/cwd. On macOS it runslsoffor your user. - It changed in the last 24 hours. For a checkout that means its folder, its index, its
HEADor itsHEADlog. For anything else it means the folder or anything directly in it.
Live entries are hidden unless you pass --all.
unsaved
Section titled "unsaved"The checkout holds work that no remote has. Any one of these makes it unsaved:
- A stash entry was made on its branch. For a standalone clone, any stash entry in its repository counts.
- Its
HEADis on no remote branch. If the work was squash-merged, its pull request says so, and whatfrees can't see that. git statuslists changed or untracked files.- For a standalone clone, local branches have commits that no remote branch has.
orphan
Section titled "orphan"This verdict does not mean the files are backed up. In particular, Git cannot inspect the contents of a worktree whose metadata is gone, so it may still contain unique work. A successful whatfrees check does not change that.
- A worktree whose
.gitfile points to a folder that is gone. Its repository no longer knows it, so git can't tell what it holds. - A regular file in an agent's worktree folder that hasn't changed for 30 days.
A checkout in T3 Code's folder that would be safe or orphan becomes ask when its T3 Code thread is open or can't be read. See Sources.
whatfrees found a reason for a person to decide:
git statuslists only ignored files, which git doesn't track and nothing else keeps.- A standalone clone has worktrees elsewhere that would break, or submodules that
git statusdidn't inspect. - git has it locked, so someone asked to keep it.
- A folder in an agent's worktree folder that isn't a git checkout. There isn't enough evidence to remove it.
- A T3 Code thread for it is still open, or its state couldn't be verified.
- A pnpm store, where link counts don't tell what
pnpm store prunewould keep.
unchecked
Section titled "unchecked"whatfrees couldn't decide. The evidence says why: git couldn't resolve HEAD, git status failed, or the budget ran out before it answered. In whatfrees check, a path that doesn't exist is also unchecked.
Nothing above applied. For a worktree the evidence reads Clean, pushed and untouched for 9 days. The command is git worktree remove without --force. Git itself refuses to remove a checkout that gained changes, so the command is a second check.
The command
Section titled "The command"Each entry has one command. For safe it removes the checkout. For orphan it removes the path, but do not run it without manual inspection and approval. For a worktree with any other verdict, the command is whatfrees check <path>, which re-runs the checks and deletes nothing.