From sc-mods
Claude Code mods: draws mermaid diagrams in replies as Unicode text, jumps between prompts, moves shell commands into a drawer above the prompt, marks each turn, copies a reply's markdown, and gives Claude a tool that shows pictures inline in the conversation
7 events · 25 calls
Ships in sc-mods. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.calltool.runtool.callprocess.runfs.writefs.readfs.statenv.getEach event it registers a hook on, with the matcher when it sets one
session.startui.render{component=AssistantMessage}session.endsession.append{door=?}ui.render{component=AbovePrompt}tool.call{tool=?}ui.render{component=ToolResult, props=?}session.end{reason=clear|resume}tool.call{tool=Bash}command.run{command=tool-drawer}tool.run{tool=Bash}ui.render{component=ToolUse}ui.render{component=ToolResult}ui.render{component=ToolProgress}ui.render{component=ToolGroup}ui.render{component=AbovePromptList}ui.render{component=UserMessage}Every mods API method its source calls, by namespace
aftereverynowregistergetreadstatwriterunidmessagesrootgetsetgetsetcallcheckregisteraskcopylogresolvescrolltoastCLAUDE_CONFIG_DIRHOMEXDG_CACHE_HOMEWhere 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 kylesnowschwartz/simpleclaude --plugin sc-mods