From context-diet
Audit the context cost of MCP servers, skills, agents and memory files in a Claude Code session.
6 events · 14 calls
Ships in context-diet. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callfs.readenv.getskill.promptEach event it registers a hook on, with the matcher when it sets one
session.starttool.callskill.promptturn.completecommand.run{command=diet}ui.render{component=CommandOutput, props=?}ui.render{component=Pane, requestId=context-diet}ui.render{component=AbovePrompt}Every mods API method its source calls, by namespace
nowregistergetreadcwdusagegetsetdeletegetsetlogopenresolveHOMEWhere Claude Code finds the mod
hooks/hooks.jsonhooks/context-diet.tsx (written ./context-diet.tsx)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 fugazi/context-diet --plugin context-diet