Leftovers
Clean up what your apps and agents left running.
A free, open-source menu-bar app for macOS.
Why
Think of a house with kids running through it: each one grabs a plate, sets up at a
table, and runs off to the next thing. Coding agents work the same way. Each session
starts dev servers, builds and its own copy of every MCP server, then moves on and
leaves them running. The memory stays taken, swap fills up, and the Mac slows down.
Activity Monitor makes this hard to see. It sorts by memory in RAM, but a leak that has
been swapped out barely shows there. Leftovers reads each process's footprint:
RAM plus compressed plus swapped. That's the number macOS actually pays for.
The case that started this project: a video-encoder helper showing 7 MB in RAM
while holding a 59 GB footprint, idle for four days.
What it does
- Menu bar: a dial whose needle shows memory in use, and a standard macOS menu:
memory and swap bars at the top, then likely leaks, the apps using the most memory,
and your agents, each with its real logo.
- Overview: your Mac's strength now and after a safe cleanup (memory, swap and disk,
with the formula shown), memory and disk bars, and what's holding it back.
- fseventsd watchdog: restarts macOS's file-event service when it runs away
(over 50 MB or 10% CPU for 2 minutes), with an alert in the menu bar, a
notification with a Restart button, and automatic restarts after you allow it once.
See fseventsd watchdog.
- Dashboard: a sidebar window with these views.
- Disk: your disk split into System (macOS, swap, updates, recovery), Apps
(the apps you installed plus their support data and caches, per app, sortable) and
Yours. Empties developer caches that rebuild themselves (Xcode build files,
simulator caches, npm, pnpm, Yarn, Bun, pip, uv, Poetry, Homebrew, SwiftPM, CocoaPods,
Gradle, Go, Cargo, Playwright), each only while nothing using it runs, and clears an
app's caches while it's quit. Your code and documents are never touched. Opens
instantly from the last scan and re-measures in the background.
- Advanced (scanned only when you open them):
- AI Models: Ollama, Hugging Face and LM Studio downloads. Removing an Ollama
model keeps the parts another model shares.
- Docker: unused images, stopped containers and build cache. Volumes are never
offered: they can hold databases.
- node_modules: every project's installed packages with when they were last
installed. Projects something is working in are kept.
- Simulators: simulators whose iOS version is gone, and runtimes no simulator uses.
- Snapshots: local Time Machine snapshots (macOS asks for your password) and
purgeable space.
- Low-disk warning: one notification a day when under 10% free (can be turned off).
- Likely Leaks: each one with a plain-language reason and a Quit button.
- Apps: every app with all of its helper processes summed, with the app's own icon.
- Agents: memory per coding-agent session (Claude Code, Codex, Gemini CLI, Cursor
Agent, Aider, OpenCode), including everything it started, and the tool (MCP) servers
that several sessions each run their own copy of.
- Worktrees: git worktrees across your code folders. Ones whose work is already
on main, including branches squash-merged on GitHub (which
git branch --merged
can't see), with no uncommitted changes and nothing working in them, are safe to
remove, one at a time or all at once. Chips show how many are safe, have changes,
are in use or aren't on main yet, and always add up. The check is read-only: git
refuses to remove anything with uncommitted work, and branches are kept.
- Every table sorts by any column, and the last reading's age ticks live.
- Scheduled: every background job (LaunchAgent) in your account, with a readable
schedule, next run, and whether it's running, waiting, off or failing. Run now,
pause, resume, view its log, or move it to the Trash. Jobs that agents created are
labelled, with what they're for and when they end.
- All Processes and Protected.
- Clean Up: quits every likely leak in one step, after a standard confirmation.
- Fast: the window and the first reading appear in well under a second, and
every refresh shows how long it took ("812 processes · 41 ms").