From cockpit
Agent cockpit for Claude Code: live context, limits, cost, tools, files, tests and a guard for risky commands
10 events · 23 calls
Ships in cockpit. 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.writefs.readcommand.runEach event it registers a hook on, with the matcher when it sets one
session.startsession.measureturn.startturn.steptool.callturn.completesession.compactcommand.run{command=cockpit-budget}command.run{command=cockpit-demo}command.run{command=cockpit-cache}command.run{command=cockpit-export}command.run{command=cockpit}ui.close{id=cockpit}ui.render{component=AbovePrompt}command.run{command=cockpit-report}command.run{command=cockpit-guard}ui.render{component=Pane, requestId=cockpit}Every mods API method its source calls, by namespace
listeverynowregisterrunreadwriteruncwdmodelusagegetsetdeletegetsetaskinvalidatelogopenresolvestatustoastWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.tsx (written ./register.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 hy4hy/cockpit-for-claude --plugin cockpit