ModsCode / Claude Code Mods / Ranking / savvy-progress
savvy-progress
Progress bar above the prompt and an agents panel (/agents-info): running, finished and planned subagents with model, progress, context, cost and time. Crabs for the claude-config scout, builder and reviewer. Copy of johnnyvizz/claude-kit …
What it does
- Draws a pane, a band above the prompt
- Adds /agents-info
- Watches Agent calls
- Hooks agent.spawn, session.start, turn.complete, turn.step and 1 more
- 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 savvy-progress by johnnyvizz (pane, band), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/berkay2002-savvy-progress/
// 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: "Agents" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const title = '…'
const fmtCost = '…'
const fmtTokens = '…'
const fmtTime = '…'
const length = '…'
const length2 = '…'
const length3 = '…'
const n = '…'
const title2 = '…'
const tier = '…'
const after = '…'
const n2 = '…'
const title3 = '…'
const tier2 = '…'
const n3 = '…'
const title4 = '…'
const tier3 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text bold wrap="truncate-end">
{title}
</Text>
<Button label="Expand" plain />
</Box>
<Text dimColor>
≈
{fmtCost}
{" · "}
{fmtTokens}
{" "}
tokens
{" · "}
{fmtTime}
</Text>
<Box flexDirection="column" marginTop={1}>
<Text dimColor>
No subagents yet.
</Text>
<Text dimColor>
Running
{" · "}
{length}
</Text>
<Button label={`▸ Finished · ${length}`} plain />
<Text dimColor>
Background
{" · "}
{length2}
</Text>
<Text dimColor>
Planned
{" · "}
{length3}
</Text>
<Box flexDirection="column" marginBottom={1}>
<Text dimColor wrap="truncate-end">
<Text>
▢
</Text>
{" "}
{n}
{". "}
{title2}
{" ◷"}
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{tier}
{" · "}
{` · after ${after}`}
</Text>
</Box>
<Box flexDirection="column" marginBottom={1}>
<Text dimColor wrap="truncate-end">
<Text>
▢
</Text>
{" "}
{n2}
{". "}
{title3}
{" ◷"}
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{tier2}
{" · "}
{` · after ${after}`}
</Text>
</Box>
<Box flexDirection="column" marginBottom={1}>
<Text dimColor wrap="truncate-end">
<Text>
▢
</Text>
{" "}
{n3}
{". "}
{title4}
{" ◷"}
</Text>
<Text dimColor wrap="truncate-end">
{" "}
{tier3}
{" · "}
{` · after ${after}`}
</Text>
</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, Text, Button } = $.ui.resolve(e)
const title = '…'
const label = '…'
const percent = '…'
const text = '…'
const text2 = '…'
const text3 = '…'
const text4 = '…'
const text5 = '…'
const text6 = '…'
const text7 = '…'
const text8 = '…'
const text9 = '…'
const crew = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" gap={2} alignItems="center">
<Box flexShrink={0}>
<Text color="#5fbf8f">
{"● "}
</Text>
<Text wrap="truncate-end">
{title}
</Text>
</Box>
<Text color="#5fbf8f">
████████░░░░░░░░
</Text>
<Text bold>
{label}
</Text>
<Text dimColor>
{percent}
</Text>
<Box flexDirection="column" flexShrink={0}>
<Text>
<Text>
{text}
</Text>
<Text>
{text2}
</Text>
<Text>
{text3}
</Text>
</Text>
<Text>
<Text>
{text4}
</Text>
<Text>
{text5}
</Text>
<Text>
{text6}
</Text>
</Text>
<Text>
<Text>
{text7}
</Text>
<Text>
{text8}
</Text>
<Text>
{text9}
</Text>
</Text>
</Box>
<Button label={`×${crew}`} plain />
<Button label="✕" plain role="dismiss" />
</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.
plugins/savvy-progress/hooks/register.tsx lines 1174–1333 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const s = tr()
const ui = $.ui.resolve(e)
const { Box, Text, Button } = ui
const list = await read($, agents)
const sessions = await read($, bg)
const f = await read($, flow)
const p: Panel = await read($, panel)
const at = Math.max(await read($, now), ...list.map(a => a.startedAt), 0)
const running = list.filter(a => a.status === 'running').reverse()
const finished = list.filter(a => a.status !== 'running').reverse()
const planned = plannedOf(f, list)
const t = totals(list, at)
// The pane's title says "Agents"; inside, only the flow's own name.
const title = f && !f.isFinished ? f.title : ''
const toggleCompact = (
<Button
key="compact"
label={p.isCompact ? s.expand : s.collapse}
plain
onPress={() => update($, panel, prev => ({ ...prev, isCompact: !prev.isCompact }))}
/>
)
const toggleDone = (
<Button
key="done"
label={`${p.isDoneCollapsed ? '▸' : '▾'} ${s.finished} · ${finished.length}`}
plain
onPress={() => update($, panel, prev => ({ ...prev, isDoneCollapsed: !prev.isDoneCollapsed }))}
/>
)
const isEmpty = list.length === 0 && planned.length === 0 && sessions.length === 0
// A row's name opens the view pane; the first nine also by digit while the pane holds the keys.
let hot = 0
const agentTarget = (a: AgentRun): ViewTarget | null =>
a.agentId ? { kind: 'agent', id: a.agentId, name: a.description || a.type } : null
const bgTarget = (b: BgSession): ViewTarget => ({ kind: 'bg', id: b.id, name: b.name, cwd: b.cwd })
const viewButton = (target: ViewTarget | null, text: string) => {
if (!target) return <Text bold wrap="truncate-end">{text}</Text>
const n = ++hot
return (
<Button key={`view-${target.id}`} plain {...(n <= 9 ? { hotkey: String(n) } : {})} onPress={() => void openView($, target)}>
<Text bold>{text}</Text>
</Button>
)
}
const desktopView = (target: ViewTarget | null) =>
target && (
<Button key={`view-${target.id}`} plain dimColor label={`${s.view} ${target.name} ›`} onPress={() => void openView($, target)} />
)
const summary = `≈${fmtCost(t.cost)}, ${fmtTokens(t.tokens)} ${s.tokensWord}, ${fmtTime(t.time)}`
if (e.surface === 'desktop' && 'Svg' in ui) {
const { Svg } = ui
const W = Math.max(240, Math.min(900, (e.props.bodyColumns || 40) * 8 - 8))
const section = (key: string, text: string) => (
<Text key={key} dimColor>
{text}
</Text>
)
if (p.isCompact) {
return (
<Box flexDirection="column" gap={1}>
<Svg source={compactSvg(W, list, planned, sessions, t)} alt={`${list.length + sessions.length} ${s.agentsCount}, ${summary}`} width={W} height={32} />
{toggleCompact}
</Box>
)
}
return (
<Box flexDirection="column">
<Svg source={headerSvg(W, title, t)} alt={title ? `${title}: ${summary}` : summary} width={W} height={headerHeight(title)} />
{toggleCompact}
{isEmpty && <Text dimColor>{s.empty}</Text>}
{running.length > 0 && section('h-run', `${s.running} · ${running.length}`)}
{running.map(a => [
<Svg key={a.id} source={agentSvg(W, a, at)} alt={`${a.description}: ${modelName(a.model)}, ${s.isRunning}`} width={W} height={66} />,
desktopView(agentTarget(a)),
])}
{finished.length > 0 && toggleDone}
{!p.isDoneCollapsed &&
finished.map(a => [
<Svg key={a.id} source={agentSvg(W, a, at)} alt={`${a.description}: ${modelName(a.model)}, ${s.isFinished}`} width={W} height={66} />,
desktopView(agentTarget(a)),
])}
{sessions.length > 0 && section('h-bg', `${s.background} · ${sessions.length}`)}
{sessions.map(b => [
<Svg key={`bg-${b.id}`} source={bgSvg(W, b)} alt={`${b.name}: ${bgStateText(b)}`} width={W} height={46} />,
desktopView(bgTarget(b)),
])}
{planned.length > 0 && section('h-plan', `${s.planned} · ${planned.length}`)}
{planned.map(pl => (
<Svg key={`plan-${pl.n}`} source={plannedSvg(W, pl)} alt={`${pl.n}. ${pl.title}: ${s.isPlanned}`} width={W} height={46} />
))}
</Box>
)
}
// Terminal: the same content in text rows. Read here, not above, so only this surface redraws on a frame tick.
const tick = await read($, frame)
const cols = Math.max(24, e.props.bodyColumns || 40)
// The crab takes SPRITE_W columns and a gap; on a narrow pane the old glyph stays.
const hasCrab = cols >= 40
const room = cols - (hasCrab ? SPRITE_W + 1 : 0)
const barW = Math.max(6, Math.min(20, room - 34))
const indent = hasCrab ? '' : ' '
const withCrab = (key: string, costume: string, body: JSX.Element, isAnimated: boolean) =>
hasCrab ? (
<Box key={key} flexDirection="row" gap={1} marginBottom={1}>
<Box flexDirection="column" flexShrink={0} width={SPRITE_W}>
{crabLines(Text, spriteOf(costume, isAnimated ? tick : 0), key)}
</Box>
<Box flexDirection="column" justifyContent="center" width={room}>
{body}
</Box>
</Box>
) : (
<Box key={key} flexDirection="column" marginBottom={1}>
{body}
</Box>
)
const bgRow = (b: BgSession) => {
const color = colorOf(b.tier)
return withCrab(
`bg-${b.id}`,
b.tier,
<>
<Box flexDirection="row" gap={1}>
{!hasCrab && <Text color={color}>▣</Text>}
{viewButton(bgTarget(b), b.name)}
<Text color={b.state === 'waiting' ? 'warning' : b.state === 'busy' ? color : undefined} dimColor={b.state === 'idle'}>
{BG_GLYPH[b.state]}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{indent}
{b.tier === 'other' ? s.session : b.tier} · {bgModel(b)}
</Text>
<Text dimColor wrap="truncate-end">
{indent}
{bgStateText(b)}
{b.branch ? ` · ${b.branch}` : ''}
</Text>
</>,
b.state === 'busy',
)
}
const row = (a: AgentRun) => {
const tier = tierOf(a.type)
const color = colorOf(tier)
const ctx = ctxOf(a)
const progress = progressOf(a)
const model = a.effort ? `${modelName(a.model)} · ${a.effort}` : modelName(a.model)
const steps = a.stepTotal ? `${a.stepDone ?? 0}/${a.stepTotal}${a.stepNote ? ' ' + a.stepNote : ''} · ` : ''
return withCrab(
a.id,
costumeOf(a.type),
<>plugins/savvy-progress/hooks/register.tsx lines 1532–1588 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const f = await read($, flow)
if (f === null || e.props.hasSurvey) return next(e)
const ui = $.ui.resolve(e)
const { Box, Text, Button } = ui
const list = await read($, agents)
const crew = list.length + plannedOf(f, list).length + (await read($, bg)).length
const isWorking = list.some(a => a.status === 'running')
const crewButton = (
<Button key="savvy-agents" label={`×${crew}`} plain onPress={() => void togglePane($)} />
)
const percent = `${Math.round(ratio(f) * 100)}%`
const dismiss = (
<Button
key="savvy-dismiss"
label="✕"
plain
role="dismiss"
onPress={() => update($, flow, () => null)}
/>
)
if (e.surface === 'desktop' && 'Svg' in ui) {
const { Svg } = ui
// About 8 CSS px per reported column; the rest is the count, the dismiss
// and their gaps. No floor above the slot: a row wider than it would wrap.
const width = Math.max(180, Math.min(1600, (e.props.bodyColumns || 100) * 8 - 96))
return (
<Box flexDirection="row" alignItems="center" gap={1}>
<Svg source={rowSvg(f, width, isWorking)} alt={`${f.title}: ${label(f)}, ${percent}`} width={width} height={H} />
{crewButton}
{dismiss}
</Box>
)
}
const cols = e.props.bodyColumns
const titleW = Math.max(8, Math.min(30, f.title.length + 2, Math.floor(cols / 3)))
const width = Math.max(6, Math.min(40, cols - titleW - 32))
return (
<Box flexDirection="row" gap={2} alignItems="center">
<Box width={titleW} flexShrink={0}>
<Text color={f.isFinished ? DONE : ACCENT}>● </Text>
<Text wrap="truncate-end">{f.title}</Text>
</Box>
<Text color={f.isFinished ? DONE : ACCENT}>{barText(f, width)}</Text>
<Text bold>{label(f)}</Text>
<Text dimColor>{percent}</Text>
<Box flexDirection="column" flexShrink={0}>
{crabLines(Text, spriteOf('orchestrator'), 'band')}
</Box>
{crewButton}
{dismiss}
</Box>
)
})plugins/savvy-progress/hooks/register.tsx lines 747–756 · Band
const crabLines = (Text: TextTag, lines: Run[][], key: string) =>
lines.map((line, y) => (
<Text key={`${key}-${y}`}>
{line.map((r, x) => (
<Text key={`${x}`} color={r.fg}>
{r.text}
</Text>
))}
</Text>
))Licence text (MIT)
MIT License Copyright (c) 2026 Berkay Orhan 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
runs programsreads filesenv varstool calls
What its code shows
Read from the source at commit cf43481ef134 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.plugins/savvy-progress/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, with its own branch for the desktop |
| 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.plugins/savvy-progress/hooks/register.tsx:864 a program named at run time |
| 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, settings.json, the transcript 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).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 tool progress, adds tool step, adds command agents-info |
| 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 (agents-info), tool.call (Agent) · shapes: turn.step · also: session.start, agent.spawn, turn.complete, ui.render (Pane, AbovePrompt) (+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: LC_ALL, LC_MESSAGES, LANG, CLAUDE_CONFIG_DIR, USERPROFILE (+1); files: …/.claude`}/projects, a path computed at run time; settings.json; the transcript |
| 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.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 Berkay2002/berkays-mods/plugin install savvy-progress@berkays-mods/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (cf43481ef134). 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/Berkay2002/berkays-modsgit -C berkays-mods checkout cf43481ef1340e9afdb56eaf5c8310c47b4f5247claude plugin validate berkays-mods/plugins/savvy-progressclaude --plugin-dir berkays-mods/plugins/savvy-progressThe 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 "berkay2002-savvy-progress" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- savvy-progressjohnnyvizz★ 53
- explain-asSumit Paul★ 20
- uploadsBuild Internet★ 18
- ccprogressamigoer★ 14
- decknvr0x5★ 11
- flow-scenesRob Macrae★ 11
More from this repository
- config-syncBerkay Orhan★ 0
- effort-gateBerkay Orhan★ 0
- identity-keeperBerkay Orhan★ 0
- limit-resumeBerkay Orhan★ 0
- proof-gateBerkay Orhan★ 0
- route-ledgerBerkay Orhan★ 0
See all 8 mods in this repository
More by johnnyvizz
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/berkay2002-savvy-progress/)