Clean up after your
AI coding agents.

Agent Janitor is one quiet app in your menu bar or tray. It stops the processes your AI agents leave running and frees the disk space they take up.You choose what gets cleaned. By default, only leftover hidden browsers are stopped for you. Build folders and worktrees go to a bin you can restore from.

$19 one‑time payment · 24-hour free trial, no card · Mac · Linux

See it in a minute.

What your agents leave behind, and how Agent Janitor cleans it up.

Works with your AI coding agents.

If it runs in a terminal, Agent Janitor can tidy up after it.

  • Claude Code
  • Codex
  • Grok Build (Cursor)
  • Gemini CLI
  • GitHub Copilot
  • Aider
  • Any terminal commandjanitor run <cmd>
The usual leftovers

Agents stop. Their leftovers stay.

When an agent session ends, its dev servers can keep running and its build folders stay on disk. Your computer gets slower, and your disk fills up.

Processes that keep running.

Dev servers, test runners and hidden browsers stay on after the agent is gone. They hold on to your ports and your memory.

Build folders that keep growing.

Every project, and every copy of it, gets its own build output and caches. They’re often the biggest thing on your disk.

Old worktrees and logs.

Extra copies of a project an agent made for one task, plus logs and session data that pile up.

Why Agent Janitor

Not another disk cleaner.

Agents leave two kinds of mess: processes that keep running and files that fill your disk. Agent Janitor cleans up both.

  • Processes and disk space, together. It stops hidden browsers, dev servers and other processes from sessions that have ended, and frees the space taken by build folders, old worktrees and old agent versions.
  • A bin to restore from. Build folders, worktrees and old agent versions wait in the bin, so you can bring them back.
  • Quiet in your tray, on Mac and Linux. It tells you when something needs attention.
  • Leaves anything in use alone. Running sessions and worktrees with unsaved changes stay put. When it can’t tell, it skips.
How it works

See what’s left. Remove it in one click.

Four everyday situations, and what Agent Janitor does in each.

Port taken

Why is port 3000 still busy? I closed that session an hour ago.
Agent Janitor
  • Found the dev server that session left running
  • Made sure no running session needs it
  • Stopped it
Port 3000 is free.

Disk filling up

23.6 GB free. Full in about 3 days.
Agent Janitor
  • Found 41.8 GB of leftovers
  • Showed you every file first
  • Moved them to the bin
65.4 GB free. Anything can be restored from the bin.

Session ended

Codex session in api-server endedjust now
Agent Janitor
  • Matched what that session started
  • Listed it in a receipt
  • Cleaned it when you clicked
Nothing left behind.

Agent asks

Check the machine before you start the build.
Agent Janitor
  • Asked Agent Janitor how the machine is doing
  • Found 18.2 GB from its own last session
  • Cleaned only that, after a preview
It cleaned up after itself. Nothing else.
What’s inside

What Agent Janitor does.

It sits in your menu bar or system tray, and tells you when something needs attention.

Tray colour

Your computer’s health at a glance.

One look tells you how your computer is doing. A forecast tells you when space will run out.

Session receipts
Agent Janitornow
Codex session in api-server endedCleaned
Left 2 processes, 1 port and 3.4 GB2 processes, 1 port, 3.4 GB · Restore
CleanDetails

A receipt for every session.

When a session ends, see what it left. Clean it in one click.

janitor run
$ janitor run claude
✓ session ended
✓ receipt ready: 2 processes, 3.1 GB

Track any command.

Start any agent with janitor run. When it ends, you get a receipt of what it left behind, ready to review.

Disk

Find the big stuff.

Build folders, caches, test browsers and old worktrees, sorted by project.

CLI
$ janitor status
● amber  41.8 GB to clean

A command line, too.

Check the disk and preview a clean from your terminal, with output your scripts can read.

MCP server

Agents can clean up after themselves.

Turn on the local MCP server and your agents can see how the machine is doing. They can clean up their own leftovers. Nothing else.

Safety

Safe by default.

You choose what gets cleaned. By default, only leftover hidden browsers are stopped for you. Build folders, worktrees and old agent versions go to a bin, so you can restore them.

  1. ScanFinds leftovers. Changes nothing.
  2. PreviewShows every file and process first.
  3. Check againMakes sure each item is still the same one.
  4. Stop gentlyAsks a process to stop before forcing it.
  5. BinBuild folders and worktrees go to a bin first.
  6. RestoreBring them back from the bin within 24 hours.

Never touched.

Whatever you click, these stay put.

  • Anything on your never‑touch list
  • Agent sessions that are still running
  • Worktrees with unsaved changes
  • Your source files

Shown, never removed.

Big, but too important to touch. You decide.

  • Docker volumes
  • Downloaded model weights
  • Editor state databases
  • WSL virtual disks
Every action is written to a log on your computer.
Comparison

Why not ask your agent to clean up?

An agent only knows its own session, and it stops when the session ends. Leftovers from other sessions stay.

Asking the agent compared with Agent Janitor
QuestionAsking the agentAgent Janitor
Sees leftovers from past sessionsNo. Only its ownYes. Every session, any agent
Still there after a crashNo. Yes. Lives in your tray
Shows you firstPartly. If you askYes. Always
Lets you restoreNo. Deleted is deletedYes. Restore from the bin
Leaves running work aloneNo. Yes.
Warns before your disk fillsNo. Yes. Tray colour and forecast
Keeps a recordNo. Yes. A log of every action

Everything stays on your computer.

No account. No server. No tracking.

  • No sign-up
  • Nothing uploaded
  • No tracking

It goes online for two things only: your licence (it never locks when you’re offline) and update checks, which you can turn off.

Pricing

$19. One‑time payment.

One licence: one person, up to two computers, all updates included. No subscription.

Agent Janitor

$19 one‑time payment

  • One person, up to 2 computers
  • All updates included
  • Mac and Linux
  • No account, no telemetry
  • No subscription, no renewal

24-hour free trial with everything unlocked. No card.

Buy for $19Download free trial ›

Mac · Linux

Downloads open soon. Not available for Windows yet.

After the trial.

After 24 hours, the basic features stay free forever. A licence unlocks the rest.

Free and paid features
FeatureFree foreverWith a licence
Tray colour (green, amber, red)IncludedIncluded
Total junk sizeIncludedIncluded
Disk forecastIncludedIncluded
Sizes by groupIncludedIncluded
janitor statusIncludedIncluded
Paths and detailsNot includedIncluded
Session receiptsNot includedIncluded
Restore from the binIncludedIncluded
CleanNot includedIncluded
Automatic cleaningNot includedIncluded
janitor runIncludedIncluded
Command line detailsNot includedIncluded
MCP server for agentsNot includedIncluded

Common questions.

Anything else? Write to [email protected].

Is it safe to let an app delete things on my computer?

It’s built around not deleting the wrong thing. You choose what gets cleaned. By default, build folders, worktrees and old agent versions are moved to the bin, not erased, so you can restore them. It never touches running agent sessions or files you mark, and Docker volumes and model files are reported, never removed.

What if I delete something I need?

Open the bin and click Restore. By default, build folders, worktrees and old agent versions are moved to the bin, not erased, and every action is in the audit log, so you can see exactly what happened and when.

Does it phone home?

No. There’s no account, no server and no telemetry. It goes online only for your licence (being offline never locks the app) and to check for updates, which you can turn off in Settings.

Which agents does it work with?

Claude Code, Codex, Grok Build (Cursor), Gemini CLI, GitHub Copilot, Aider and others. Any agent or tool you start from a terminal works too: wrap it in janitor run to track it as its own session, so you can review and clean what it leaves behind.

Will it touch my Docker volumes or downloaded models?

No. Docker volumes, model weights, editor state databases and WSL disks can be large, so it shows you their sizes, but it never removes them. That part is up to you.

What happens after the 24-hour trial?

The basics stay free forever: tray colour, total junk size, disk forecast, sizes by group, janitor status and janitor run. Restoring from the bin is always free. A licence unlocks paths and details, session receipts, Clean, automatic cleaning, command line details and the MCP server.

Can I use it on two computers?

Yes. One licence covers one person on up to two computers, for example a laptop and a desktop, even if they run different systems.

Is there a subscription?

No. It’s a $19 one‑time payment, with all updates included. No renewal, no team plan.

Can I get a refund?

Yes. If it isn’t right for you, write to [email protected] within 14 days of buying. See the refund policy.

Is there a Windows version?

Not yet. Agent Janitor launches on Mac and Linux. A Windows version is planned; the licence will work on it too.

Can my agent clean up on its own?

If you turn on the MCP server, an agent can check the machine’s state, preview a clean, and clean leftovers from its own session. It can’t remove anything else.

Why this exists.

Coding agents are great at starting things. Less so at stopping them. A few weeks in, a laptop can be full of servers nobody uses, browsers nobody sees and build folders for branches long gone.

Agent Janitor was made by a developer who got tired of cleaning up by hand, and of scripts that delete things without asking. So it’s careful first, quick second, and it never needs an account.

Your agents make a mess.
Agent Janitor cleans it up.

Free for 24 hours. Then a one‑time payment of $19.

Mac · Linux