GitHub 0
Skip to content

Verdicts

What each whatfrees verdict means, which facts decide it, and which ones an agent may act on.

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.

VerdictMeaningAn agent may delete
safeClean, pushed and unused. Deleting it loses nothingYes
orphanWorktree metadata is missing, or an agent's leftover file is oldOnly after a person inspects it and approves
askA person should decideNo
unsavedIt holds work that exists nowhere elseNo
liveSomething uses it nowNo
uncheckedwhatfrees couldn't tellNo

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 runs lsof for your user.
  • It changed in the last 24 hours. For a checkout that means its folder, its index, its HEAD or its HEAD log. For anything else it means the folder or anything directly in it.

Live entries are hidden unless you pass --all.

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 HEAD is on no remote branch. If the work was squash-merged, its pull request says so, and whatfrees can't see that.
  • git status lists changed or untracked files.
  • For a standalone clone, local branches have commits that no remote branch has.

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 .git file 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 status lists 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 status didn'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 prune would keep.

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.

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.