Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / deck

deck

A cockpit for Claude Code: plan bars and subagent strips, context, usage limits with reset countdowns and burn rates, spend, the model route and a pet. Six bar styles, three collapsed looks. CLI and Desktop.

Code you can checkTerminal + desktopPaneBandBoxButtonSvgText
network, draws

What it does

  • Draws a pane, a band above the prompt
  • Adds /deck
  • Watches tool calls
  • Hooks agent.spawn, classic.Stop, classic.SubagentStop, classic.TaskCompleted and 10 more
  • Keeps its own state between turns

Good points

  • Starts no processes
  • Has a desktop-specific branch
  • 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)

register.tsx
import type { Register } from 'claude-code'

// Drawn like deck by nvr0x5 (pane, band), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/nvr0x5-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, Button, Text, Svg } = $.ui.resolve(e)
    const length = '…'
    const petLaneSvg = '…'
    const act = '…'
    const extras = '…'
    const title = '…'
    const source = '…'
    const alt = '…'
    const title2 = '…'
    const title3 = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="column" gap={1}>
          <Box flexDirection="row" columnGap={1} alignItems="center">
            <Button label="deck ▾" plain hotkey="0" dimColor />
            <Text>
              {`· ${length} row`}
            </Text>
            <Box flexGrow={1} overflow="hidden">
              <Svg source={`${petLaneSvg}`} alt={`Claude pet, ${act}`} height={28} />
            </Box>
            <Box flexShrink={0}>
              <Text>
                {extras}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="row" alignItems="flex-start" gap={1}>
            <Text>
              ⇄
            </Text>
            <Text wrap="truncate">
              {title}
            </Text>
            <Box flexGrow={1} />
            <Svg source={`${source}`} alt={`${alt}`} />
            <Button label="✕" plain dimColor />
          </Box>
          <Box flexDirection="row" alignItems="flex-start" gap={1}>
            <Text>
              ⇄
            </Text>
            <Text wrap="truncate">
              {title2}
            </Text>
            <Box flexGrow={1} />
            <Svg source={`${source}`} alt={`${alt}`} />
            <Button label="✕" plain dimColor />
          </Box>
          <Box flexDirection="row" alignItems="flex-start" gap={1}>
            <Text>
              ⇄
            </Text>
            <Text wrap="truncate">
              {title3}
            </Text>
            <Box flexGrow={1} />
            <Svg source={`${source}`} alt={`${alt}`} />
            <Button label="✕" plain dimColor />
          </Box>
        </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, Button, Text, Svg } = $.ui.resolve(e)
    const length = '…'
    const petLaneSvg = '…'
    const act = '…'
    const extras = '…'
    const title = '…'
    const source = '…'
    const alt = '…'
    const title2 = '…'
    const title3 = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="column" gap={1}>
          <Box flexDirection="row" columnGap={1} alignItems="center">
            <Button label="deck ▾" plain hotkey="0" dimColor />
            <Text>
              {`· ${length} row`}
            </Text>
            <Box flexGrow={1} overflow="hidden">
              <Svg source={`${petLaneSvg}`} alt={`Claude pet, ${act}`} height={28} />
            </Box>
            <Box flexShrink={0}>
              <Text>
                {extras}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="row" alignItems="flex-start" gap={1}>
            <Text>
              ⇄
            </Text>
            <Text wrap="truncate">
              {title}
            </Text>
            <Box flexGrow={1} />
            <Svg source={`${source}`} alt={`${alt}`} />
            <Button label="✕" plain dimColor />
          </Box>
          <Box flexDirection="row" alignItems="flex-start" gap={1}>
            <Text>
              ⇄
            </Text>
            <Text wrap="truncate">
              {title2}
            </Text>
            <Box flexGrow={1} />
            <Svg source={`${source}`} alt={`${alt}`} />
            <Button label="✕" plain dimColor />
          </Box>
          <Box flexDirection="row" alignItems="flex-start" gap={1}>
            <Text>
              ⇄
            </Text>
            <Text wrap="truncate">
              {title3}
            </Text>
            <Box flexGrow={1} />
            <Svg source={`${source}`} alt={`${alt}`} />
            <Button label="✕" plain dimColor />
          </Box>
        </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.js lines 1969–1969 · Pane
  on('ui.render', { component: 'Pane' }, deckView)
hooks/register.js lines 1163–1322 · Pane
async function deckView($, e, next) {
  // the same view draws in the band above the prompt and, opened by /deck panel, in a pane:
  // VS Code's panel draws panes but not the band
  const inPane = e.component === 'Pane'
  if (inPane && e.requestId !== 'deck-panel') return next(e)
  if (!inPane && e.props.hasSurvey) return next(e)
  const open = inPane || prefs.open
  const { Box, Text, Button, Svg, Image } = $.ui.resolve(e)
  const desktop = e.surface !== 'terminal' // desktop, VS Code and mobile all draw Svg
  if (e.surface === 'terminal') sawTerminal = true
  // TEXT/MUTED/DIM/TRACK are tuned for a dark background and vanish on a light desktop theme;
  // there, plain text takes the theme's foreground and grey text uses dimColor instead
  const tone = (c) => (!desktop ? { color: c } : c === TEXT || c === '#c9c7c1' ? {} : c === MUTED || c === DIM || c === TRACK ? { dimColor: true } : { color: c })
  const nowMs = Date.now()
  const cols = Math.max(40, e.props.bodyColumns ?? e.viewport?.columns ?? 100)
  const rows = collectRows(nowMs)
  const extras = []
  if (prefs.show.clock) extras.push((desktop ? '◷ ' : '') + clockText())
  const wt = prefs.show.weather ? weatherText(desktop) : ''
  if (wt) extras.push(wt)
  if (!rows.length && !extras.length && !prefs.show.pet) return next(e)
  // a mod after deck in the hook chain also wants to draw AbovePrompt; stack its band under ours
  // instead of swallowing it (https://github.com/nvr0x5/claude-deck/issues/2)
  const below = await next(e)
  const stack = (tree) => (below ? Box({ flexDirection: 'column', children: [tree, below] }) : tree)

  // the pet's lane
  const lane = []
  const inlinePet = desktop && Svg && prefs.show.pet && open && rows.length && prefs.size !== 'roomy'
  if (prefs.show.pet && !inlinePet) {
    if (desktop && Svg) {
      const W = Math.max(320, cols * 8)
      const LH = prefs.size === 'roomy' ? 54 : 44
      lane.push(Svg({ source: petLaneSvg(pet, nowMs, W, LH), alt: 'Claude pet, ' + pet.act, width: W, height: LH }))
    } else if (!desktop && Image) {
      // leave a margin: a row as wide as the band gets cut and marked with [-]
      const room = Math.max(0, cols - PET_COLS - 4)
      const x = Math.round(petX(pet, nowMs) * room)
      const px = petFrame(pet.act, nowMs - pet.start, pet.dir)
      lane.push(
        Box({
          flexDirection: 'row',
          height: PET_ROWS,
          overflow: 'hidden',
          children: [
            Box({ width: x, flexShrink: 0, children: [] }),
            Image({ key: 'pet', source: { rgba: toBase64(px), width: PET_RASTER.width, height: PET_RASTER.height }, columns: PET_COLS, rows: PET_ROWS, alt: ' ' }),
          ],
        }),
      )
    }
  }

  const toggle = Button({
    key: 'deck-toggle',
    label: isOpening() ? 'deck ▾' : 'deck ▸',
    plain: true,
    hotkey: '0',
    dimColor: true,
    onPress: () => setOpen($, !isOpening()),
  })
  const extrasText = Box({ flexShrink: 0, children: [Text({ ...tone(MUTED), children: [extras.join('  ·  ')] })] })
  const spacer = Box({ flexGrow: 1, children: [] })

  // ----- collapsed, rings: a ring per limit, its reset, and spend -----
  if ((!open || !rows.length) && prefs.collapsed === 'rings') {
    const items = []
    const ask = rows.find((r) => r.state === 'needs_input')
    if (ask) items.push(Text({ color: STYLE.ask.fill, children: ['? ' + trunc(ask.title, 24) + ' needs you'] }))
    for (const row of rows.filter((r) => r.limit)) {
      const st = STYLE[row.style]
      const tag = row.kindKey === 'five_hour' ? '5h' : row.kindKey === 'seven_day' ? '7d' : row.title
      const ring = desktop
        ? Svg({ alt: tag + ' ' + Math.round(row.pct) + '% used', width: 22, height: 22, source: ringSvg(row.pct, st.desk, row.kindKey === 'seven_day' ? 'week' : 'clock') })
        : Text({ color: st.fill, children: ['○◔◑◕●'[Math.min(4, Math.round(row.pct / 25))]] })
      items.push(
        Box({
          flexDirection: 'row',
          flexShrink: 0,
          columnGap: 1,
          alignItems: 'center',
          children: [ring, Text({ ...tone(TEXT), bold: true, wrap: 'truncate', children: [Math.round(row.pct) + '%'] }), Text({ ...tone(MUTED), wrap: 'truncate', children: [tag + (row.resets ? ' · resets ' + row.resets : '')] })],
        }),
      )
    }
    if (prefs.cost) {
      items.push(
        Box({
          flexDirection: 'row',
          flexShrink: 0,
          columnGap: 1,
          alignItems: 'center',
          children: [
            desktop ? Svg({ alt: 'spend', width: 22, height: 22, source: ringSvg(100, STYLE.done.desk, 'usd') }) : Text({ color: STYLE.done.fill, children: ['$'] }),
            Text({ color: STYLE.done.fill, bold: true, wrap: 'truncate', children: [fmtUsd(spend.dayUsd)] }),
            Text({ ...tone(MUTED), wrap: 'truncate', children: ['today · ' + fmtUsd(spend.monthUsd) + ' this month'] }),
          ],
        }),
      )
    }
    const busy = rows.find((r) => (r.kind === 'bar' || r.kind === 'activity') && r.animating && r.state !== 'needs_input')
    if (busy) items.push(Box({ flexShrink: 1, children: [Text({ ...tone(MUTED), wrap: 'truncate', children: [STYLE[busy.style].glyph + ' ' + trunc(busy.short, 22)] })] }))
    const line = Box({
      flexDirection: 'row',
      columnGap: 2,
      alignItems: 'center',
      children: [
        ...(rows.length ? [toggle] : []),
        Box({ flexDirection: 'row', flexShrink: 1, overflow: 'hidden', columnGap: desktop ? 4 : 3, alignItems: 'center', children: items }),
        spacer,
        extrasText,
      ],
    })
    return stack(Box({ flexDirection: 'column', children: [...lane, line] }))
  }

  // ----- collapsed, text: one plain status line, clock and weather at its end -----
  if ((!open || !rows.length) && prefs.collapsed === 'text') {
    const parts = []
    for (const row of collapsedOrder(rows)) {
      const st = STYLE[row.style]
      if (parts.length) parts.push(Text({ children: ['  '] }))
      if (row.kind === 'route') {
        parts.push(Text({ color: desktop ? STYLE.run.desk : STYLE.run.fill, children: ['⇄ '] }))
        parts.push(Text({ ...tone(MUTED), children: [row.to + (row.effort ? ' · ' + row.effort : '')] }))
        continue
      }
      parts.push(Text({ color: desktop ? st.desk : st.fill, children: [st.glyph + ' '] }))
      parts.push(Text({ ...tone(row.state === 'needs_input' ? st.fill : MUTED), children: [row.short] }))
    }
    if (extras.length) parts.push(Text({ ...tone(MUTED), children: [(parts.length ? '  ' : '') + [...extras].reverse().join('  ')] }))
    const line = Box({
      flexDirection: 'row',
      columnGap: 1,
      children: [...(rows.length ? [toggle] : []), Box({ flexDirection: 'row', flexShrink: 1, children: [Text({ wrap: 'truncate', children: parts })] })],
    })
    return stack(Box({ flexDirection: 'column', children: [...lane, line] }))
  }

  // ----- collapsed, chips: one line of chips, limits first -----
  if (!open || !rows.length) {
    const chips = []
    // the terminal counts columns; the desktop counts pixels (about 8 per column, ~7.5 per character)
    let budget = desktop ? cols * 8 - 140 - extras.join('  ·  ').length * 7.5 : cols - 10 - extras.join('  ·  ').length
    let hidden = 0
    for (const row of collapsedOrder(rows)) {
      const st = STYLE[row.style]
      const w = desktop ? row.short.length * 8.5 + 76 : row.short.length + 10
      if (w > budget) {
        hidden++
        continue
      }
      budget -= w
      if (chips.length) chips.push(Text({ ...tone(TRACK), children: [' │ '] }))
      if (row.kind === 'route') {
        chips.push(Text({ color: desktop ? STYLE.run.desk : STYLE.run.fill, children: [row.short + ' '] }))
        continue
      }
      chips.push(Text({ color: desktop ? st.desk : st.fill, children: [st.glyph + ' '] }))
      const chipText = { ...tone(row.state === 'needs_input' ? st.fill : row.limit ? TEXT : '#c9c7c1'), children: [row.short + ' '] }
hooks/register.js lines 1968–1968 · Band
  on('ui.render', { component: 'AbovePrompt' }, deckView)
Licence text (MIT)
MIT License

Copyright (c) 2026 nvr0x5

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

networkdrives Claudetool callsremembers

What its code shows

Read from the source at commit ceb3916ed754 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 readEvery module hooks/hooks.json names was read.hooks/register.js
ParsesEvery file parses as TypeScript or JavaScript.5 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo 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 openNetwork 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 drawsThe 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 lineWhether 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 WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks
NetworkWhether every fetch names its https host in the code.hooks/register.js:1042 fetch('https://api.open-meteo.com/v1/forecast?latitude='); hooks/register.js:1648 fetch('https://geocoding-api.open-meteo.com/v1/search?co)
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.starts no programs
Reads and sendsWhether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reaches the network, but reads no files, no environment variables and no transcript
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn 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 hooksHooks 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 shipsMCP 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, agentsWhat 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 MCPWhether 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 modelCompletions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.adds command deck
Events it hooksBy 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 (deck), prompt.submit, classic.Stop, classic.SubagentStop, tool.check, tool.call · shapes: turn.step · reads: classic.TaskCreated, classic.TaskCompleted · also: session.start, session.end, turn.start, ui.status (+5) · timers: clock.every, clock.after
Reads, by nameThe environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.reads no files, environment variables, settings or transcript
Writes, by nameThe 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 nvr0x5/claude-deck
/plugin install deck@deck
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (ceb3916ed754). 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/nvr0x5/claude-deck
git -C claude-deck checkout ceb3916ed754409690a165f39bcf2d85ea422b20
claude plugin validate claude-deck
claude --plugin-dir claude-deck

The 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 "nvr0x5-deck" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

Badge for your README

If this is your mod, paste this into your README. It links to this page.

README.md
[![ModsCode](https://modscode.com/badge/nvr0x5-deck.svg)](https://modscode.com/claude-mods/mods/nvr0x5-deck/)