code.inBack to home

codein-tidy

A free command from code.in. It frees the disk space and memory that AI coding agents leave behind: Claude Code, Codex, Cursor and Antigravity.

npx codein-tidyReview what can be freed, choose, confirm once.

npx codein-tidy ramMemory by agent session, and idle leftovers you can stop.

Windows, macOS and Linux. Node 18 or newer. No install, no account. MIT licensed. Source and package on GitHub and npm.

Disk

Coding agents keep snapshots, caches, logs, browser recordings, old app versions and git worktrees. Most never delete any of it. On our own laptop we found 28.4 GB of old worktrees.

  • Only what is safe. By default it removes rebuildable data past an age limit. Chat history and worktrees need you to ask.
  • Work is saved first. A worktree with uncommitted work is never removed. A coding agent can read it and commit it, and anything removed can be restored.

Memory

Agents start dev servers, headless browsers and watchers, and some keep running after the session ends.

  • Memory by session. See what each agent session uses, and what it started.
  • Idle leftovers only. A process still working, or started in the last 10 minutes, is never offered. Each one is checked again right before it is stopped.

From your agent

Ask your coding agent to run npx codein-tidy. It shows you the same review as text and runs only what you choose. Claude Code users can add it as a plugin, so each session starts with a short notice when there is something to free.

In code.in

The code.in agent cleans up after itself: it reuses worktrees, saves unfinished work, and stops what it started when a run ends. See code.in.