ModsCode / Claude Code Mods / Ranking / dev-band
dev-band
tmux-style band above the prompt: git, context, 5h/7d limits, cache warmth; unfolds a sitrep after 30 idle minutes
What it does
- Draws a band above the prompt, toasts
- Adds /sitrep-card
- Hooks prompt.submit, session.measure, session.start, turn.complete and 2 more
- Keeps its own state between turns
- Starts processes
Good points
- No network calls
- Written in TypeScript
- Has a desktop-specific branch
- 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 dev-band by Bilal (band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/bilal-psd-dev-band/
// 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 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 map = '…'
const map2 = '…'
const map3 = '…'
const k = '…'
const hhmm = '…'
const now = '…'
const t = '…'
const t2 = '…'
const t3 = '…'
const needsYou = '…'
const t4 = '…'
const t5 = '…'
const t6 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between" columnGap={3} paddingX={1}>
<Text wrap="truncate-end">
{map}
</Text>
<Text wrap="truncate-end">
{map2}
</Text>
<Text wrap="truncate-end">
{map3}
</Text>
</Box>
<Box flexDirection="row" alignItems="center" gap={1} paddingX={1}>
<Text color="#58a6ff">
!
</Text>
<Text dimColor wrap="truncate-end">
{`cache cold: next message re-reads ${k}; clear is free`}
</Text>
<Button label="compact" hotkey="c" variant="secondary" />
<Button label="clear" hotkey="x" variant="primary" />
<Button label="later" hotkey="l" />
</Box>
<Box flexDirection="column" paddingX={1} marginTop={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text dimColor>
{`── sitrep @ ${hhmm} · pinned ──`}
</Text>
<Box flexDirection="row" gap={1}>
<Button label="unpin" hotkey="p" />
<Button label="close" hotkey="d" role="dismiss" />
</Box>
</Box>
<Text wrap="wrap">
<Text color="#58a6ff" bold>
{" now "}
</Text>
{now}
</Text>
<Text color="#58a6ff" bold>
{" last"}
</Text>
<Text wrap="wrap">
<Text dimColor>
{" · "}
</Text>
{t}
</Text>
<Text wrap="wrap">
<Text dimColor>
{" · "}
</Text>
{t2}
</Text>
<Text wrap="wrap">
<Text dimColor>
{" · "}
</Text>
{t3}
</Text>
<Text wrap="wrap">
<Text color="#d29922" bold>
{" you "}
</Text>
<Text color="#d29922">
{needsYou}
</Text>
</Text>
<Text color="#58a6ff" bold>
{" next"}
</Text>
<Text wrap="wrap">
<Text dimColor>
{" · "}
</Text>
{t4}
</Text>
<Text wrap="wrap">
<Text dimColor>
{" · "}
</Text>
{t5}
</Text>
<Text wrap="wrap">
<Text dimColor>
{" · "}
</Text>
{t6}
</Text>
</Box>
{await next(e)}
</Box>
)
})
on('session.start', async ($, e, next) => {
const needsYou = '…'
const k = '…'
await $.ui.toast(`Needs you: ${needsYou}`)
await $.ui.toast(`Context is at ${k} tokens: every turn re-sends all of it. Consider compacting or clearing.`)
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.
mods/dev-band/hooks/register.tsx lines 394–553 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (e.props.hasSurvey) return next(e)
const [s, g, rep, busy, pinned] = await Promise.all([
read($, snap), read($, git), read($, sitrep), read($, isBusy), read($, isPinned),
])
const { Box, Button, Text } = $.ui.resolve(e)
const now = Math.max(s.now, s.lastAt)
const cols = e.props.bodyColumns || 120
// One model for both surfaces. Lower prio drops first when the line won't fit.
type Spec = { key: string; prio: number; alt: string; runs: Run[] }
const specs: Spec[] = []
const tok = s.ctxTok ?? 0
const cp = s.ctxPct ?? 0
if (g && !g.isRepo) {
specs.push({ key: 'git', prio: 3, alt: `${g.dir}, not a git repo`, runs: [{ text: shortDir(g.dir, MAX_DIR), color: ACCENT }] })
} else if (g) {
const r: Run[] = [{ text: `⎇ ${mid(g.branch, MAX_BRANCH)}`, color: ACCENT }]
if (g.dirty) r.push({ text: ` ±${g.dirty}`, color: WARN })
if (g.ahead) r.push({ text: ` ↑${g.ahead}`, dim: true })
if (g.behind) r.push({ text: ` ↓${g.behind}`, dim: true })
specs.push({ key: 'git', prio: 3, alt: `branch ${g.branch}, ${g.dirty} changed`, runs: r })
}
// Bars start at their minimum; whatever room is left after the text is theirs.
const BW = 24
const limit = (key: string, label: string, prio: number, pct?: number, reset?: string) => {
if (pct === undefined) return
const isReset = !!reset && Date.parse(reset) <= now
const p = isReset ? 0 : pct
const color = tone(p)
const tail = reset && !isReset ? ` ${left(Date.parse(reset) - now)}` : ''
specs.push({
key, prio, alt: `${label} limit ${Math.round(p)}%${tail}`,
runs: [{ text: `${label} `, dim: true }, { bar: p / 100, color, width: BW }, { text: `${Math.round(p)}%`, color, bold: true }, ...(tail ? [{ text: tail, dim: true }] : [])],
})
}
limit('h5', '5h', 5, s.h5, s.h5Reset)
limit('wk', '7d', 2, s.wk, s.wkReset)
const ttl = (s.ttl ?? (s.sub ? '1h' : '5m')) === '1h' ? TTL_SUB : TTL_API
const rem = s.lastAt ? s.lastAt + ttl - now : 0
// Only a miss is worth the space; a hit is the normal case.
const miss = s.missTok ? ` ✗${k(s.missTok)}` : ''
const cache: Run[] = e.props.isWorking
? [{ text: 'cache ', dim: true }, { dot: WARM }, { text: 'hot', color: WARM }]
: rem > 0
? [{ text: 'cache ', dim: true }, { dot: WARM }, { text: 'warm', color: WARM }, { text: ` ${Math.max(0, Math.ceil(rem / 60_000))}m`, dim: true }, ...(miss ? [{ text: miss, color: BAD }] : [])]
: [{ text: 'cache ', dim: true }, { dot: COOL }, { text: s.lastAt ? 'cold' : '—', color: COOL }]
specs.push({ key: 'cache', prio: 4, alt: 'prompt cache', runs: cache })
// Width of a spec in cells (terminal) or px (desktop).
const isTerm = e.surface === 'terminal'
let TW = 3
const cells = (r: Run[]) => r.reduce((n, x) => n + ('bar' in x ? (TW ? TW + 3 : 0) : 'dot' in x ? 2 : [...x.text].length), 0)
const GAP_T = 3
const GAP_PX = 24
const avail = isTerm ? cols - 2 : cols * 8 - 24
const width = (list: Spec[]) =>
list.reduce((n, x) => n + (isTerm ? cells(x.runs) : seg(x.runs).w), 0) + Math.max(0, list.length - 1) * (isTerm ? GAP_T : GAP_PX)
let shown = [...specs]
// First shorten the cache to its state, then drop whole segments by priority.
if (width(shown) > avail) {
shown = shown.map(x => (x.key === 'cache' ? { ...x, runs: x.runs.filter(r => !('text' in r) || !r.dim || r.text === 'cache ') } : x))
}
while (width(shown) > avail && shown.length > 1) {
const lowest = shown.reduce((m, x) => (x.prio < m.prio ? x : m))
shown = shown.filter(x => x !== lowest)
}
// Spare room goes to the bars, up to a cap, leaving a little air.
const nBars = shown.reduce((n, x) => n + x.runs.filter(r => 'bar' in r).length, 0)
if (nBars) {
const spare = avail - width(shown) - (isTerm ? 4 : 48)
if (isTerm && TW) TW = Math.min(24, TW + Math.max(0, Math.floor(spare / nBars)))
if (!isTerm) {
const grow = Math.max(0, Math.floor(spare / nBars))
shown = shown.map(x => ({ ...x, runs: x.runs.map(r => ('bar' in r ? { ...r, width: Math.min(220, r.width + grow) } : r)) }))
}
}
// Big-context row: the cheapest move given the cache.
const isCold = s.lastAt > 0 && rem <= 0
const isExpiring = !isCold && rem > 0 && rem <= 10 * 60_000
const nag = !e.props.isWorking && tok >= Math.max(NAG, s.snooze ?? 0)
const nagRow = nag ? (
<Box key="nag" flexDirection="row" alignItems="center" gap={1} paddingX={1}>
<Text color={isCold ? COOL : tok >= NAG_HARD ? BAD : WARN}>!</Text>
<Text dimColor wrap="truncate-end">
{isCold
? `cache cold: next message re-reads ${k(tok)}; clear is free`
: isExpiring
? `cache expires in ${left(rem)}: compact while it's cheap`
: `${k(tok)} in context: every turn re-sends it`}
</Text>
<Button key="compact" label="compact" hotkey="c" variant={isCold ? 'secondary' : 'primary'} onPress={() => compactNow($)} />
<Button key="clear" label="clear" hotkey="x" variant={isCold ? 'primary' : 'secondary'} onPress={() => void $.prompt.fill({ text: '/clear' })} />
<Button key="later" label="later" hotkey="l" onPress={() => update($, snap, x => ({ ...x, snooze: tok + 100_000 }))} />
</Box>
) : null
// The sitrep unfolds under the metrics.
const showRep = rep && (!e.props.isWorking || pinned)
const bullets = (items: string[], p: string) =>
items.map((t, i) => (
<Text key={`${p}${i}`} wrap="wrap">
<Text dimColor>{' · '}</Text>
{t}
</Text>
))
const repView = showRep && rep ? (
<Box key="rep" flexDirection="column" paddingX={1} marginTop={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text dimColor>
{`── sitrep @ ${hhmm(rep.at)}${pinned ? ' · pinned' : ''} ──`}
</Text>
<Box flexDirection="row" gap={1}>
<Button key="pin" label={pinned ? 'unpin' : 'pin'} hotkey="p" onPress={() => update($, isPinned, v => !v)} />
<Button key="close" label="close" hotkey="d" role="dismiss" onPress={() => closeSitrep($)} />
</Box>
</Box>
<Text wrap="wrap">
<Text color={COOL} bold>{' now '}</Text>
{rep.now}
</Text>
{rep.last.length > 0 && <Text color={COOL} bold>{' last'}</Text>}
{bullets(rep.last, 'l')}
{rep.needsYou && (
<Text wrap="wrap">
<Text color={WARN} bold>{' you '}</Text>
<Text color={WARN}>{rep.needsYou}</Text>
</Text>
)}
{rep.next.length > 0 && <Text color={COOL} bold>{' next'}</Text>}
{bullets(rep.next, 'n')}
</Box>
) : busy ? (
<Box key="rep" paddingX={1}>
<Text dimColor>── sitrep: writing…</Text>
</Box>
) : sitrepError ? (
<Box key="rep" paddingX={1}>
<Text color={BAD}>{`── ${sitrepError}`}</Text>
</Box>
) : null
if (!isTerm) {
const { Svg } = $.ui.resolve(e) as unknown as { Svg: (p: { source: string; alt: string; width?: number; height?: number }) => unknown }
const svgRow = (key: string, runs: Run[], alt: string) => {
const d = seg(runs)
return <Svg key={key} source={d.svg} alt={alt || ' '} width={d.w} height={H} />
}
// A label column, then text wrapped to the band's width:
// now one sentence
// last · bullet
const LABEL = 6
// bodyColumns is in the app's own monospace cells, which are at least as wide as ours.
const textCells = Math.max(20, cols - LABEL - 6)
const block = (key: string, label: string, color: string, items: string[], bullet: boolean, textColor?: string) => {
const rows: unknown[] = []Licence text (MIT)
MIT License Copyright (c) 2026 Bilal 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: Band above the prompt, Rewrite the prompt
What its code calls
runs programsreads filesenv varsdrives Clauderememberscalls tools
What its code shows
Read from the source at commit dda29c040d98 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.mods/dev-band/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.1 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.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, files 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).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).command.run: /compact |
| 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.model.fork (sends its own transcript), adds command sitrep-card |
| 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 (sitrep-card), prompt.submit · shapes: turn.step · also: session.start, session.measure, turn.start, turn.complete (+1) · timers: 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: CLAUDE_CONFIG_DIR, HOME; files: …/projects/…/….jsonl, a path computed at run time |
| 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.the prompt box |
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 bilal-psd/skills/plugin install dev-band@bilal-skills/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (dda29c040d98). 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/bilal-psd/skillsgit -C skills checkout dda29c040d981669fe554fa59e1a4d30b1ab75acclaude plugin validate skills/mods/dev-bandclaude --plugin-dir skills/mods/dev-bandThe 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 "bilal-psd-dev-band" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- token-optimizerAlex Greenshpun★ 2,534
- explain-asSumit Paul★ 20
- uploadsBuild Internet★ 18
- usage-quotaAnant Raghunath★ 18
- ccprogressamigoer★ 14
- flow-scenesRob Macrae★ 11
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/bilal-psd-dev-band/)