Start cost & context sources
Your coding agent pays for everything it loads before you type a word: plugins, skills, MCP servers, hook output, instructions. After a year or two of trying things, that is often 50–70k tokens per session, and a lot of it is stuff you forgot you installed.
Measure
Section titled “Measure”Agent GC measures what a session start really costs, from your agent’s own transcripts — not an estimate. agent-gc scan prints it per installation:
~/.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 daysSee where it goes
Section titled “See where it goes”Every plugin, skill, MCP server and hook is listed, heaviest first. Its share is read from what your agent put in context in recent sessions: MCP instructions and deferred tool names (most tool schemas are deferred and load only when used), skill listing lines, agent lines. A source not seen recently is estimated and marked ≈, and so is “system & other”, the part no source explains. The notes:
| Note | Meaning |
|---|---|
| duplicate | the same thing is loaded twice (e.g. one plugin from two marketplaces) |
| not connecting | an MCP server that fails to start, but is still configured |
| unused 30 days | not used in any session for 30 days |
| loaded while disabled | switched off in settings, but its context is still loaded |
| remote | a remote MCP server — Agent GC makes no network calls, so it counts only once a recent session has shown what it loads |
Switch off and back on
Section titled “Switch off and back on”Any source can be switched off and back on — in the app, in the terminal screen (agent-gc with no arguments; space switches), or with agent-gc toggle. Or everything unused for 30 days at once (o in the terminal screen, agent-gc toggle <install-id> unused off). Nothing is deleted, and every config edit is backed up first.
Once you turn on automatic mode, sources unused for 30 days are switched off for you, and each one can be brought back in one step.
Per-installation budget
Section titled “Per-installation budget”agent-gc budget <install-id> <tokens> sets a start-up budget for one installation: Agent GC switches off only the heaviest unused sources until the start cost fits. agent-gc budget <install-id> off removes it. For a budget that belongs to a repository instead, see Repository budget.