From gallery-mod
Demonstrations of various rendering techniques for mods and how they are handled by different clients
4 events · 9 calls
Ships in gallery-mod. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callEach event it registers a hook on, with the matcher when it sets one
session.startcommand.run{command=mod-gallery}tool.callui.render{component=Pane, requestId=gallery}ui.render{component=AbovePrompt}ui.render{component=ToolUse}ui.render{component=CommandOutput, props=?}Every mods API method its source calls, by namespace
everynowregistergetsetblitinvalidateopenresolveWhere 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 hesreallyhim/claude-mod-lab --plugin gallery-mod