Reference

Every check

Twelve checks, in the order the report lists them. Each one says what it looks at, why it matters, and the fix it prints. Nothing runs the fix for you.

Memory memory

macOS, Linux, containers

What it looks at
How much memory is really available, the swap in use and, on a Mac, the memory pressure level and how much the compressor is holding.
Why it matters
A new agent that does not fit pushes the machine into swap, and then every session slows down at once.
The fix
No command of its own. The verdict lists the other fixes that free memory, biggest first.

Sample output

  ✗ Memory                   0.9 GB free of 8 GB
      11% of memory is available; a new agent could push the machine into swap

Stuck test runs stuck_tests

macOS, Linux, containers

What it looks at
Test runs (rails test, bin/ci, pytest and the like) that have been going for more than two hours.
Why it matters
A hung suite holds gigabytes of memory and never lets go. It is a hard stop: there is no plain “room” while one runs.
The fix
Stop the stuck run (kill, with its process id).

Sample output

  ✗ Stuck test runs          1 stuck
      a test run has been going over 2h, so it is probably hung
      Stop `bin/rails test` (pid 48211) in /Users/alex/code/shop, running 3h, holding 2.1 GB
      $ kill 48211

Test suites at once suites_at_once

macOS, Linux, containers

What it looks at
More than one full test suite running at the same time on a machine with 16 GB of memory or less.
Why it matters
Two full suites on a small machine is the most common way to run out of memory. It is a hard stop.
The fix
Run one suite at a time: stop all but the biggest (kill).

Sample output

  ✗ Test suites at once      2 running
      2 full suites at once on a 8 GB machine
      Run one suite at a time; stop `bin/ci` (pid 51007)
      $ kill 51007

Dev servers left running servers

macOS, Linux, containers

What it looks at
Dev servers listening on ports 3000 to 9999 that have been up for more than 12 hours. On Linux without ss, the listeners are read from /proc.
Why it matters
A forgotten server keeps its memory and its port, and the next agent starts a second one beside it.
The fix
Stop the server (kill, with its process id and port).

Sample output

  ! Dev servers left running 1 listening
      a server has been up over 12h, likely forgotten
      Stop `bin/rails server -p 3001` (pid 3920) in /Users/alex/code/shop on port 3001, up 30h, holding 0.4 GB
      $ kill 3920

Orphaned processes orphans

macOS, Linux, containers

What it looks at
Test runs and servers still running after the agent that started them has exited.
Why it matters
Nobody is watching them, so nothing will ever stop them.
The fix
Stop the leftover process (kill).

Sample output

  ! Orphaned processes       1 left behind
      work was left running after its agent exited
      Stop test run `bin/rails test` (pid 7714), its agent is gone, holding 1.2 GB
      $ kill 7714

Disk space disk

macOS, Linux, containers

What it looks at
Free space on the main volume against a floor: 20% of the disk, at least 2 GB and at most 15 GB, on a computer; 5 GB in a container.
Why it matters
Each agent needs room for installs, builds and logs. Below the floor, a new one is likely to fail partway through.
The fix
No command of its own. The verdict lists the disk fixes, biggest first, and when space is short the check names the biggest space users it measured, even ones under their own warn line.

Sample output

  ✗ Disk space               9.6 GB free
      under the 15 GB floor for a new agent's installs and logs
      Biggest space users measured: Claude Code scratch 4.9 GB, wt-search (worktree) 2.1 GB, Agent files 1.8 GB, shop_test 600 MB, remotion-webpack-bundle-a1b2 600 MB

Old worktrees worktrees

macOS, Linux, containers

What it looks at
Git worktrees under your roots whose branch is merged, that have no changes, and that nobody has edited for seven days or more.
Why it matters
Each worktree is a full copy of the project, often with its own installs. They pile up quietly.
The fix
Remove the worktree (git worktree remove). Busy or changed ones are never listed.

Sample output

  ! Old worktrees            2 stale · wt-old-1, wt-old-2
      Remove worktrees whose branch is merged and that have no changes.
      $ git -C /Users/alex/code/myapp worktree remove /Users/alex/code/wt-old-1

Big logs logs

macOS, Linux, containers

What it looks at
Log files over 100 MB in the log folders of the projects under your roots.
Why it matters
Development logs grow without limit and nobody reads the old lines.
The fix
Empty the log file (it stays in place, at zero bytes).

Sample output

  ! Big logs                 1 over 100 MB
      /Users/alex/code/shop/log/development.log (1.30 GB)
      Empty the log files you don't need; they grow without limit.
      $ : > /Users/alex/code/shop/log/development.log

Test databases test_dbs

macOS, Linux, containers

What it looks at
Postgres test databases, and the ones whose worktree is gone. Runs only when psql is installed.
Why it matters
Every worktree that ran its tests left a database behind; removing the worktree does not drop it.
The fix
Drop the leftover database (dropdb --if-exists).

Sample output

  ! Test databases           6 · 1.8 GB
      1 leftover test database (their worktree is gone): shop_test_wt_search
      Drop the databases whose worktree is gone.
      $ dropdb --if-exists shop_test_wt_search

Chrome leftover copies chrome_copies

macOS only

What it looks at
Copies of the whole Chrome app that macOS Chrome makes each time it starts and leaves behind when it is killed.
Why it matters
Each copy is a gigabyte or more. Browser scripts that crash leave one every time.
The fix
Quit Chrome, then delete the copies (rm -rf). The Chrome guard hook stops new ones.

Sample output

  ✗ Chrome leftover copies   1.4 GB
      Chrome left 1 copy of itself
      Quit Chrome, then delete the copies. To stop new ones, start Chrome with --disable-features=MacAppCodeSignClone.
      $ rm -rf "/private/var/folders/xy/abc123/X/com.google.Chrome.code_sign_clone"

Render leftovers leftovers

macOS, Linux, containers

What it looks at
Remotion render folders left in the temporary folder. Playwright's browsers are shown too, for information only.
Why it matters
A video render copies its whole bundle into a temporary folder; a crashed render never cleans it up.
The fix
Delete old render folders once no render is running (rm -rf).

Sample output

  ! Render leftovers         0.9 GB
      2 Remotion render folders: remotion-webpack-bundle-a1b2 (0.6 GB), remotion-webpack-bundle-c3d4 (0.3 GB)
      Delete old render folders once no render is running.
      $ rm -rf /private/var/folders/xy/abc123/T/remotion-webpack-bundle-a1b2

Claude Code scratch claude_scratch

macOS, Linux, containers

What it looks at
Claude Code's scratch folder (/tmp/claude-<uid>, or /private/tmp on a Mac), and the session folders in it where no file has changed in 36 hours.
Why it matters
Each session keeps its scratch files there, and they are not cleaned up when the session ends. One Mac held 4.9 GB.
The fix
Delete each stale session folder (rm -rf, one exact folder per line). Warns at 1 GB of stale folders.

Sample output

  ! Claude Code scratch      4.9 GB · 3 stale
      /private/tmp/claude-501 holds 4.9 GB; 3 session folders idle 36+ h: -Users-alex-code-shop/5f0c2a7e (3.1 GB), …
      Delete session folders where no file changed in 36 hours.
      $ rm -rf /private/tmp/claude-501/-Users-alex-code-shop/5f0c2a7e

Agent files agent_files

macOS, Linux, containers

What it looks at
The size of ~/.claude, ~/.codex and agent scratch folders.
Why it matters
Old sessions and transcripts add up to many gigabytes over a few months.
The fix
Change a setting: lower Claude Code's cleanupPeriodDays so old sessions are removed sooner.

Sample output

  ! Agent files              9.4 GB
      ~/.claude, ~/.codex and scratch folders hold 9.4 GB
      Lower Claude Code's cleanupPeriodDays setting so old sessions are removed sooner.

Turning a check off

Put its id in disabled in ~/.config/host-headroom/config.toml. A watched folder is turned off as watch:<label>. An id it does not know is an error, so a typo never switches a check off quietly.

disabled = ["test_dbs", "watch:Build cache"]

Watched folders are your own extra disk checks: a label, the paths, the sizes that make them amber and red, and an optional fix and command. See the config section of the README.