From cc-preview
Preview images and markdown files from the conversation and the prompt: hover cards, and a side pane that draws markdown as a preview does (tables, tasks, alerts, math, pictures)
8 events · 24 calls
Ships in cc-preview. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
process.runfs.writefs.existsfs.listfs.readfs.statenv.getprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startsession.endprompt.submitcommand.run{command=preview}session.append{door=prompt}turn.completeui.render{component=AssistantMessage}ui.render{component=UserMessage}ui.render{component=ToolUse}ui.render{component=ToolGroup}ui.render{component=AbovePrompt}ui.close{id=cc-preview}ui.render{component=Pane, requestId=cc-preview}Every mods API method its source calls, by namespace
aftereveryregistergetexistslistreadstatwriterunreadcwdidmessagesrootgetsetcopyinvalidateopenpanesresolvescrolltoastCLAUDE_CODE_FORCE_TERMINAL_IMAGESCLAUDE_CODE_TMPDIRCLAUDE_CONFIG_DIRHOMELANGLC_ALLTERMTERM_PROGRAMWhere 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 andrew54068/claude-plugins --plugin cc-preview