An agent that has to free disk space has a bad choice. It can run du, guess which folders are safe, and delete. Or it can ask a person. whatfrees gives it the facts instead.
For each thing that holds space, whatfrees reports:
- What deleting it frees. Not what
duprints. A file that has a hard link outside the folder stays on disk, so it doesn't count. - A verdict.
safe,orphan,ask,unsaved,liveorunchecked, with the evidence behind it. See Verdicts. - The command. A POSIX shell command, quoted, built from a short list of known verbs.
It runs on Linux and macOS. It reads and prints. It never deletes, moves or changes your files. The one file it writes is its own size cache.
whatfrees --min 10MBWhere it looks
Section titled "Where it looks"A source is a place that holds space. The built-in sources look for agent worktrees and pnpm stores, using Git metadata or pnpm settings when available. See Sources for details, or run whatfrees sources to list the sources your installed version supports.
| Page | What it answers |
|---|---|
| Installation | How to install it and run it the first time |
| How it stays fast | Owners first, a walker with a deadline, hard links counted once |
| Verdicts | What each verdict means and which facts decide it |
| Sources | Every place whatfrees looks |
| whatfrees check | The re-check to run right before a delete |
| For agents | The loop an agent follows |
| Command line | Every flag and exit code |
| JSON report | whatfrees/report@1, field by field |
| JavaScript API | scan, check, measure and defineSource |