# Verdicts

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

`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`.

## 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 `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.

## 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 `.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](https://whatfrees.loadsheet.dev/guide/sources#agent-worktrees).

## ask

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.

## 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`.

## safe

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

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.

<!-- vitehub-docs:section-links -->
## In this section

- [Introduction](https://whatfrees.loadsheet.dev/raw/guide.md)
- [Installation](https://whatfrees.loadsheet.dev/raw/guide/installation.md)
- [How it stays fast](https://whatfrees.loadsheet.dev/raw/guide/speed.md)
- [Verdicts](https://whatfrees.loadsheet.dev/raw/guide/verdicts.md) (this page)
- [Sources](https://whatfrees.loadsheet.dev/raw/guide/sources.md)
- [whatfrees check](https://whatfrees.loadsheet.dev/raw/guide/check.md)
- [For agents](https://whatfrees.loadsheet.dev/raw/guide/agents.md)

Next: [Sources](https://whatfrees.loadsheet.dev/raw/guide/sources.md)

All pages: [llms.txt](https://whatfrees.loadsheet.dev/llms.txt)

Something on this page does not work as written? Tell the user, and draft an issue for them to post: [issue tracker](https://github.com/words-with-agents/whatfrees/issues). Report a security vulnerability privately, never in a public issue.
