modscode / Gallery / ccprogress
ccprogress
A progress bar of the current task above the spinner, in the terminal and the Desktop app
What it does
- Draws a band above the prompt, a pane
- Adds /progress
- Watches tool calls and can refuse them
- Hooks classic.SessionStart, prompt.compose, prompt.submit, session.start and 2 more
- Keeps its own state between turns
Good points
- No network calls
- Written in TypeScript
- Has a desktop-specific branch
- 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 ccprogress by amigoer (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/amigoer-ccprogress/
// 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, Svg, Text, Button } = $.ui.resolve(e)
const phaseIconSvg = '…'
const PHASE_ALT = '…'
const allDone = '…'
const text = '…'
const goal = '…'
const text2 = '…'
const text3 = '…'
const text4 = '…'
const position = '…'
const total = '…'
const hideSteps = '…'
const dismiss = '…'
const GLYPHS = '…'
const title = '…'
const GLYPHS2 = '…'
const title2 = '…'
const GLYPHS3 = '…'
const title3 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" alignItems="center" columnGap={2}>
<Box flexDirection="row" alignItems="center" columnGap={2} flexGrow={1} flexShrink={1} minWidth={0} overflow="hidden">
<Box flexDirection="row" alignItems="center" columnGap={1} flexGrow={1} flexShrink={1} minWidth={0}>
<Svg source={`${phaseIconSvg}`} alt={`${PHASE_ALT}`} width={16} height={16} />
<Box flexShrink={0}>
<Text>
{allDone}
</Text>
</Box>
<Box flexShrink={0}>
<Text>
{"· "}
{text}
</Text>
</Box>
<Box flexShrink={100} minWidth={0}>
<Text dimColor wrap="truncate-end">
{goal}
</Text>
</Box>
</Box>
<Box flexDirection="row" alignItems="center" columnGap={1} flexShrink={1} minWidth={0}>
<Box flexShrink={1} minWidth={0}>
<Text>
<Text>
{text2}
</Text>
<Text>
{text3}
</Text>
<Text>
{text4}
</Text>
</Text>
</Box>
<Box flexShrink={0}>
<Text dimColor>
{position}
/
{total}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="row" alignItems="center" columnGap={1} flexShrink={0}>
<Button label={`${hideSteps} ▴`} />
<Button role="dismiss" label={`${dismiss}`} />
</Box>
</Box>
<Box marginTop={1} flexDirection="column">
<Box flexDirection="column" paddingLeft={2}>
<Box flexDirection="row" alignItems="center" columnGap={1}>
<Text>
{GLYPHS}
</Text>
<Text wrap="truncate-end">
{title}
</Text>
</Box>
<Box flexDirection="row" alignItems="center" columnGap={1}>
<Text>
{GLYPHS2}
</Text>
<Text wrap="truncate-end">
{title2}
</Text>
</Box>
<Box flexDirection="row" alignItems="center" columnGap={1}>
<Text>
{GLYPHS3}
</Text>
<Text wrap="truncate-end">
{title3}
</Text>
</Box>
</Box>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Progress" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Svg, Button } = $.ui.resolve(e)
const goal = '…'
const phaseIconSvg = '…'
const PHASE_ALT = '…'
const allDone = '…'
const text = '…'
const goal2 = '…'
const text2 = '…'
const text3 = '…'
const text4 = '…'
const position = '…'
const total = '…'
const GLYPHS = '…'
const title = '…'
const GLYPHS2 = '…'
const title2 = '…'
const GLYPHS3 = '…'
const title3 = '…'
const clear = '…'
return (
<Box flexDirection="column" rowGap={1}>
<Text bold>
{goal}
</Text>
<Box flexDirection="row" alignItems="center" columnGap={2} flexGrow={1} flexShrink={1} minWidth={0} overflow="hidden">
<Box flexDirection="row" alignItems="center" columnGap={1} flexGrow={1} flexShrink={1} minWidth={0}>
<Svg source={`${phaseIconSvg}`} alt={`${PHASE_ALT}`} width={16} height={16} />
<Box flexShrink={0}>
<Text>
{allDone}
</Text>
</Box>
<Box flexShrink={0}>
<Text>
{"· "}
{text}
</Text>
</Box>
<Box flexShrink={100} minWidth={0}>
<Text dimColor wrap="truncate-end">
{goal2}
</Text>
</Box>
</Box>
<Box flexDirection="row" alignItems="center" columnGap={1} flexShrink={1} minWidth={0}>
<Box flexShrink={1} minWidth={0}>
<Text>
<Text>
{text2}
</Text>
<Text>
{text3}
</Text>
<Text>
{text4}
</Text>
</Text>
</Box>
<Box flexShrink={0}>
<Text dimColor>
{position}
/
{total}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" paddingLeft={2}>
<Box flexDirection="row" alignItems="center" columnGap={1}>
<Text>
{GLYPHS}
</Text>
<Text wrap="truncate-end">
{title}
</Text>
</Box>
<Box flexDirection="row" alignItems="center" columnGap={1}>
<Text>
{GLYPHS2}
</Text>
<Text wrap="truncate-end">
{title2}
</Text>
</Box>
<Box flexDirection="row" alignItems="center" columnGap={1}>
<Text>
{GLYPHS3}
</Text>
<Text wrap="truncate-end">
{title3}
</Text>
</Box>
</Box>
<Button label={`${clear}`} />
</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/ccprogress/hooks/register.tsx lines 406–459 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (e.props.hasSurvey || e.props.view.agentId !== undefined) return next(e)
const p = await read($, plan)
const expanded = await read($, isExpanded)
const isSpinnerShowing = e.props.isWorking && e.surface === 'terminal'
if (!hasSteps(p) || (isSpinnerShowing && !expanded)) return next(e)
const kit = $.ui.resolve(e)
const { Box, Button, Text } = kit
const s = summarize(p)
const words = wordsFor(isCjk(p))
// Keep what other mods draw here, but not the engine's empty band.
const below = await next(e)
const lead = isSpinnerShowing ? (
<Box paddingLeft={TERMINAL_INDENT} flexShrink={1}>
<Text dimColor wrap="truncate-end">
{p.goal !== '' ? p.goal : words.stepsDone(s.done, s.total)}
</Text>
</Box>
) : (
progressRow(kit, p, {
surface: e.surface,
columns: e.props.bodyColumns,
isWorking: e.props.isWorking,
elapsed: await elapsedOf($, p, e.surface, e.props.isWorking),
})
)
const dismiss =
e.surface === 'terminal' ? (
<Button key="dismiss" label="×" plain onPress={() => persist($, null)} />
) : (
<Button key="dismiss" role="dismiss" label={words.dismiss} onPress={() => persist($, null)} />
)
return (
<Box flexDirection="column">
<Box flexDirection="row" alignItems="center" columnGap={2}>
{lead}
<Box flexDirection="row" alignItems="center" columnGap={1} flexShrink={0}>
<Button
key="toggle"
label={expanded ? `${words.hideSteps} ▴` : `${words.viewSteps} ▾`}
onPress={() => update($, isExpanded, value => !value)}
/>
{s.isComplete && dismiss}
</Box>
</Box>
{expanded && (
<Box marginTop={1} flexDirection="column">
{checklist(kit, e.surface, p, e.props.isWorking)}
</Box>
)}
{below.type !== 'engine' && below}
</Box>
)
})plugins/ccprogress/hooks/view.tsx lines 98–170 · Band
export function progressRow(kit: Kit, plan: ProgressPlan, { surface, columns, isWorking, elapsed }: RowOptions): RenderNode {
const { Box, Text } = kit
const s = summarize(plan)
const words = wordsFor(isCjk(plan))
const phase = phaseOf(plan, isWorking)
const count = (
<Text dimColor>
{s.position}/{s.total}
</Text>
)
const timer =
phase === 'working' && elapsed !== undefined ? (
<Text {...(elapsed.isStuck ? { color: WARNING } : { dimColor: true })}>· {elapsed.text}</Text>
) : null
if (surface === 'terminal') {
return (
<Box key="progress-row" flexDirection="row" columnGap={2} paddingLeft={TERMINAL_INDENT} flexShrink={1}>
{bar(kit, surface, plan, columns, false)}
{count}
{phase === 'done' ? (
<Box flexDirection="row" columnGap={1} flexShrink={1}>
<Text color={SUCCESS}>✓ {words.allDone}</Text>
{plan.goal !== '' && (
<Text dimColor wrap="truncate-end">
{plan.goal}
</Text>
)}
</Box>
) : (
<Box flexDirection="row" columnGap={1} flexShrink={1}>
<Text wrap="truncate-end">{s.current?.title ?? ''}</Text>
{timer}
</Box>
)}
</Box>
)
}
// A narrow band gives up the goal first, then squeezes the bar and truncates the step;
// "All done", the count and the buttons beside the row keep their room. The row clips
// rather than painting over the buttons.
return (
<Box key="progress-row" flexDirection="row" alignItems="center" columnGap={2} flexGrow={1} flexShrink={1} minWidth={0} overflow="hidden">
<Box flexDirection="row" alignItems="center" columnGap={1} flexGrow={1} flexShrink={1} minWidth={0}>
{phaseIcon(kit, phase)}
{phase === 'done' ? (
<Box key="label" flexShrink={0}>
<Text>{words.allDone}</Text>
</Box>
) : (
<Box key="label" flexShrink={1} minWidth={0}>
<Text wrap="truncate-end">{s.current?.title ?? ''}</Text>
</Box>
)}
{timer && <Box flexShrink={0}>{timer}</Box>}
{phase === 'done' && plan.goal !== '' && (
<Box key="goal" flexShrink={GOAL_SHRINK} minWidth={0}>
<Text dimColor wrap="truncate-end">
{plan.goal}
</Text>
</Box>
)}
</Box>
<Box flexDirection="row" alignItems="center" columnGap={1} flexShrink={1} minWidth={0}>
<Box key="bar" flexShrink={1} minWidth={0}>
{bar(kit, surface, plan, columns, phase === 'working')}
</Box>
<Box key="count" flexShrink={0}>
{count}
</Box>
</Box>
</Box>
)
}plugins/ccprogress/hooks/view.tsx lines 37–41 · Band
function phaseIcon(kit: Kit, phase: Phase): RenderNode {
const { Svg } = kit as Elements['desktop']
// Only an interactive SVG animates; the static states stay plain images.
return <Svg source={phaseIconSvg(phase, PALETTE)} alt={PHASE_ALT[phase]} width={16} height={16} isInteractive={phase === 'working'} />
}plugins/ccprogress/hooks/view.tsx lines 54–78 · Band
function bar(kit: Kit, surface: RenderSurface, plan: ProgressPlan, columns: number | undefined, isWorking: boolean): RenderNode {
const Svg = svgOf(kit, surface)
if (Svg) {
const s = summarize(plan)
const width = svgWidth(s.total)
return (
<Svg
source={barSvg(plan.steps, width, PALETTE, isWorking)}
alt={`${s.done} of ${s.total} steps done`}
height={4}
isInteractive={isWorking}
/>
)
}
const { Text } = kit
return (
<Text>
{barRuns(plan.steps, barWidth(columns)).map((run, i) => (
<Text key={`bar-${i}`} {...toneProps(run.tone)}>
{run.text}
</Text>
))}
</Text>
)
}plugins/ccprogress/hooks/view.tsx lines 172–186 · Band
export function checklist(kit: Kit, surface: RenderSurface, plan: ProgressPlan, isWorking: boolean): RenderNode {
const { Box, Text } = kit
return (
<Box key="checklist" flexDirection="column" paddingLeft={surface === 'terminal' ? TERMINAL_INDENT : 0}>
{plan.steps.map((step, i) => (
<Box key={`step-${i}`} flexDirection="row" alignItems="center" columnGap={1}>
{stepIcon(kit, surface, step.status, isWorking)}
<Text dimColor={step.status === 'completed'} bold={step.status === 'in_progress'} wrap="truncate-end">
{step.title}
</Text>
</Box>
))}
</Box>
)
}plugins/ccprogress/hooks/view.tsx lines 43–52 · Band
function stepIcon(kit: Kit, surface: RenderSurface, status: ProgressStatus, isWorking: boolean): RenderNode {
const Svg = svgOf(kit, surface)
if (Svg) {
const isAnimated = isWorking && status === 'in_progress'
return <Svg source={stepIconSvg(status, PALETTE, isAnimated)} alt={STATUS_ALT[status]} width={14} height={14} isInteractive={isAnimated} />
}
const { Text } = kit
const tone: Tone = status === 'completed' ? 'done' : status === 'in_progress' ? 'current' : 'pending'
return <Text {...toneProps(tone)}>{GLYPHS[status]}</Text>
}Licence text (MIT)
MIT License Copyright (c) 2026 amigoer 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.
What its code calls
runs programsreads filesenv varstool callsremembers
What its code shows
Read from the source at commit f0ec37218d42 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.plugins/ccprogress/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.5 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).plugins/ccprogress/hooks/register.tsx:141 notify-send (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.plugins/ccprogress/hooks/register.tsx:138 osascript (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.MIT |
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 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 amigoer/ccprogress/plugin install ccprogress@ccprogressThis installs the marketplace's latest commit, which may not be the one read here (f0ec37218d42). Compare them before you install.
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 "amigoer-ccprogress" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…Fix loginRemoveCopy markdownacme/app · mainCopy linkCopy markdownbuild2h 10mbuild2h 10mbuild2h 10mHosted on uploads.sh, not committed to the repo.They will appear in a comment on the pull request once opened.
-
Ask Claude…Skins0 Your promptadd rate limiting to the hub api0 Tool rows: finished, running, failedYour prompt Spinner0 Folded group of reads and searches●main · note 3 · note 3 · note 30 Edit diff cardDesktop only; the terminal keeps Claude Code's diff.0 Shell output cardDesktop only.0 Code block cardDesktop only; the terminal keeps Claude Code's markdown.0 TableAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopy0 SpinnerAccent SpinnerSpinnerSpinner… 2h 10m0 Band above the prompt: normal, then nudging to compact█████░░░ 42% build█████░░░ 42% build█████░░░ 42% buildContext is 42% full0 Compact now0 Band above a questionTable BashBashBash0 Turn footer (terminal)3 build in 2h 10m · Grep · +3 −3
-
spending-effort-with-jev: no TypeSafe API key, so effort tips are off. Set it in /plugin.⚠ effort: long run, fuzzy spec → have Claude interview you, then go maxAsk Claude…
-
✦ explain as pick how Claude answers×3 ● build3 ● build3 ● build▸ VideoAsk Claude…
-
Ask Claude…Clawd's shopLevel 3 · Fix loginTinkerer1 coin per 12.4 tokens Claude writes, 100 per level, 25 per badgeTake everything offContextbuildLevel 3buildLevel 3buildLevel 3ContextbuildLevel 3buildLevel 3buildLevel 3ContextbuildLevel 3buildLevel 3buildLevel 3
-
Ask Claude…Desktop Usage StripDesktop Usage Strip
Token totals: latest 3 observed requests. USD is the engine session ledger, not a subscription charge.Hide composer stripRefresh