modscode / Gallery / slab-deck
slab-deck
SLAB/SIGNAL control center for Claude Code: live deck band, control pane, popups and tmux navigation
What it does
- Draws a pane, toasts
- Adds /deck, /deck-band
- Watches tool calls
- Hooks agent.spawn, session.measure, session.start, turn.complete and 3 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
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 slab-deck by phaseonebig (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/5omeotherguy-slab-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: "deck" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const glyph = '…'
const nm = '…'
const steps = '…'
const length = '…'
const dur = '…'
const tokens = '…'
const tokens2 = '…'
const tokens3 = '…'
const summary = '…'
const outcome = '…'
const outcome2 = '…'
const outcome3 = '…'
const outcome4 = '…'
const outcome5 = '…'
const outcome6 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between" backgroundColor="#1c1c1c" paddingX={2}>
<Text>
<Text>
{glyph}
{" "}
</Text>
<Text color="#9a9a9a">
{nm}
</Text>
<Text color="#e8e8e8">
{`${steps} steps · ${length} calls`}
</Text>
</Text>
<Text color="#9a9a9a">
{dur}
</Text>
</Box>
<Box flexDirection="column" backgroundColor="#121212" paddingX={2}>
<Box flexDirection="row" justifyContent="space-between">
<Text color="#9a9a9a">
input
</Text>
<Text>
{tokens}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between">
<Text color="#9a9a9a">
output
</Text>
<Text>
{tokens2}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between">
<Text color="#9a9a9a">
cache read
</Text>
<Text>
{tokens3}
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row">
<Text color="#72b8b0">
{"▸ "}
</Text>
<Button plain dimColor label={`${nm}${summary}`} />
</Box>
<Text>
<Text color="#72b8b0">
{outcome}
</Text>
<Text color="#9a9a9a">
{outcome2}
</Text>
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row">
<Text color="#72b8b0">
{"▸ "}
</Text>
<Button plain dimColor label={`${nm}${summary}`} />
</Box>
<Text>
<Text color="#72b8b0">
{outcome3}
</Text>
<Text color="#9a9a9a">
{outcome4}
</Text>
</Text>
</Box>
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row">
<Text color="#72b8b0">
{"▸ "}
</Text>
<Button plain dimColor label={`${nm}${summary}`} />
</Box>
<Text>
<Text color="#72b8b0">
{outcome5}
</Text>
<Text color="#9a9a9a">
{outcome6}
</Text>
</Text>
</Box>
<Button plain hotkey="x" label="close" role="dismiss" dimColor />
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const what = '…'
await $.ui.toast(`context: the window could not be counted`)
await $.ui.toast(`tmux: ${what} failed`)
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.
mod/slab-deck/hooks/register.tsx lines 569–574 · Pane
on('ui.render', { component: 'Pane', requestId: POP }, async ($, e) => {
const v = await view($, e, e.props.bodyColumns)
const p = await read($, stPopup)
const { Text } = v.T
return p === null ? <Text>Nothing to show.</Text> : Pop(v, p)
})mod/slab-deck/hooks/views.tsx lines 682–763 · Pane
export function Pop(v: View, p: Popup): RenderElement {
const { Box, Text, Button, Code, Markdown } = v.T
const close = <Button key="pop-x" plain hotkey="x" label="close" role="dismiss" dimColor onPress={() => v.act.closePop()} />
if (p.kind === 'help')
return (
<Box flexDirection="column" width={v.width} backgroundColor={C.BLOCK} paddingX={2}>
<Markdown
text={[
'| where | keys |',
'| --- | --- |',
'| band | `^X ⇥` focus · `1`–`9` tmux window · `d` deck · `n` new window · `s` split · `h` keys |',
'| deck | `1`–`7` section · `r` refresh · `⏎` on a row opens it |',
'| tmux | `⏎` on a pane peeks · `g` go there · `p` pop out · `n` `v` `b` window / split · `c` claude window · `z` zoom me |',
'| popup | `esc` or `x` dismiss |',
'',
'`/deck [section]` · `/deck-band full|compact|off` · hover a statusline fact for its card',
].join('\n')}
/>
{close}
</Box>
)
if (p.kind === 'tool') {
const t = v.tools.find(x => x.id === p.id)
if (!t) return <Box flexDirection="column"><Text color={C.FAINT}>that call is no longer kept</Text>{close}</Box>
const isRunning = t.durationMs === null
return (
<Box flexDirection="column" width={v.width}>
{Header(
v,
['▸', isRunning ? C.LIVE : C.DIM],
toolName(t.tool),
t.summary,
isRunning ? <Text color={C.LIVE}>▪▪▪</Text> : (
<Text>
<Text color={t.isError ? C.FAIL : C.OK}>{t.isError ? '✗' : '✓'}</Text>
<Text color={C.DIM}>{` ${took(t.durationMs)}${t.agentId ? ` · agent ${t.agentId.slice(0, 8)}` : ''}`}</Text>
</Text>
),
)}
<Box backgroundColor={C.BLOCK} paddingX={2} width={v.width}>
<Code source={t.detail} language="json" />
</Box>
<Box flexDirection="row" gap={2} backgroundColor={C.BLOCK} paddingX={2} width={v.width}>
<Button key="pop-copy" plain hotkey="c" label="copy input" onPress={() => v.act.copy(t.detail)} />
{close}
</Box>
</Box>
)
}
if (p.kind === 'turn') {
const t = v.turns.find(x => x.id === p.id)
if (!t) return <Box flexDirection="column"><Text color={C.FAINT}>that turn is no longer kept</Text>{close}</Box>
const own = v.tools.filter(x => x.startedAt >= t.startedAt && x.startedAt <= t.startedAt + (t.durationMs ?? 0))
const w = { ...v, width: v.width - 4 }
return (
<Box flexDirection="column" width={v.width}>
{Header(v, t.isAborted ? ['✗', C.FAIL] : ['▸', C.DIM], 'turn', `${t.steps} steps · ${own.length} calls`, <Text color={C.DIM}>{dur(t.durationMs)}</Text>)}
<Box flexDirection="column" backgroundColor={C.BLOCK} paddingX={2} width={v.width}>
{Row(w, 'pt-in', 'input', tokens(t.inTokens))}
{Row(w, 'pt-out', 'output', tokens(t.outTokens))}
{Row(w, 'pt-cr', 'cache read', tokens(t.cacheRead))}
{own.slice(-10).map(x => ToolRow(w, x))}
{close}
</Box>
</Box>
)
}
return (
<Box flexDirection="column" width={v.width}>
{Header(v, ['↳', C.REF], 'pane', p.id, <Text color={C.DIM}>{`${p.lines.length} rows`}</Text>)}
<Box backgroundColor={C.BLOCK} paddingX={2} width={v.width}>
<Code source={p.lines.length > 0 ? p.lines.join('\n') : '—'} wrap="truncate-end" />
</Box>
<Box flexDirection="row" gap={2} backgroundColor={C.BLOCK} paddingX={2} width={v.width}>
{p.id !== v.tmux?.self && <Button key="pp-go" plain hotkey="g" label="go there" onPress={() => v.act.goPane(p.id)} />}
<Button key="pp-split" plain hotkey="v" label="split beside it" dimColor onPress={() => v.act.split('h', p.id)} />
<Button key="pp-r" plain hotkey="r" label="refresh" dimColor onPress={() => v.act.pop({ kind: 'pane', id: p.id, lines: [] })} />
{close}
</Box>
</Box>
)
}mod/slab-deck/hooks/views.tsx lines 667–680 · Pane
function Header(v: View, glyph: [string, string], name: string, arg: string, right: RenderElement | null): RenderElement {
const { Box, Text } = v.T
const nm = name.length > 10 ? name.slice(0, 9) + '…' : name.padEnd(10, ' ')
return (
<Box flexDirection="row" justifyContent="space-between" backgroundColor={C.PLUS} width={v.width} paddingX={2}>
<Text>
<Text color={glyph[1]}>{glyph[0]} </Text>
<Text color={C.DIM}>{nm}</Text>
<Text color={C.INK}>{clip(arg, Math.max(8, v.width - 30))}</Text>
</Text>
{right}
</Box>
)
}mod/slab-deck/hooks/views.tsx lines 182–190 · Pane
function Row(v: View, key: string, label: string, value: string, tone: string = C.INK): RenderElement {
const { Box, Text } = v.T
return (
<Box key={key} flexDirection="row" justifyContent="space-between" width={v.width}>
<Text color={C.DIM}>{label}</Text>
<Text color={tone}>{value}</Text>
</Box>
)
}mod/slab-deck/hooks/views.tsx lines 236–254 · Pane
function ToolRow(v: View, t: ToolRec): RenderElement {
const { Box, Text, Button } = v.T
const isRunning = t.durationMs === null
const outcome = isRunning ? '▪▪▪' : `${t.isError ? '✗' : '✓'} ${took(t.durationMs)}`
const name = toolName(t.tool)
const nm = name.length > 10 ? name.slice(0, 9) + '…' : name.padEnd(10, ' ')
return (
<Box key={`tr-${t.id}`} flexDirection="row" justifyContent="space-between" width={v.width}>
<Box flexDirection="row">
<Text color={isRunning ? C.LIVE : C.DIM}>▸ </Text>
<Button key={`tool-${t.id}`} plain dimColor label={`${nm}${clip(t.summary, Math.max(8, v.width - 24))}`} onPress={() => v.act.pop({ kind: 'tool', id: t.id })} />
</Box>
<Text>
<Text color={isRunning ? C.LIVE : t.isError ? C.FAIL : C.OK}>{outcome.slice(0, isRunning ? 3 : 1)}</Text>
{!isRunning && <Text color={C.DIM}>{outcome.slice(1)}</Text>}
</Text>
</Box>
)
}Licence text (MIT)
MIT License Copyright (c) 2026 5omeOtherGuy 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 varsdrives Claudetool 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 8bd388c136c5 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.mod/slab-deck/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.4 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.its repository's .claude-plugin/marketplace.json does not list it: no install line to give |
| 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.mod/slab-deck/hooks/register.tsx:87 a program named at run time; mod/slab-deck/hooks/register.tsx:159 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's .claude-plugin/marketplace.json does not list it, so there is no install line to give. Read it as code, or follow its author's README.
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 "5omeotherguy-slab-deck" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…ReviewPR #3 Fix loginbranche couranteà traiter ▸3 ▸3 ▸3 · en relecture ▸3 ▸3 ▸3▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review────────fil 31/3 Review ↗ GitHub
Review@alexReview@alexReview@alexReviewRéponse : Review publierEntrée publie · Esc annule la réponse · les touches n, p… tapent dans le champ… ReviewLe panneau n'a pas le clavier : ctrl+x tab ou un clic, et les touches marchent.p préc. n suiv. t PR suiv. x démarquer a tout démarquer f corriger (3) r répondre v résoudre o web q fermer -
Ask Claude…PR securityall3 shown · 3 ignoredLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — Editignored (3)⋯src/app.ts:Approve Pull requests: Mergesrc/app.ts:Approve Pull requests: Mergesrc/app.ts:Approve Pull requests: Merge
-
What it does
- Draws a pane
- Watches tool calls and can refuse them
- Hooks agent.spawn, prompt.submit, session.end, session.start and 5 more
- Keeps its own state between turns
-
Ask Claude…⏱ time machine onHeatproject · Heat3 Claude turns since 2h 10m · size: lines changedUndo these 3Undo these 3Undo these 3↑ Up bOpen in browser oTime machine██Edit██Edit██Edit…and 3 moreWritesrc/app.ts×No closed Claude turn changed it in this window.EditEditEdit[Open the interactive map](src/app.ts)
-
Ask Claude…HandoffHandoffHandoff… the rest of the step is in the handoff████████░░░░░░░░ /clear in 4spress 1 to clear now, or send a prompt to stay
-
slop Edit1 of 3accepteditrejectAsk Claude…