ModsCode / Claude Code Mods / Ranking / superset-deck
superset-deck
A Superset-style workspace sidebar inside Claude Code, driven by the Superset CLI
What it does
- Draws a pane, a band above the prompt
- Hooks session.start
- Starts processes
Good points
- No network calls
- Written in TypeScript
- Handles errors
- Writes no files
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 superset-deck by tomikng (pane, band), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/tomikng-superset-deck/
// 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: "Superset" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Input } = $.ui.resolve(e)
const logo = '…'
const host = '…'
const length = '…'
const live = '…'
const n = '…'
const spin = '…'
const bz = '…'
const plus = '…'
const refresh = '…'
const restore = '…'
const up = '…'
const down = '…'
const start = '…'
const length2 = '…'
const length3 = '…'
const glyph = '…'
const name = '…'
const open = '…'
const trash = '…'
const branch = '…'
const branch2 = '…'
const folder = '…'
const projectName = '…'
const clock = '…'
const ago = '…'
const word = '…'
const label = '…'
const icon = '…'
const k = '…'
const v = '…'
const icon2 = '…'
const k2 = '…'
const v2 = '…'
const icon3 = '…'
const k3 = '…'
const v3 = '…'
const terminal = '…'
const terminalId = '…'
const terminal2 = '…'
const terminalId2 = '…'
const terminal3 = '…'
const terminalId3 = '…'
const send = '…'
const warn = '…'
const text = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text>
<Text color="magenta" bold>
{logo}
{" Superset"}
</Text>
<Text dimColor>
{" "}
{host}
{" local · "}
{length}
{" workspaces ·"}
{" "}
</Text>
<Text color="green">
{live}
{" "}
{`${n}${length}`}
{" live"}
</Text>
<Text color="yellow">
{" "}
{spin}
{" "}
{bz}
</Text>
</Text>
<Box flexDirection="row" gap={1}>
<Button plain hotkey="n" label={`${plus} New`} />
<Button plain hotkey="r" label={`${refresh}`} />
<Button plain hotkey="z" label={`${restore}`} />
</Box>
</Box>
<Text dimColor>
────────
</Text>
<Box flexDirection="row" gap={1} flexGrow={1}>
<Box flexDirection="column" flexShrink={0}>
<Box flexGrow={1} />
<Box flexDirection="row" gap={1} marginTop={1}>
<Button plain hotkey="k" label={`${up} k`} />
<Button plain hotkey="j" label={`${down} j`} />
<Text dimColor>
{`${start}1`}
–
{length2}
/
{length3}
</Text>
</Box>
</Box>
<Text dimColor>
│
│
│
│
│
│
│
│
</Text>
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text bold wrap="truncate">
<Text>
{glyph}
{" "}
</Text>
{name}
</Text>
<Box flexDirection="row" gap={1}>
<Button plain hotkey="o" label={`${open} Open`} />
<Button hotkey="y" variant="primary" label={`${trash} Confirm delete`} />
</Box>
</Box>
<Text dimColor wrap="truncate">
{branch}
{" "}
{branch2}
{" · "}
{folder}
{" "}
{projectName}
{" · "}
{clock}
{" "}
{ago}
{" · "}
{word}
</Text>
<Box flexDirection="row" gap={2} marginY={1}>
<Button plain hotkey="1" variant="primary" label={`▸${label}`} />
<Button plain hotkey="2" variant="primary" label={`▸${label}`} />
<Button plain hotkey="3" variant="primary" label={`▸${label}`} />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="gray" paddingX={1}>
<Box flexDirection="row">
<Text color="cyan">
{icon}
{" "}
{k}
</Text>
<Text wrap="truncate-middle">
{v}
</Text>
</Box>
<Box flexDirection="row">
<Text color="cyan">
{icon2}
{" "}
{k2}
</Text>
<Text wrap="truncate-middle">
{v2}
</Text>
</Box>
<Box flexDirection="row">
<Text color="cyan">
{icon3}
{" "}
{k3}
</Text>
<Text wrap="truncate-middle">
{v3}
</Text>
</Box>
<Text dimColor wrap="truncate">
{" "}
{terminal}
{" "}
{terminalId}
</Text>
<Text dimColor wrap="truncate">
{" "}
{terminal2}
{" "}
{terminalId2}
</Text>
<Text dimColor wrap="truncate">
{" "}
{terminal3}
{" "}
{terminalId3}
</Text>
</Box>
<Box marginTop={1}>
<Input label={`${send} `} placeholder="Message the agent… (Enter sends)" submitLabel="send" value="" />
</Box>
</Box>
</Box>
<Box flexDirection="row" justifyContent="space-between">
<Text color="red" wrap="truncate">
{warn}
{" "}
{text}
</Text>
</Box>
</Box>
)
})
// 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 logo = '…'
const length = '…'
const live = '…'
const n = '…'
const hot = '…'
const open = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Text>
<Text color="magenta" bold>
{logo}
{" Superset"}
</Text>
<Text dimColor>
{" "}
{length}
{" workspaces · "}
</Text>
<Text color="green">
{live}
{" "}
{`${n}${length}`}
{" live"}
</Text>
<Text color="yellow">
{" · "}
{hot}
{" active"}
</Text>
</Text>
<Button plain hotkey="o" label={`${open} open`} />
</Box>
{await next(e)}
</Box>
)
})
}
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 412–571 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e, next) => {
if (e.surface === 'mobile') return next(e)
const { Box, Text, Button, Input, Select, Code } = $.ui.resolve(e)
const cols = e.props.bodyColumns
if (e.viewport?.columns) screenColumns = e.viewport.columns
if (needsWiden && screenColumns) {
needsWiden = false
void openPane($, false)
}
const rows = Math.max(12, (e.viewport?.rows ?? 30) - 3)
const now = Date.now()
const [list, terms, stat, projs, sel, term, t, m, f, scr, d, off, del, bz, ban, loaded, fr] =
await Promise.all([
read($, workspaces), read($, terminals), read($, stats), read($, projects), read($, selected),
read($, terminal), read($, tab), read($, mode), read($, form), read($, screen), read($, diff),
read($, diffOffset), read($, confirmDelete), read($, busy), read($, banner),
read($, loadedAt), read($, frame),
])
const spin = icons.spinner[fr % icons.spinner.length]
const ws = list.find(w => w.id === sel) ?? null
const live = liveTerminals(ws ? terms[ws.id] : [])
const totalLive = Object.values(terms).reduce((n, l) => n + liveTerminals(l).length, 0)
const isWide = cols >= 90
const sideW = isWide ? Math.min(40, Math.max(28, Math.floor(cols * 0.32))) : cols
const mainW = isWide ? cols - sideW - 1 : cols
const statusOf = (w: Workspace) => {
const l = liveTerminals(terms[w.id]).length
const isHot = now - w.lastActivityAt < ACTIVE_MS || (w.id === sel && scr && now - scr.changedAt < SCREEN_ACTIVE_MS)
if (l > 0 && isHot) return { glyph: spin, color: 'yellow', word: 'working' }
if (l > 0) return { glyph: icons.live, color: 'green', word: `${l} live` }
return { glyph: icons.idle, color: 'gray', word: 'idle' }
}
const StatText = ({ s }: { s: DiffStat | undefined }) =>
s && (s.added || s.removed) ? (
<Text>
<Text color="green">+{s.added}</Text>
<Text color="red"> −{s.removed}</Text>
</Text>
) : (
<Text dimColor> </Text>
)
// ── header ───────────────────────────────────────────────
const header = (
<Box flexDirection="row" justifyContent="space-between" width={cols}>
<Text>
<Text color="magenta" bold>
{icons.logo} Superset
</Text>
<Text dimColor>
{' '}
{icons.host} local · {list.length} workspaces ·{' '}
</Text>
<Text color={totalLive ? 'green' : 'gray'}>
{icons.live} {totalLive} live
</Text>
{bz && (
<Text color="yellow">
{' '}
{spin} {bz}
</Text>
)}
</Text>
<Box flexDirection="row" gap={1}>
<Button key="new" plain hotkey="n" label={`${icons.plus} New`} onPress={() => update($, mode, () => 'new' as Mode)} />
<Button key="refresh" plain hotkey="r" label={icons.refresh} onPress={() => refresh($, { force: true })} />
<Button key="max" plain hotkey="z" label={isMax ? icons.restore : icons.maximize} onPress={() => toggleMax($)} />
</Box>
</Box>
)
// ── sidebar ──────────────────────────────────────────────
const sideRows: { key: string; node: RenderElement; id?: string }[] = []
for (const [project, items] of grouped(list)) {
const liveInGroup = items.reduce((n, w) => n + liveTerminals(terms[w.id]).length, 0)
sideRows.push({
key: `g:${project}`,
node: (
<Box key={`g:${project}`} flexDirection="row" justifyContent="space-between" width={sideW} marginTop={sideRows.length ? 1 : 0}>
<Text bold color="blue" wrap="truncate">
{icons.folderOpen} {cut(project, sideW - 8)}
</Text>
<Text dimColor>{liveInGroup ? `${liveInGroup}/${items.length}` : items.length}</Text>
</Box>
),
})
for (const w of items) {
const st = statusOf(w)
const isSel = w.id === sel
const s = stat[w.id]
const right = `${s && (s.added || s.removed) ? `+${s.added} −${s.removed} ` : ''}${ago(w.lastActivityAt, now)}`
sideRows.push({
key: `w:${w.id}`,
id: w.id,
node: (
<Box key={`w:${w.id}`} flexDirection="row" width={sideW} backgroundColor={isSel ? 'blackBright' : undefined}>
<Text color={isSel ? 'cyan' : 'gray'}>{isSel ? '▌' : ' '}</Text>
<Text color={st.color}>{st.glyph} </Text>
<Box flexGrow={1} flexShrink={1}>
<Button
key={`ws:${w.id}`}
plain
label={cut(w.branch || w.name, sideW - right.length - 6)}
onPress={() => select($, w.id)}
/>
</Box>
<StatText s={s} />
<Text dimColor> {ago(w.lastActivityAt, now)}</Text>
</Box>
),
})
}
}
const sideRoom = Math.max(4, (isWide ? rows : Math.floor(rows / 3)) - 4)
const selIndex = Math.max(0, sideRows.findIndex(r => r.id === sel))
const start = Math.max(0, Math.min(selIndex - Math.floor(sideRoom / 2), sideRows.length - sideRoom))
const visible = sideRows.slice(start, start + sideRoom)
const sidebar = (
<Box flexDirection="column" width={sideW} flexShrink={0}>
{list.length === 0 ? (
<Text dimColor>
{loaded ? 'No workspaces on this machine yet. Press n to make one.' : `${spin} Loading workspaces…`}
</Text>
) : (
visible.map(r => r.node)
)}
<Box flexGrow={1} />
<Box flexDirection="row" gap={1} marginTop={1}>
<Button key="up" plain hotkey="k" label={`${icons.up} k`} onPress={() => move($, -1)} />
<Button key="down" plain hotkey="j" label={`${icons.down} j`} onPress={() => move($, 1)} />
<Text dimColor>
{start + 1}–{Math.min(sideRows.length, start + sideRoom)}/{sideRows.length}
</Text>
</Box>
</Box>
)
// ── main: new-workspace form ─────────────────────────────
const newForm = () => (
<Box flexDirection="column" width={mainW} borderStyle="round" borderColor="magenta" paddingX={1}>
<Text bold color="magenta">
{icons.plus} New workspace
</Text>
<Text dimColor>A git worktree on a new branch, with {agentPreset} started on your prompt.</Text>
<Box marginTop={1} flexDirection="column">
{projs.length === 0 ? (
<Text dimColor>
{spin} Loading projects…
</Text>
) : (
<Select
key="new:project"
label={`${icons.folder} Project `}
value={f.projectId || undefined}
options={projs.map(p => ({ value: p.id, label: p.name }))}hooks/register.tsx lines 808–837 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const below = await next(e)
if (!showBand || e.props.hasSurvey) return below
const [list, terms] = [await read($, workspaces), await read($, terminals)]
if (list.length === 0) return below
const isOpen = await paneShown($)
if (isOpen) return below
const { Box, Text, Button } = $.ui.resolve(e)
const now = Date.now()
const live = Object.values(terms).reduce((n, l) => n + liveTerminals(l).length, 0)
const hot = list.filter(w => now - w.lastActivityAt < ACTIVE_MS).length
return (
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Text>
<Text color="magenta" bold>
{icons.logo} Superset
</Text>
<Text dimColor> {list.length} workspaces · </Text>
<Text color={live ? 'green' : 'gray'}>
{icons.live} {live} live
</Text>
{hot > 0 && <Text color="yellow"> · {hot} active</Text>}
</Text>
<Button key="band:open" plain hotkey="o" label={`${icons.open} open`} onPress={() => openPane($, true)} />
</Box>
{below}
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 Tom Nguyen 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), Band above the prompt
What its code calls
runs programsenv varsships servers
What its code shows
Read from the source at commit 4edab00343c7 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.3 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).runs no program a Windows PC lacks |
| 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.superset, git (reaches the network) |
| 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 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).bin/: superset-deck on the Bash tool's PATH |
| 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.adds command ? |
| 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 · also: session.start, ui.render (Pane, AbovePrompt) · timers: clock.after, 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: SUPERSET_DECK_MAIN |
| 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.writes no files, environment variables, settings or conversation rows |
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 tomikng/claude-superset-deck/plugin install superset-deck@superset-deck/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (4edab00343c7). 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/tomikng/claude-superset-deckgit -C claude-superset-deck checkout 4edab00343c77e49070dfb83f865ea3cdd7320d8claude plugin validate claude-superset-deckclaude --plugin-dir claude-superset-deckThe 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 "tomikng-superset-deck" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- agent-discoverkeshrath★ 7
- chimaera-ui-probemartinappberg★ 4
- sc-toolboxSimpleCORE★ 2
- devtoolsNMenzel★ 1
- prdeckVishal K Setti★ 1
- hopeSaad Shahd★ 35
More by tomikng
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/tomikng-superset-deck/)