modscode / Gallery / usage-dash
usage-dash
Quota, Claude sessions and background jobs pane
What it does
- Draws a pane
- Watches Bash calls
- Hooks classic.Elicitation, classic.ElicitationResult, classic.Notification, classic.PermissionDenied and 7 more
- Starts processes
Good points
- No network calls
- Written in TypeScript
- 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 usage-dash by aqua5230 (pane, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/aqua5230-usage-dash/
// 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: "‹t›" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const name = '…'
const label = '…'
const filled = '…'
const empty = '…'
const percent = '…'
const countdown = '…'
const age = '…'
const label2 = '…'
const filled2 = '…'
const empty2 = '…'
const percent2 = '…'
const countdown2 = '…'
const age2 = '…'
const label3 = '…'
const filled3 = '…'
const empty3 = '…'
const percent3 = '…'
const countdown3 = '…'
const age3 = '…'
const label4 = '…'
const filled4 = '…'
const empty4 = '…'
const percent4 = '…'
const countdown4 = '…'
const age4 = '…'
const label5 = '…'
const filled5 = '…'
const empty5 = '…'
const percent5 = '…'
const countdown5 = '…'
const age5 = '…'
const label6 = '…'
const filled6 = '…'
const empty6 = '…'
const percent6 = '…'
const countdown6 = '…'
const age6 = '…'
const label7 = '…'
const filled7 = '…'
const empty7 = '…'
const percent7 = '…'
const countdown7 = '…'
const age7 = '…'
const label8 = '…'
const filled8 = '…'
const empty8 = '…'
const percent8 = '…'
const countdown8 = '…'
const age8 = '…'
const label9 = '…'
const filled9 = '…'
const empty9 = '…'
const percent9 = '…'
const countdown9 = '…'
const age9 = '…'
const qe = '…'
const t = '…'
const text = '…'
const source = '…'
const contextPercent = '…'
const waitingText = '…'
const preview = '…'
const text2 = '…'
const waitingText2 = '…'
const text3 = '…'
const waitingText3 = '…'
const se = '…'
const prefix = '…'
const elapsed = '…'
const agent = '…'
const completedAgo = '…'
const agent2 = '…'
const completedAgo2 = '…'
const agent3 = '…'
const completedAgo3 = '…'
const type = '…'
const description = '…'
const type2 = '…'
const type3 = '…'
const jobs = '…'
const refreshedAgo = '…'
return (
<Box flexDirection="column">
<Box flexDirection="column">
<Box flexDirection="column" borderStyle="round" borderColor="cyan" paddingX={1}>
<Box flexDirection="column">
<Box flexDirection="column">
<Text>
<Text color="#d97757">
{`${name}`}
</Text>
<Text dimColor>
{label}
</Text>
<Text>
{filled}
</Text>
<Text dimColor>
{empty}
</Text>
{" "}
<Text>
{percent}
</Text>
<Text dimColor>
{countdown}
</Text>
<Text color="yellow">
{age}
</Text>
</Text>
<Text>
<Text color="#d97757">
{`${name}`}
</Text>
<Text dimColor>
{label2}
</Text>
<Text>
{filled2}
</Text>
<Text dimColor>
{empty2}
</Text>
{" "}
<Text>
{percent2}
</Text>
<Text dimColor>
{countdown2}
</Text>
<Text color="yellow">
{age2}
</Text>
</Text>
<Text>
<Text color="#d97757">
{`${name}`}
</Text>
<Text dimColor>
{label3}
</Text>
<Text>
{filled3}
</Text>
<Text dimColor>
{empty3}
</Text>
{" "}
<Text>
{percent3}
</Text>
<Text dimColor>
{countdown3}
</Text>
<Text color="yellow">
{age3}
</Text>
</Text>
</Box>
<Box flexDirection="column">
<Text>
<Text color="#d97757">
{`${name}`}
</Text>
<Text dimColor>
{label4}
</Text>
<Text>
{filled4}
</Text>
<Text dimColor>
{empty4}
</Text>
{" "}
<Text>
{percent4}
</Text>
<Text dimColor>
{countdown4}
</Text>
<Text color="yellow">
{age4}
</Text>
</Text>
<Text>
<Text color="#d97757">
{`${name}`}
</Text>
<Text dimColor>
{label5}
</Text>
<Text>
{filled5}
</Text>
<Text dimColor>
{empty5}
</Text>
{" "}
<Text>
{percent5}
</Text>
<Text dimColor>
{countdown5}
</Text>
<Text color="yellow">
{age5}
</Text>
</Text>
<Text>
<Text color="#d97757">
{`${name}`}
</Text>
<Text dimColor>
{label6}
</Text>
<Text>
{filled6}
</Text>
<Text dimColor>
{empty6}
</Text>
{" "}
<Text>
{percent6}
</Text>
<Text dimColor>
{countdown6}
</Text>
<Text color="yellow">
{age6}
</Text>
</Text>
</Box>
<Box flexDirection="column">
<Text>
<Text color="#d97757">
{`${name}`}
</Text>
<Text dimColor>
{label7}
</Text>
<Text>
{filled7}
</Text>
<Text dimColor>
{empty7}
</Text>
{" "}
<Text>
{percent7}
</Text>
<Text dimColor>
{countdown7}
</Text>
<Text color="yellow">
{age7}
</Text>
</Text>
<Text>
<Text color="#d97757">
{`${name}`}
</Text>
<Text dimColor>
{label8}
</Text>
<Text>
{filled8}
</Text>
<Text dimColor>
{empty8}
</Text>
{" "}
<Text>
{percent8}
</Text>
<Text dimColor>
{countdown8}
</Text>
<Text color="yellow">
{age8}
</Text>
</Text>
<Text>
<Text color="#d97757">
{`${name}`}
</Text>
<Text dimColor>
{label9}
</Text>
<Text>
{filled9}
</Text>
<Text dimColor>
{empty9}
</Text>
{" "}
<Text>
{percent9}
</Text>
<Text dimColor>
{countdown9}
</Text>
<Text color="yellow">
{age9}
</Text>
</Text>
</Box>
<Text dimColor>
none
</Text>
<Text color="red">
{qe}
</Text>
</Box>
</Box>
<Box position="absolute" top={0} left={2} right={2} justifyContent="space-between">
<Button plain label={`[ ▸ ${t} ]`} />
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="column" borderStyle="round" borderColor="blue" paddingX={1}>
<Box flexDirection="column">
<Box flexDirection="column">
<Box justifyContent="space-between">
<Box flexShrink={1}>
<Text wrap="truncate-end">
<Text>
{text}
</Text>
<Text dimColor>
{` ${source} `}
</Text>
<Text color="cyan">
here
</Text>
untitled
</Text>
</Box>
<Box flexShrink={0} marginLeft={1}>
<Text>
{`${contextPercent}%`}
</Text>
</Box>
</Box>
<Box justifyContent="space-between">
<Box flexShrink={1}>
<Text wrap="truncate-end">
{" "}
<Text color="yellow">
{waitingText}
</Text>
<Text dimColor>
{` · ${preview}`}
</Text>
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box justifyContent="space-between">
<Box flexShrink={1}>
<Text wrap="truncate-end">
<Text>
{text2}
</Text>
<Text dimColor>
{` ${source} `}
</Text>
<Text color="cyan">
here
</Text>
untitled
</Text>
</Box>
<Box flexShrink={0} marginLeft={1}>
<Text>
{`${contextPercent}%`}
</Text>
</Box>
</Box>
<Box justifyContent="space-between">
<Box flexShrink={1}>
<Text wrap="truncate-end">
{" "}
<Text color="yellow">
{waitingText2}
</Text>
<Text dimColor>
{` · ${preview}`}
</Text>
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box justifyContent="space-between">
<Box flexShrink={1}>
<Text wrap="truncate-end">
<Text>
{text3}
</Text>
<Text dimColor>
{` ${source} `}
</Text>
<Text color="cyan">
here
</Text>
untitled
</Text>
</Box>
<Box flexShrink={0} marginLeft={1}>
<Text>
{`${contextPercent}%`}
</Text>
</Box>
</Box>
<Box justifyContent="space-between">
<Box flexShrink={1}>
<Text wrap="truncate-end">
{" "}
<Text color="yellow">
{waitingText3}
</Text>
<Text dimColor>
{` · ${preview}`}
</Text>
</Text>
</Box>
</Box>
</Box>
<Text dimColor>
none
</Text>
<Button plain label={`[ − ${t} ]`} />
<Text color="red">
{se}
</Text>
</Box>
</Box>
<Box position="absolute" top={0} left={2} right={2} justifyContent="space-between">
<Button plain label={`[ ▸ ${t} ]`} />
<Text>
{" "}
<Text dimColor>
busy_count
</Text>
{" "}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="column" borderStyle="round" borderColor="yellow" paddingX={1}>
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text color="green">
{`${prefix}${elapsed}`}
</Text>
{" "}
<Text color="cyan">
{agent}
</Text>
{` ${label}`}
<Text dimColor>
{completedAgo}
</Text>
</Text>
<Text wrap="truncate-end">
<Text color="green">
{`${prefix}${elapsed}`}
</Text>
{" "}
<Text color="cyan">
{agent2}
</Text>
{` ${label}`}
<Text dimColor>
{completedAgo2}
</Text>
</Text>
<Text wrap="truncate-end">
<Text color="green">
{`${prefix}${elapsed}`}
</Text>
{" "}
<Text color="cyan">
{agent3}
</Text>
{` ${label}`}
<Text dimColor>
{completedAgo3}
</Text>
</Text>
<Text wrap="truncate-end">
<Text color="green">
waiting
</Text>
{" "}
<Text color="cyan">
{type}
</Text>
{` ${description}`}
</Text>
<Text wrap="truncate-end">
<Text color="green">
waiting
</Text>
{" "}
<Text color="cyan">
{type2}
</Text>
{` ${description}`}
</Text>
<Text wrap="truncate-end">
<Text color="green">
waiting
</Text>
{" "}
<Text color="cyan">
{type3}
</Text>
{` ${description}`}
</Text>
<Button plain label={`[ − ${t} ]`} />
<Text dimColor>
none
</Text>
</Box>
</Box>
<Box position="absolute" top={0} left={2} right={2} justifyContent="space-between">
<Button plain label={`[ ▸ ${t} ]`} />
<Text>
{" "}
<Text color="yellow">
{jobs}
</Text>
{" "}
</Text>
</Box>
</Box>
<Box justifyContent="flex-end">
<Text dimColor>
{refreshedAgo}
</Text>
</Box>
</Box>
)
})
}
The mod's own code
Its licence text was not found at the commit read, so only the places in the source are linked.
What its code calls
runs programswrites filesenv varsdrives Claudetool calls
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 5e3d0d874899 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.claude_pane/usage-dash/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.7 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).claude_pane/usage-dash/hooks/register.tsx:103 rm (not on Windows); claude_pane/usage-dash/hooks/register.tsx:130 ps (not on Windows); claude_pane/usage-dash/hooks/register.tsx:154 /bin/sh (not on Windows); claude_pane/usage-dash/hooks/register.tsx:157 tail (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.claude_pane/usage-dash/hooks/register.tsx:52 a program named at run time; claude_pane/usage-dash/hooks/register.tsx:102 cmd (a shell or interpreter); claude_pane/usage-dash/hooks/register.tsx:154 /bin/sh (a shell or interpreter) |
| 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.AGPL-3.0 (not an open licence) |
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 "aqua5230-usage-dash" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…Fix login▸★ build ok▸★ build ok▸★ build ok+3 moretasks 3 pending · Glob claimed · 3 doneConsensus42%
-
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
-
Ask Claude…moai-boardmoai-boardPickedx closebuild 1build 2build 3r refreshQueue not read yetokPick
-
Open a file first: /crit-tui file <path>Reopen this one in the crit browser view.Ask Claude…
-
Ask Claude…./rows.tsx●●●●●×./rows.tsxnothing loaded yet● Fix login● Fix login● Fix login● Fix login● Fix login● Fix login● Fix login● Fix login● Fix login./rows.tsxWorkspaceWorkspaceWorkspaceselected: build● open in Databricks
-
Ask Claude…build 3 app●●●◉●●okno Library app here yet; Library adds one●./rows.tsx./rows.tsxselected: Nerd