# Introduction to whatfrees

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 `du` prints. A file that has a hard link outside the folder stays on disk, so it doesn't count.
- **A verdict.** `safe`, `orphan`, `ask`, `unsaved`, `live` or `unchecked`, with the evidence behind it. See [Verdicts](https://whatfrees.loadsheet.dev/guide/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.

```sh
whatfrees --min 10MB
```

## 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](https://whatfrees.loadsheet.dev/guide/sources) for details, or run `whatfrees sources` to list the sources your installed version supports.

## Pages

| Page | What it answers |
| --- | --- |
| [Installation](https://whatfrees.loadsheet.dev/guide/installation) | How to install it and run it the first time |
| [How it stays fast](https://whatfrees.loadsheet.dev/guide/speed) | Owners first, a walker with a deadline, hard links counted once |
| [Verdicts](https://whatfrees.loadsheet.dev/guide/verdicts) | What each verdict means and which facts decide it |
| [Sources](https://whatfrees.loadsheet.dev/guide/sources) | Every place whatfrees looks |
| [whatfrees check](https://whatfrees.loadsheet.dev/guide/check) | The re-check to run right before a delete |
| [For agents](https://whatfrees.loadsheet.dev/guide/agents) | The loop an agent follows |
| [Command line](https://whatfrees.loadsheet.dev/reference/cli) | Every flag and exit code |
| [JSON report](https://whatfrees.loadsheet.dev/reference/report) | `whatfrees/report@1`, field by field |
| [JavaScript API](https://whatfrees.loadsheet.dev/reference/api) | `scan`, `check`, `measure` and `defineSource` |

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

- [Introduction](https://whatfrees.loadsheet.dev/raw/guide.md) (this page)
- [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)
- [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: [Installation](https://whatfrees.loadsheet.dev/raw/guide/installation.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.
