From turn-budget
When one turn uses more than +5 session points or 500,000 uncached input tokens, writes a handoff from exact session data and copies it for a new session; the old session is never cleared. No model calls.
7 events · 15 calls
Ships in turn-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.writeenv.getEach event it registers a hook on, with the matcher when it sets one
session.starttool.callcommand.run{command=handoff}session.measureturn.startturn.completeturn.stepcommand.run{command=turn-budget}Every mods API method its source calls, by namespace
nowregistergetwriterunappendcwdmessagesgetsetabortaskcopystatustoastCLAUDE_CONFIG_DIRHOMEUSERPROFILEWhere 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 vedantandhale/claude-pro-kit --plugin turn-budget