modscode / Gallery / show-and-tell
show-and-tell
πΈ Shows you the pictures: a thumbnail the moment you paste one, and /gallery of every image you and Claude passed around this session.
What it does
- Draws a band above the prompt, a pane, toasts
- Adds /gallery
- Watches Read, Write, Edit, Bash calls
- Hooks classic.SessionStart, prompt.submit, session.append, session.end and 1 more
- Keeps its own state between turns
Good points
- No network calls
- Written in TypeScript
- Has a desktop-specific branch
Code to start from
Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like show-and-tell by Lorcan Chinnock (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/lorcanchinnock-show-and-tell/
// Written by modscode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
// the band above the prompt; what else goes there is drawn under it
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const { Box, Text, Button } = $.ui.resolve(e)
const length = 'β¦'
return (
<Box flexDirection="column">
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<Box flexShrink={1}>
<Text>
{"πΈ "}
{` and ${length} more`}
</Text>
</Box>
<Box flexShrink={0}>
<Button plain label="Gallery" />
</Box>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "πΈ Show & Tell" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const length = 'β¦'
const hotkey = 'β¦'
const label = 'β¦'
const ICON = 'β¦'
const sizeText = 'β¦'
const SOURCE_WORD = 'β¦'
const clockTime = 'β¦'
const path = 'β¦'
const length2 = 'β¦'
const ICON2 = 'β¦'
const label2 = 'β¦'
const sizeText2 = 'β¦'
const SOURCE_WORD2 = 'β¦'
const clockTime2 = 'β¦'
const path2 = 'β¦'
const length3 = 'β¦'
return (
<Box flexDirection="column">
<Box flexDirection="row" flexWrap="wrap" columnGap={3} marginBottom={1}>
<Box flexDirection="row">
<Text bold>
πΈ Show & Tell
</Text>
<Text dimColor>
{" "}
{"Β· "}
{length}
{" image"}
{" this session"}
</Text>
</Box>
<Box flexDirection="row" columnGap={2}>
<Button hotkey={`${hotkey}`} plain label={`${label}`} />
<Button hotkey={`${hotkey}`} plain label={`${label}`} />
<Button hotkey={`${hotkey}`} plain label={`${label}`} />
</Box>
</Box>
<Text dimColor>
Nothing yet. Paste an image with ctrl+v, or let Claude read or make one.
</Text>
<Box flexDirection="row">
<Box flexDirection="column" flexGrow={1} flexShrink={1}>
<Box flexDirection="column" marginBottom={1}>
<Text bold wrap="truncate-end">
{ICON}
{" "}
{label}
{sizeText}
</Text>
<Text dimColor wrap="truncate-end">
{SOURCE_WORD}
{" at "}
{clockTime}
{" Β· "}
{path}
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<Button hotkey="o" plain label="Open" autoFocus />
<Button hotkey="i" plain label="Insert @path" />
<Button hotkey="p" plain label="Copy path" />
<Button hotkey="f" plain label="Show in folder" />
</Box>
</Box>
<Button plain label={`βΊ ${clockTime} ${ICON} ${label}${sizeText}`} />
<Button plain label={`βΊ ${clockTime} ${ICON} ${label}${sizeText}`} />
<Button plain label={`βΊ ${clockTime} ${ICON} ${label}${sizeText}`} />
<Text dimColor>
{" +"}
{length2}
{" more"}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="column" marginBottom={1}>
<Text bold wrap="truncate-end">
{ICON2}
{" "}
{label2}
{sizeText2}
</Text>
<Text dimColor wrap="truncate-end">
{SOURCE_WORD2}
{" at "}
{clockTime2}
{" Β· "}
{path2}
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<Button hotkey="o" plain label="Open" autoFocus />
<Button hotkey="i" plain label="Insert @path" />
<Button hotkey="p" plain label="Copy path" />
<Button hotkey="f" plain label="Show in folder" />
</Box>
</Box>
<Button plain label={`βΊ ${clockTime} ${ICON} ${label}${sizeText}`} />
<Button plain label={`βΊ ${clockTime} ${ICON} ${label}${sizeText}`} />
<Button plain label={`βΊ ${clockTime} ${ICON} ${label}${sizeText}`} />
<Text dimColor>
{" +"}
{length3}
{" more"}
</Text>
</Box>
<Box marginTop={1}>
<Text dimColor>
{"Kept "}
7
{" days Β· tab walks the list Β· esc closes"}
</Text>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const path = 'β¦'
const dirName = 'β¦'
await $.ui.toast(`πΈ Could not open ${path}`)
await $.ui.toast(`πΈ Could not open ${dirName}`)
return next(e)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
plugins/show-and-tell/hooks/register.tsx lines 545β605 Β· Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (e.props.hasSurvey) return next(e)
const ids = await read($, fresh)
const list = await read($, shots)
const showing = ids.map(id => list.find(s => s.id === id)).filter((s): s is Shot => s !== undefined)
if (showing.length === 0) return next(e)
const below = await next(e)
const width = e.props.bodyColumns - MARKER
const fits = Math.max(1, Math.floor((width - 22) / (THUMB_COLUMNS + 2)))
const thumbRows = e.props.maxRows - 2
if (e.surface === 'terminal' && thumbRows >= 3) {
const { Box, Text, Button, Image } = $.ui.resolve(e)
return (
<Box flexDirection="column">
{below}
<Box flexDirection="row" columnGap={2} width={width}>
{showing.slice(0, fits).map(shot => (
<Box flexDirection="column" width={THUMB_COLUMNS} flexShrink={0}>
{/* The label is under it, so where the terminal draws no pixels the alt says the size. */}
{shot.thumb !== null && (
<Image
key={`band-${shot.id}`}
source={{ file: shot.thumb, format: 'png', generation: shot.at }}
columns={THUMB_COLUMNS}
rows={rowsFor(shot.width, shot.height, THUMB_COLUMNS, thumbRows)}
alt={shot.width !== null && shot.height !== null ? `${shot.width}Γ${shot.height}` : 'picture'}
/>
)}
<Text dimColor wrap="truncate-end">
{ICON[shot.source]} {shot.label}
</Text>
</Box>
))}
<Box flexDirection="column" flexShrink={0}>
{showing.length > fits && <Text dimColor>+{showing.length - fits} more</Text>}
<Button key="band-gallery" plain label="Gallery" onPress={() => void openGallery($)} />
<Button key="band-dismiss" plain dimColor label="Dismiss" onPress={() => void $.state.set(FRESH, [])} />
</Box>
</Box>
</Box>
)
}
const { Box, Text, Button } = $.ui.resolve(e)
const [first] = showing
return (
<Box flexDirection="column">
{below}
<Box flexDirection="row" flexWrap="wrap" columnGap={2} width={width}>
<Box flexShrink={1}>
<Text>
πΈ {first === undefined ? '' : `${ICON[first.source]} ${first.label}${sizeText(first)}`}
{showing.length > 1 ? ` and ${showing.length - 1} more` : ''}
</Text>
</Box>
<Box flexShrink={0}>
<Button key="band-gallery" plain label="Gallery" onPress={() => void openGallery($)} />
</Box>
</Box>
</Box>
)
})plugins/show-and-tell/hooks/register.tsx lines 620β731 Β· Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const all = await read($, shots)
const which = await read($, filter)
const pickedId = await read($, picked)
const list = all.filter(s => which === 'all' || (which === 'you' ? s.source === 'you' : s.source !== 'you'))
const current = list.find(s => s.id === pickedId) ?? list[0]
const { bodyColumns } = e.props
const bodyRows = e.props.scroll.bodyRows
const isBeside = bodyColumns >= SIDE_BY_SIDE
// Every row is counted: an inline pane may get far fewer than it asked for, and what does not
// fit is cut off. The header (with the filters) takes 2, the footer 2 where there is room.
const hasFooter = bodyRows >= 14
const room = Math.max(3, bodyRows - 2 - (hasFooter ? 2 : 0))
// Beside the picture: the details (3 rows and a gap), the list, and a "+N more" line if needed.
const listFits = (rows: number) => (list.length <= rows ? list.length : Math.max(1, rows - 1))
const listRows = isBeside ? listFits(room - 4) : listFits(Math.min(3, Math.max(1, room - 7)))
const box = fitPicture(
current?.width ?? null,
current?.height ?? null,
isBeside ? Math.min(PREVIEW_COLUMNS, Math.floor(bodyColumns * 0.45)) : Math.min(bodyColumns - 2, PREVIEW_COLUMNS),
isBeside ? room : room - 4 - listRows - (list.length > listRows ? 1 : 0),
)
const hasPicture = current?.thumb != null && e.surface === 'terminal' && box.rows >= 3
const tabs = (['all', 'you', 'claude'] as const).map(f => ({ f, label: f === 'all' ? 'All' : f === 'you' ? 'You' : 'Claude', hotkey: f[0] }))
const { Box, Text, Button } = $.ui.resolve(e)
const preview =
hasPicture && current?.thumb != null && e.surface === 'terminal'
? (() => {
const { Image } = $.ui.resolve(e)
return (
<Box flexShrink={0} marginRight={isBeside ? 2 : 0}>
<Image
key="preview"
source={{ file: current.thumb, format: 'png', generation: current.at }}
columns={box.columns}
rows={box.rows}
alt="This terminal shows no pictures; o opens it"
/>
</Box>
)
})()
: null
const details = current !== undefined && (
<Box flexDirection="column" marginBottom={1}>
<Text bold wrap="truncate-end">
{ICON[current.source]} {current.label}
{sizeText(current)}
</Text>
<Text dimColor wrap="truncate-end">
{SOURCE_WORD[current.source]} at {clockTime(current.at)} Β· {current.path}
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<Button key="act-open" hotkey="o" plain label="Open" autoFocus onPress={() => void openFile($, current.path)} />
<Button key="act-insert" hotkey="i" plain label="Insert @path" onPress={() => void insertPath($, current.path)} />
<Button key="act-copy" hotkey="p" plain label="Copy path" onPress={press => void copyPath($, current.path, press.surface)} />
<Button key="act-folder" hotkey="f" plain label="Show in folder" onPress={() => void showInFolder($, current.path)} />
</Box>
</Box>
)
const picks = list.slice(0, listRows).map(shot => (
<Button
key={`pick-${shot.id}`}
plain
dimColor={shot.id !== current?.id}
label={`${shot.id === current?.id ? 'βΊ' : ' '} ${clockTime(shot.at)} ${ICON[shot.source]} ${shot.label}${sizeText(shot)}`}
onPress={() => void $.state.set(PICKED, shot.id)}
/>
))
const more = list.length > picks.length ? <Text dimColor> +{list.length - picks.length} more</Text> : null
return (
<Box flexDirection="column">
<Box flexDirection="row" flexWrap="wrap" columnGap={3} marginBottom={1}>
<Box flexDirection="row">
<Text bold>πΈ Show & Tell</Text>
<Text dimColor>
{' '}
Β· {all.length} image{all.length === 1 ? '' : 's'} this session
</Text>
</Box>
<Box flexDirection="row" columnGap={2}>
{tabs.map(t => (
<Button key={`tab-${t.f}`} hotkey={t.hotkey} plain dimColor={t.f !== which} label={t.label} onPress={() => void $.state.set(FILTER, t.f)} />
))}
</Box>
</Box>
{current === undefined && <Text dimColor>Nothing yet. Paste an image with ctrl+v, or let Claude read or make one.</Text>}
{current !== undefined && isBeside && (
<Box flexDirection="row">
{preview}
<Box flexDirection="column" flexGrow={1} flexShrink={1}>
{details}
{picks}
{more}
</Box>
</Box>
)}
{current !== undefined && !isBeside && (
<Box flexDirection="column">
{preview}
{details}
{picks}
{more}
</Box>
)}
{hasFooter && (
<Box marginTop={1}>
<Text dimColor>Kept {KEEP_DAYS} days Β· tab walks the list Β· esc closes</Text>
</Box>
)}
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 Lorcan Chinnock Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
What its code calls
runs programswrites filesenv varstool callsremembers
The design, read from code
Drawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.
What its code shows
Read from the source at commit 985685d682c0 on 2026-10-06. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.plugins/show-and-tell/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.1 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs |
| Calls in the open | Network and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open |
| For you to weigh before installing | |
| Where it draws | The terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both |
| Install line | Whether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/β¦ do not).plugins/show-and-tell/hooks/register.tsx:121 uname (not on Windows); plugins/show-and-tell/hooks/register.tsx:349 find (not on Windows); plugins/show-and-tell/hooks/register.tsx:350 find (not on Windows) |
| Network | Whether every fetch names its https host in the code.no network |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.plugins/show-and-tell/hooks/register.tsx:111 a program named at run time |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reaches no network |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets modscode show its code; otherwise the code is linked.MIT |
This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen
Install it
Check it yourself before you install it. Mods run unsandboxed, with your permissions, and modscode does not vouch for what this code does. Read the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:
/plugin marketplace add LorcanChinnock/claude-desk-neighbours/plugin install show-and-tell@claude-desk-neighboursThis installs the marketplace's latest commit, which may not be the one read here (985685d682c0). Compare them before you install.
Ask Claude about it
With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:
Read the modscode design "lorcanchinnock-show-and-tell" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claudeβ¦2h 10m Β· βββββββββ build β build β buildJavaKotlin3 Pythonβ ok 3 β ok 3 β ok 3 Razor proven 3 Razor proven 3 Razor proven 3Phases ββββββββ 3/3build Pythonbuild Pythonbuild Pythonβ¦ 3 more phasesLua ββββββββ 3/Kotlinβ the whole upgrade Rubyβ build build Rubyβ build build Rubyβ build build Ruby β¦ 3 moreNext ββββββββ PythonRuby (by hand)Podsclick a button, or ctrl+x tab then Tab, EnterAttention ββββββββ 3! Scala ! Scala ! Scala β¦ 3 moreSession ββββββββ okJava
-
Open a file first: /crit-tui file <path>Reopen this one in the crit browser view.Ask Claudeβ¦
-
Ask Claudeβ¦TodayOct 63 left Β· Mar overdueRemCTL: Sepβ All done for today.β build3β Fix login β βJul Β· buildββ Fix login β βJul Β· buildββ Fix login β βJul Β· buildββ build3β Fix login β βJul Β· buildββ Fix login β βJul Β· buildββ Fix login β βJul Β· buildββ build3β Fix login β βJul Β· buildββ Fix login β βJul Β· buildββ Fix login β βJul Β· buildβUpdated 14:32UndoRefresh
-
Ask Claudeβ¦TO graphβΊ Fix login βΊ Fix login βΊ Fix loginScopeThis featureWhole projectHide done stepsReconnect
-
Ask Claudeβ¦Blast Radiusβ Blast Radius Β· buildCommand npm testWould CancelProceed Proceed ProceedBash1 Proceed2 CancelClaude is waiting on your answer
-
Ask Claudeβ¦Agent Radarβ Edit note Β· 2h 10m Β· 0 toolsnow: startingββββββββNo messages yet.agent: (tool calls)agent: (tool calls)agent: (tool calls)Back bClose q