ModsCode / Claude Code Mods / Ranking / lazy-panda-panel
lazy-panda-panel
Review docs without lifting a paw. Your files open right where you’re working. Excel, Word, PDF, Markdown, Confluence (ADF), HTML and pictures: highlight a part, comment, and Claude edits the real file. Nothing to install (Word, Excel and …
What it does
- Draws a pane, the status line, toasts
- Adds /panda
- Watches Bash, Write, Edit calls and can refuse them
- Hooks prompt.submit, session.start, turn.complete, turn.start and 2 more
- Keeps its own state between turns
Good points
- No network calls
- Written in TypeScript
- Has a desktop-specific branch
- Handles errors
Code to start from
A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like lazy-panda-panel by Parag Pandya (pane, status, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/paragpandyareal-lazy-panda-panel/
// 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 pane: open it with $.ui.open({ id: 'my-pane', title: "Lazy Panda Panel" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Input, Button } = $.ui.resolve(e)
const footnote = '…'
const cutTo = '…'
const lead = '…'
const shown = '…'
const head = '…'
const tail = '…'
const i = '…'
const sanitizeLine = '…'
const text = '…'
const text2 = '…'
const text3 = '…'
const length = '…'
const key = '…'
const what = '…'
const what2 = '…'
const what3 = '…'
return (
<Box flexDirection="column">
<Text bold>
Lazy Panda Panel
</Text>
<Text>
────────
</Text>
<Text wrap="wrap">
{footnote}
</Text>
<Box marginTop={0}>
<Box flexDirection="column">
<Box flexDirection="row">
<Box flexShrink={0}>
<Text bold>
{"✎ "}
</Text>
</Box>
<Input label={`Edit comment on ${cutTo}`} placeholder="Clear it and press Enter to delete · Esc: back to Claude" submitLabel="Save" autoFocus />
</Box>
<Text wrap="wrap">
{lead}
{shown}
</Text>
</Box>
</Box>
<Box marginTop={0}>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text>
──
</Text>
<Text bold>
{head}
</Text>
<Text>
{tail}
</Text>
<Text>
────────
</Text>
</Text>
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row">
<Text bold>
{"⚠ "}
</Text>
<Button label={`${i} ${sanitizeLine}`} plain />
<Text wrap="truncate-end">
{" "}
<Text>
{"(text changed) "}
</Text>
{text}
</Text>
</Box>
<Button label="✕" plain dimColor />
</Box>
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row">
<Text bold>
{"⚠ "}
</Text>
<Button label={`${i} ${sanitizeLine}`} plain />
<Text wrap="truncate-end">
{" "}
<Text>
{"(text changed) "}
</Text>
{text2}
</Text>
</Box>
<Button label="✕" plain dimColor />
</Box>
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row">
<Text bold>
{"⚠ "}
</Text>
<Button label={`${i} ${sanitizeLine}`} plain />
<Text wrap="truncate-end">
{" "}
<Text>
{"(text changed) "}
</Text>
{text3}
</Text>
</Box>
<Button label="✕" plain dimColor />
</Box>
<Text>
{" … and "}
{length}
{" more"}
</Text>
</Box>
</Box>
<Box marginTop={0}>
<Box flexDirection="column" />
</Box>
<Box marginTop={1} flexDirection="column">
<Text>
────────
</Text>
<Text wrap="truncate-end">
<Text>
<Text bold>
{` ${key} `}
</Text>
<Text>
{" "}
{what}
{" "}
</Text>
</Text>
<Text>
<Text bold>
{` ${key} `}
</Text>
<Text>
{" "}
{what2}
{" "}
</Text>
</Text>
<Text>
<Text bold>
{` ${key} `}
</Text>
<Text>
{" "}
{what3}
{" "}
</Text>
</Text>
</Text>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const plural = '…'
const baseName = '…'
await $.ui.status(`🐼 ${plural} updated · /panda to open`)
await $.ui.toast(`Opening ${baseName}…`)
await $.ui.toast(`Couldn’t open ${baseName}. Open it from your files instead.`)
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.
hooks/register.tsx lines 1235–1316 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const els = $.ui.resolve(e)
// Input is on the terminal and desktop, Image on the terminal alone.
const { Input, Image } = els as Partial<Elements['terminal']>
const hasViews = e.surface === 'terminal' || e.surface === 'desktop'
const { path, version } = await read($, open)
const ctx: Ctx = {
els,
Input: hasViews ? Input : undefined,
Image: e.surface === 'terminal' && session.isSharp ? Image : undefined,
surface: e.surface,
columns: Math.max(40, e.props.bodyColumns),
bodyRows: e.props.scroll.bodyRows,
pal: PALETTE,
list: await read($, files),
path,
version,
d: path === null ? undefined : docs.get(path),
v: await read($, view),
sel: await read($, selection),
notes: await read($, comments),
change: await read($, changed),
isAuto: await read($, autoOpen),
picture: null,
}
ctx.picture = await selectedPicture($, ctx.d, ctx.sel, version, ctx.v.raw === true)
const { Box, Text } = els
const drafts = ctx.notes.filter(c => c.status === 'draft')
const section =
ctx.list.length === 0
? emptySection(ctx)
: !ctx.d
? { bar: <Text color={ctx.pal.dim}>Loading…</Text>, body: <Text> </Text> }
: ctx.d.kind === 'error'
? ctx.d.isNotice
? { bar: <Text color={ctx.pal.warning} bold>ⓘ {baseName(ctx.d.path)} is over 4 MB, so it needs Python to open</Text>, body: <Text color={ctx.pal.text}>{ctx.d.message}</Text> }
: { bar: <Text color={ctx.pal.error} bold>Couldn’t show {baseName(ctx.d.path)}</Text>, body: <Text color={ctx.pal.subtle}>{ctx.d.message}</Text> }
: ctx.d.kind === 'image'
? imageSection($, ctx, ctx.d)
: ctx.d.kind === 'lines'
? linesSection($, ctx, ctx.d, Math.min(drafts.length, MAX_LISTED))
: gridSection($, ctx, ctx.d, Math.min(drafts.length, MAX_LISTED))
const rule = <Text color={ctx.pal.dim}>{'─'.repeat(ctx.columns)}</Text>
const actions = actionsRow($, ctx)
const keyLine = keysRow(ctx, section.keys ?? [])
const sent = ctx.notes.filter(c => c.status === 'sent').length
// The three drawing modules, each named by a fixed path, on the surfaces that draw them; elsewhere, plain text.
let fileBar: RenderNode | null | undefined = <Text bold>{baseName(path ?? 'Lazy Panda Panel')}</Text>
let document: RenderNode | null | undefined = section.body
let spinner: RenderNode | null | undefined = null
if (e.surface === 'terminal' || e.surface === 'desktop') {
// Each view is the call its JSX compiles to, with the element taken from the table right there and a fixed module path.
fileBar = h($.ui.resolve(e).Client, { module: './filebar.tsx', key: 'file-tabs', props: fileBarProps(ctx) })
if (section.viewer) {
document = h($.ui.resolve(e).Client, { module: './viewer.tsx', key: 'viewer', props: section.viewer.props, height: section.viewer.height })
}
if (sent > 0) {
const spinnerProps: SpinnerProps = { text: `Claude is working on ${plural(sent, 'comment')}…`, color: ctx.pal.claude, glow: ctx.pal.warning }
spinner = h($.ui.resolve(e).Client, { module: './spinner.tsx', key: 'spinner', props: spinnerProps })
}
}
return (
<Box flexDirection="column" width={ctx.columns}>
{fileBar}
{section.bar}
{rule}
{document}
{section.after ?? null}
{section.footnote ? <Text color={ctx.pal.warning} wrap="wrap">{section.footnote}</Text> : null}
<Box marginTop={isCompact(ctx) ? 0 : 1}>{commentRow($, ctx)}</Box>
<Box marginTop={isCompact(ctx) ? 0 : 1}>{commentList($, ctx)}</Box>
{actions && <Box marginTop={isCompact(ctx) ? 0 : 1}>{actions}</Box>}
{spinner}
{keyLine && !isCompact(ctx) && (
<Box marginTop={1} flexDirection="column">
{rule}
{keyLine}
</Box>
)}
</Box>
)
})hooks/register.tsx lines 1774–1823 · Pane
function commentRow($: EngineInterface, ctx: Ctx) {
const { Box, Text } = ctx.els
const { pal, sel, d, Input } = ctx
if (!sel) {
if (!d || d.kind === 'error') return null
// A box that looks like where comments go, saying how to start one.
return (
<Box {...(isCompact(ctx) ? {} : { borderStyle: 'round', borderColor: pal.dim, paddingX: 1 })}>
<Text wrap="truncate-end">
<Text color={pal.comment} bold>✎ Comment </Text>
<Text color={pal.subtle}>· {d.kind === 'image' ? 'click the picture' : `click or drag over ${d.kind === 'grid' ? 'cells' : 'lines'}`} above, then type here</Text>
</Text>
</Box>
)
}
if (!Input) return <Text color={pal.subtle}>Comments can be added from the terminal.</Text>
// A selection that already carries a waiting comment edits that comment.
const editing = ctx.notes.find(c => c.status === 'draft' && isAt(c, sel))
const key = commentKey(ctx.notes, sel)
const short = sel.sheet !== undefined ? sel.label.slice(sel.label.lastIndexOf('!') + 1) : sel.label
// Exactly what the comment will quote to Claude, on one or two lines: text the view cuts off (a long cell, a wide code line) is seen here.
const flat = sel.quote.replace(/\n/g, ' ⏎ ').replace(/ {4,}/g, run => ` ·${run.length} spaces· `)
const lead = `Quoted for Claude (${plural(sel.quote.length, 'character')}): `
const room = Math.max(10, (ctx.columns - 4) * 2 - lead.length - 16)
const shown = flat.length > room ? `“${flat.slice(0, room)}” … and ${flat.length - room} more characters, also sent (Edit before sending shows them all)` : `“${flat}”`
return (
<Box flexDirection="column" {...(isCompact(ctx) ? {} : { borderStyle: 'round', borderColor: pal.comment, paddingX: 1 })}>
<Box flexDirection="row">
<Box flexShrink={0}>
<Text color={pal.comment} bold>✎ </Text>
</Box>
<Input
key={key}
label={`${editing ? 'Edit comment on' : 'Comment on'} ${cutTo(sanitizeLine(short), clamp(Math.floor(ctx.columns * 0.25), 12, 80))}`}
placeholder={editing ? 'Clear it and press Enter to delete · Esc: back to Claude' : 'What should change? · Esc: back to Claude'}
submitLabel={editing ? 'Save' : 'Add'}
{...(editing ? { value: editing.text } : {})}
autoFocus
onSubmit={value => void saveComment($, value, d?.kind === 'grid')}
/>
</Box>
{sel.quote ? (
<Text color={pal.dim} wrap="wrap">
{lead}
{shown}
</Text>
) : null}
</Box>
)
}hooks/register.tsx lines 1839–1892 · Pane
function commentList($: EngineInterface, ctx: Ctx) {
const { Box, Text, Button } = ctx.els
const { pal, sel, d, path, columns } = ctx
const drafts = ctx.notes.filter(c => c.status === 'draft')
if (drafts.length === 0) {
if (!d || d.kind === 'error' || isCompact(ctx)) return null
return (
<Box flexDirection="column">
{sectionHeader(ctx, 'Comments', '')}
<Text color={pal.dim}> No comments yet. Select something and say what to change.</Text>
</Box>
)
}
const listed = drafts.slice(0, MAX_LISTED)
const editing = sel ? drafts.find(c => isAt(c, sel)) : undefined
const labelWidth = clamp(Math.max(...listed.map(c => strWidth(noteLabel(c, path)))), 6, 24)
return (
<Box flexDirection="column">
{sectionHeader(ctx, `Comments · ${drafts.length}`, 'click one to review or edit it')}
{listed.map((c, i) => {
const isOpen = editing?.id === c.id
return (
<Box key={`note-${c.id}`} flexDirection="row" justifyContent="space-between" width={columns}>
<Box flexDirection="row">
<Text color={c.isStale ? pal.warning : isOpen ? pal.accent : pal.comment} bold>{c.isStale ? '⚠ ' : isOpen ? '▸ ' : '● '}</Text>
<Button
key={`open-${c.id}`}
label={`${String(i + 1).padStart(2)} ${padRight(sanitizeLine(noteLabel(c, path)), labelWidth)}`}
plain
onPress={press => void jumpTo($, c.id, press.surface)}
/>
<Text bold={isOpen} color={pal.text} wrap="truncate-end">
{' '}
{c.isStale ? <Text color={pal.warning}>(text changed) </Text> : null}
{c.text}
</Text>
</Box>
<Button
key={`del-${c.id}`}
label="✕"
plain
dimColor
onPress={async () => {
await update($, comments, old => old.filter(one => one.id !== c.id))
$.ui.toast('Comment deleted')
}}
/>
</Box>
)
})}
{drafts.length > listed.length && <Text color={pal.subtle}> … and {drafts.length - listed.length} more</Text>}
</Box>
)
}hooks/register.tsx lines 1825–1837 · Pane
function sectionHeader(ctx: Ctx, title: string, detail: string) {
const { Text } = ctx.els
const head = ` ${title} `
const tail = detail ? ` ${detail} ` : ''
return (
<Text wrap="truncate-end">
<Text color={ctx.pal.dim}>──</Text>
<Text color={ctx.pal.comment} bold>{head}</Text>
<Text color={ctx.pal.subtle}>{tail}</Text>
<Text color={ctx.pal.dim}>{'─'.repeat(Math.max(2, ctx.columns - 2 - head.length - tail.length))}</Text>
</Text>
)
}hooks/register.tsx lines 1894–1917 · Pane
function actionsRow($: EngineInterface, ctx: Ctx) {
const { Box, Text, Button } = ctx.els
const { pal } = ctx
const drafts = ctx.notes.filter(c => c.status === 'draft').length
const queued = ctx.notes.filter(c => c.status === 'queued').length
const parts: JSX.Element[] = []
if (drafts > 0) {
parts.push(
<Box key="send-row" flexDirection="row" columnGap={2}>
<Button key="send" label={`➤ Send ${plural(drafts, 'comment')} to Claude`} variant="primary" onPress={() => void deliver($, 'submit')} />
<Button key="fill" label="Edit before sending" plain onPress={() => void deliver($, 'fill')} />
</Box>,
)
}
if (queued > 0) {
parts.push(
<Box key="queued-row" flexDirection="row" columnGap={2}>
<Text color={pal.subtle}>✎ {plural(queued, 'comment')} in the prompt box: press Enter there to send</Text>
<Button key="unqueue" label="↩ back to drafts" plain onPress={() => void backToDrafts($)} />
</Box>,
)
}
return parts.length === 0 ? null : <Box flexDirection="column">{parts}</Box>
}hooks/register.tsx lines 1919–1934 · Pane
function keysRow(ctx: Ctx, keys: [string, string][]) {
const { Text } = ctx.els
const { pal } = ctx
if (keys.length === 0) return null
// Key hints as chips: the key on a band, what it does after it.
return (
<Text wrap="truncate-end">
{keys.map(([key, what], i) => (
<Text key={`k${i}`}>
<Text backgroundColor={pal.band || undefined} color={pal.text} bold inverse={!pal.band}>{` ${key} `}</Text>
<Text color={pal.subtle}> {what}{i < keys.length - 1 ? ' ' : ''}</Text>
</Text>
))}
</Text>
)
}Licence text (MIT)
MIT License Copyright (c) 2026 Parag Pandya 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.
How to build this: Pane (panel), Deny a tool call
What its code calls
runs programswrites filesenv varsdrives Claudetool callsremembers
What its code shows
Read from the source at commit 6ed0eb4b56f9 on 2026-10-11. 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.hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.22 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, with its own branch for the desktop |
| 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).hooks/register.tsx:386 open (not on Windows); hooks/register.tsx:387 xdg-open (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.hooks/register.tsx:285 python3 (a shell or interpreter); hooks/register.tsx:286 py (a shell or interpreter); hooks/register.tsx:287 python (a shell or interpreter); hooks/register.tsx:289 python3 (a shell or interpreter); hooks/register.tsx:290 py (a shell or interpreter) |
| Reads and sends | Whether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads environment variables, files, the prompt box and reaches the 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 |
| Settings hooks | Hooks declared in hooks/hooks.json or plugin.json beside the module: a command (a shell when it has no args), an HTTP request, an MCP tool or a model prompt at an event. They run outside $.no settings hooks: its function hooks alone |
| Servers it ships | MCP servers (a program, or a URL; a headersHelper is a shell command; a .mcpb bundle is unpacked at run time), LSP servers, monitors (a shell command for the whole session) and bin/ (on the PATH of the Bash tool).ships no MCP or LSP server, no monitor, no bin/ |
| Skills, commands, agents | What its Markdown declares beyond text: allowed-tools granted for the turn, hooks added when a skill is invoked, a command run before Claude reads the skill.no skills, commands, agents or workflows |
| Tools and MCP | Whether every tool it calls through $.tool.call and $.mcp.call is named in the code, and none is a shell (Bash through the tool runs a shell without $.process).calls no tool, MCP server or command |
| Asks of the model | Completions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.prompt.submit (as the person), adds command panda, adds tool open_file, adds tool open_files |
| Events it hooks | By what a hook there can do: gates (refuse a tool call, a prompt, a setting, another plugin), shapes (what the model reads: the system prompt, tool descriptions, each request), reads (your input, the events of the settings hooks, every event with *), and the rest.gates: command.run (panda), tool.call (mcp__lazy-panda-panel__…, Bash, Write (+1)), prompt.submit · reads: ui.message · also: session.start, turn.start, turn.complete, ui.scroll (Pane) (+1) · timers: clock.every |
| Reads, by name | The environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.env: DISPLAY, WAYLAND_DISPLAY, TERM, TERM_PROGRAM; files: a path computed at run time, /System/Library/CoreServices/SystemVers…, its own folder/examples/…; the prompt box |
| Writes, by name | The files and environment variables it names, and whether it changes settings, the prompt box, the clipboard, the conversation (a row the model reads) or another session.files: a path computed at run time; the prompt box |
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 its code (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
From its marketplace
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 paragpandyareal/lazy-panda-panel/plugin install lazy-panda-panel@lazy-panda-panel/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (6ed0eb4b56f9). Compare them before you install. /reload-plugins loads it into a session that is already open.
Try the commit ModsCode read
No marketplace needed. In a terminal, clone the repository, check out the commit read, validate the mod, and load it for one session:
git clone https://github.com/paragpandyareal/lazy-panda-panelgit -C lazy-panda-panel checkout 6ed0eb4b56f9fd71872578a2e245022c26ce3cedclaude plugin validate lazy-panda-panelclaude --plugin-dir lazy-panda-panelThe validate line lists the events the mod hooks and what it asks Claude Code to do, without running it. The last line loads the mod for this session only and writes nothing to your settings. If the author has rewritten history, the commit may no longer exist.
Ask Claude about it
With the ModsCode connector added, Claude can read this mod's code and what it reaches, and build on them. Ask it like this:
Read the ModsCode mod "paragpandyareal-lazy-panda-panel" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- code-modernizationAnthropic★ 37,653
- great-ctoAlexander Velikiy★ 103
- agent-discoverkeshrath★ 7
- context-keeperMichael Goldenberg★ 6
- guardrailsMichael Goldenberg★ 6
- roadraven-hudShuffzord★ 6
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/paragpandyareal-lazy-panda-panel/)