Skip to content

Quick start

Terminal window
brew install dimitreee/tap/agent-gc

No Homebrew? npm i -g agent-gc-cli. To try it without installing, npx agent-gc-cli scan — but the steps below need a permanent install. All options: Install.

Terminal window
agent-gc scan
~/.claude — 68k tokens at session start
[on ] ≈ 39k system & other
[on ] 9k superpowers-ccg@superpowers-ccg-marketplace duplicate
[on ] 3k claude-mem@thedotmack
[on ] 2k meshy unused 30 days
[on ] 2k serena unused 30 days
0 items to clean, 0 B
  • The first line is what every new session costs before you type anything, measured from your agent’s own transcripts.
  • Each line below is one context source — a plugin, skill, MCP server or hook — heaviest first, with notes like unused 30 days or duplicate. What the notes mean.
  • The last line is what Agent GC could clean up: old temp dirs, interrupted plugin installs, orphaned processes, merged worktrees.

Nothing has been changed yet. scan only looks.

The easiest way is the terminal screen:

Terminal window
agent-gc

Arrows move, space switches a source off or on, o switches off everything unused for 30 days (after asking), q quits. The next session starts without it.

Changed your mind? Switch it back on the same way (space again), or from the shell:

Terminal window
agent-gc toggle claude:~/.claude mcp:global:meshy on

agent-gc scan --json lists the installation and source ids.

Terminal window
agent-gc auto on

This is the one-time confirmation for automatic mode: Agent GC then cleans up in the background as agents come and go and switches off sources unused for 30 days — always reversibly. What it will and won’t do.

Whatever automatic mode cleaned or switched off is listed by restore:

Terminal window
agent-gc restore # what can be put back
agent-gc restore <id> # put one back

agent-gc notify on adds one line at the next session start when something was switched off.