From agent-budget
Tracks each agent's context size and warns as it grows. Past the threshold main writes its handoff file and is compacted in place, then reads that file first; a subagent writes its handoff brief and stops.
8 events · 18 calls
Ships in agent-budget. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callprocess.runfs.listfs.readfs.statenv.getprompt.submitprompt.submitEach event it registers a hook on, with the matcher when it sets one
agent.spawnsession.startcommand.run{command=agent-budget}turn.steptool.callprompt.submitturn.completesession.compactEvery mods API method its source calls, by namespace
listafternowregistergetlistreadstatrunsubmitcompactidusagegetsetlogstatustoastCLAUDE_CONFIG_DIRHOMEWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.ts (written ./register.ts)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub ryankim17920/ryk-claude-mods --plugin agent-budget