From image-peek
Preview pasted images at their prompt markers on macOS. Ghostty, plus experimental iTerm2 and Herdr support with a startup override. Claude Code 2.1.287+.
8 events · 14 calls
Ships in image-peek. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
process.runenv.getEach event it registers a hook on, with the matcher when it sets one
session.startprompt.editprompt.fillcommand.run{command=image-peek}session.endsession.compactui.render{component=AbovePrompt}ui.render{component=Pane, requestId=image-peek}ui.close{id=image-peek}Every mods API method its source calls, by namespace
everyregistergetrunreadidgetsetcloseinvalidatelogopenpanesresolveCLAUDE_CODE_FORCE_TERMINAL_IMAGESGHOSTTY_RESOURCES_DIRHERDR_ENVTERM_PROGRAMWhere 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 karanb192/claude-code-mods --plugin image-peek