ModsCode / Claude Code Mods / Ranking / 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
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 usage-dash by aqua5230 (pane, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/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.
How to build this: Pane (panel), Deny a tool call
What its code calls
runs programswrites filesenv varsdrives Claudetool calls
What its code shows
Read from the source at commit e8340adf6dd4 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.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 marketplace line to give; the page shows how to try the commit read |
| 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:108 rm (not on Windows); claude_pane/usage-dash/hooks/register.tsx:135 ps (not on Windows); claude_pane/usage-dash/hooks/register.tsx:159 /bin/sh (not on Windows); claude_pane/usage-dash/hooks/register.tsx:162 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:107 cmd (a shell or interpreter); claude_pane/usage-dash/hooks/register.tsx:159 /bin/sh (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, but reaches nothing outside |
| 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) |
| 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.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: classic.Stop, classic.PermissionRequest, command.run, tool.call (Bash), prompt.submit · reads: classic.Notification, classic.Elicitation, classic.PostToolUse, classic.PermissionDenied, classic.ElicitationResult, session.receive · also: session.start, turn.complete, ui.render (Pane) · 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: HOME, USERPROFILE, OS; files: …/.claude/usage-preferences.json, a path computed at run time, …/…, …/.claude/projects, …/.claude/projects/…/….jsonl |
| 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 |
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.
Its repository's .claude-plugin/marketplace.json does not list it, so there is no marketplace line to give.
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/aqua5230/usagegit -C usage checkout e8340adf6dd4b1dde8234c994e1163e721309a42claude plugin validate usage/claude_pane/usage-dashclaude --plugin-dir usage/claude_pane/usage-dashThe 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 "aqua5230-usage-dash" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- ruflo-swarmruvnet★ 74,323
- code-modernizationAnthropic★ 37,653
- moai-boardMoAI-ADK★ 1,230
- crit-tuiTomasz Tomczyk★ 1,196
- lcu-approveLCU★ 894
- ai-maestro-secrets23blocks-OS★ 817
More from this repository
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/aqua5230-usage-dash/)