From image-preview
Hover a pasted [Image #N] to see the picture: above the prompt while you write, and on the prompts you sent.
6 events · 19 calls
Ships in image-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.runprocess.spawnfs.existsfs.listfs.readfs.statenv.getprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startsession.endprompt.editprompt.submitui.messageui.render{component=UserMessage|AssistantMessage|ToolUse|ToolResult|ToolGroup|CommandOutput|TurnDuration|InfoNotice}ui.render{component=AbovePrompt}Every mods API method its source calls, by namespace
everysleepgetexistslistreadstatrunspawnreadcwdidrootgetsetblitinvalidatelogresolveCLAUDE_CODE_FORCE_TERMINAL_IMAGESCLAUDE_CODE_TMPDIRDISPLAYKITTY_WINDOW_IDOSSSH_CONNECTIONSSH_TTYSystemRootTEMPTERMTERM_PROGRAMTMPWSLENVWSL_DISTRO_NAMEWhere 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 midudev/better-claude --plugin image-preview