Agent Janitor, npkill and kondo
Facts as of December 2026, taken from each tool’s own website or repository. Sources are at the end. Tools change, so check their pages before you decide.
npkill and kondo are free, open-source tools that find build folders such as node_modules and target and delete the ones you pick. Both are MIT licensed. Agent Janitor is a paid tray app for Mac and Linux that cleans up what AI coding agents leave behind: processes that keep running, and the disk space they take up.
The short answer
If you only want to delete build folders now and then, npkill or kondo will do the job for free. Choose Agent Janitor if you want leftover processes stopped too, a bin to restore from, and a tray that tells you when your disk is filling up.
Side by side
| Topic | npkill | kondo | Agent Janitor |
|---|---|---|---|
| What it is | A terminal tool | A terminal tool, plus a separate desktop app (kondo-ui) | A tray app with a command line |
| Systems | Needs Node.js (run it with npx) | Mac, Linux and Windows | Mac and Linux |
| Price | Free, MIT licence | Free, MIT licence | $19 one‑time payment |
| Build folders | Yes. Node.js by default; other profiles to choose | Yes. More than 20 project types | Yes |
| Only old projects | Yes. --older-than | Yes. --older | Yes |
| Stops processes left by agent sessions | Not mentioned in its README | Not mentioned in its README | Yes |
| Lets you restore | Not mentioned in its README | No. Its README says to keep a backup | Build folders and worktrees: yes, from the bin within 24 hours. Caches and temp files are deleted. |
| Runs in the background | No. You start it | No. You start it | Yes. Quiet in your tray |
What npkill and kondo do better
- They’re free and open source. You can read every line and change it.
- Windows. kondo installs on Windows with winget. Agent Janitor isn’t available for Windows yet.
- Many project types. kondo lists more than 20, from Cargo and Gradle to Unity and Unreal Engine. npkill has profiles for Node.js, Python, Rust, game engines and more, and you can make your own.
- npkill warns you about risky folders. It tries to mark a
node_modulesfolder that an installed app needs. - Built for scripts. npkill has a dry run, JSON output, and a mode that deletes without the interface for scripts and CI.
- Nothing to keep running. You run them when you need them, and they’re gone when you’re done.
What Agent Janitor adds
- Processes, not only folders. It stops hidden browsers, dev servers and other processes from agent sessions that have ended.
- A bin. Build folders and worktrees go to a bin first, so you can restore them within 24 hours. Both READMEs describe deleting, with no restore step, and kondo’s tells you to keep a backup.
- Agent leftovers. Old worktrees and old agent versions, with a receipt for each session you start with
janitor run. - Leaves work in use alone. Running agent sessions and worktrees with unsaved changes are never touched.
- It watches for you. The tray colour and a forecast tell you before your disk fills up.
Using both
Many developers keep npkill or kondo for a quick clean of one folder. Agent Janitor works alongside them.
Sources
- github.com/voidcosmos/npkill (README; version 1.0.0 from its releases page)
- github.com/tbillington/kondo (README; version 0.9 from its releases page; MIT from its LICENSE file)
Try Agent Janitor
$19 one‑time payment for one person on up to two computers, Mac and Linux. Try everything free for 24 hours first, with no card.