modscode JA

modscode / Gallery / plan-progress

plan-progress

Live plan progress bars above the Claude Code prompt: stages, steps, a pixel fill and soft sounds for decision, error and done

Code you can checkTerminal + desktopBandToastBoxButtonSvgText

What it does

  • Draws a band above the prompt, toasts
  • Adds /progress, /progress-clear
  • Watches AskUserQuestion, ExitPlanMode calls and can refuse them
  • Hooks agent.spawn, classic.PermissionDenied, classic.PermissionRequest, classic.Stop and 7 more
  • Keeps its own state between turns

Good points

  • No network calls
  • Written in TypeScript
  • Has a desktop-specific branch

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)

register.tsx
import type { Register } from 'claude-code'

// Drawn like plan-progress by Kirill Serditov (band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/zycck-plan-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 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 divider = '…'
    const STATE_GLYPH = '…'
    const title = '…'
    const base = '…'
    const alt = '…'
    const hover = '…'
    const liveSource = '…'
    const p = '…'
    const pct = '…'
    const STATE_GLYPH2 = '…'
    const title2 = '…'
    const STATE_GLYPH3 = '…'
    const title3 = '…'
    return (
      <Box flexDirection="column" gap={1}>
        <Svg source={`${divider}`} alt="divider" height={1} />
        <Box flexDirection="row" alignItems="flex-start" gap={1}>
          <Text>
            {STATE_GLYPH}
          </Text>
          <Text wrap="truncate">
            {title}
          </Text>
          <Box flexGrow={1} />
          <Box flexDirection="column" flexShrink={0}>
            <Box>
              <Svg source={`${base}`} alt={`${alt}`} height={22} />
              <Box position="absolute" top={0} left={0}>
                <Svg source={`${hover}`} alt={`${title}: hover for times`} height={22} isInteractive />
              </Box>
            </Box>
            <Svg source={`${liveSource}`} alt={`${p}`} />
            <Svg source={`${liveSource}`} alt={`${p}`} />
            <Svg source={`${liveSource}`} alt={`${p}`} />
          </Box>
          <Text dimColor>
            {`${pct}%`}
          </Text>
          <Button plain dimColor label="✕" />
        </Box>
        <Svg source={`${divider}`} alt="divider" height={1} />
        <Box flexDirection="row" alignItems="flex-start" gap={1}>
          <Text>
            {STATE_GLYPH2}
          </Text>
          <Text wrap="truncate">
            {title2}
          </Text>
          <Box flexGrow={1} />
          <Box flexDirection="column" flexShrink={0}>
            <Box>
              <Svg source={`${base}`} alt={`${alt}`} height={22} />
              <Box position="absolute" top={0} left={0}>
                <Svg source={`${hover}`} alt={`${title}: hover for times`} height={22} isInteractive />
              </Box>
            </Box>
            <Svg source={`${liveSource}`} alt={`${p}`} />
            <Svg source={`${liveSource}`} alt={`${p}`} />
            <Svg source={`${liveSource}`} alt={`${p}`} />
          </Box>
          <Text dimColor>
            {`${pct}%`}
          </Text>
          <Button plain dimColor label="✕" />
        </Box>
        <Svg source={`${divider}`} alt="divider" height={1} />
        <Box flexDirection="row" alignItems="flex-start" gap={1}>
          <Text>
            {STATE_GLYPH3}
          </Text>
          <Text wrap="truncate">
            {title3}
          </Text>
          <Box flexGrow={1} />
          <Box flexDirection="column" flexShrink={0}>
            <Box>
              <Svg source={`${base}`} alt={`${alt}`} height={22} />
              <Box position="absolute" top={0} left={0}>
                <Svg source={`${hover}`} alt={`${title}: hover for times`} height={22} isInteractive />
              </Box>
            </Box>
            <Svg source={`${liveSource}`} alt={`${p}`} />
            <Svg source={`${liveSource}`} alt={`${p}`} />
            <Svg source={`${liveSource}`} alt={`${p}`} />
          </Box>
          <Text dimColor>
            {`${pct}%`}
          </Text>
          <Button plain dimColor label="✕" />
        </Box>
        {await next(e)}
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    await $.ui.toast(`plan-progress is on. A bar appears when Claude starts a task with several steps.`)
    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.

plugins/plan-progress/hooks/register.tsx lines 1550–1672 · Band
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const list = await read($, plans)
    if (list.length === 0 || e.props.hasSurvey || !(await read($, isOpen))) {
      band = null
      return next(e)
    }
    if (e.surface === 'terminal') {
      const { Box, Button, Text, Raster } = $.ui.resolve(e)
      await read($, tick)
      const now = await $.clock.now()
      const cols = Math.max(30, e.props.bodyColumns || 100)
      const hasClicks = e.viewport?.isFullscreen === true
      const titleW = Math.max(4, Math.min(Math.round(cols * 0.28), Math.max(...list.map(p => cellsOf(p.title)))))
      const trackW = Math.max(12, Math.min(512, cols - titleW - (hasClicks ? 15 : 13)))
      band = { requestId: e.requestId, W: trackW, list }
      return (
        <Box flexDirection="column">
          {list.map(p => {
            const v = visibleAgents(p, now, stripBudget(list.length))
            const strips = v ? stripCells(v, trackW, now) : null
            const w = where(p)
            const pct = percent(p, w)
            return (
              <Box key={`bar-${p.id}`} flexDirection="column">
                <Box flexDirection="row" gap={1}>
                  <Text color={STATE_COLOR[p.state]}>{STATE_GLYPH[p.state]}</Text>
                  <Box width={titleW} flexShrink={0}>
                    <Text wrap="truncate">{p.title}</Text>
                  </Box>
                  <Raster key={`track-${p.id}`} columns={trackW} rows={1} cells={trackCells(p, trackW, now)} />
                  <Text dimColor>{`${String(pct).padStart(3, FIGURE_SPACE)}%`}</Text>
                  {hasClicks ? <Button key={`close-${p.id}`} plain dimColor label="✕" onPress={() => dropPlan($, p.id)} /> : null}
                </Box>
                {p.note && p.state !== 'running' ? (
                  <Box marginLeft={titleW + 3}>
                    <Text color={STATE_COLOR[p.state]} wrap="truncate">{p.note}</Text>
                  </Box>
                ) : null}
                {strips ? (
                  <Box marginLeft={titleW + 3}>
                    <Raster key={`strips-${p.id}`} columns={trackW} rows={strips.rows} cells={strips.cells} />
                  </Box>
                ) : null}
              </Box>
            )
          })}
        </Box>
      )
    }
    const t = $.ui.resolve(e)
    const { Box, Button, Text } = t
    const Svg = 'Svg' in t ? t.Svg : null
    const total = Math.max(320, (e.props.bodyColumns || 100) * 8)
    // every bar has the same width and is pinned to the right edge (fixed-width percent, close button),
    // so rows line up whatever their titles; the slack goes into the gap after the title.
    // Desktop reports ~8 CSS px per column; glyph, gaps, percent and the close button take ~126 px.
    const titleWidth = Math.min(Math.round(total * 0.3), Math.max(...list.map(p => Math.round(textWidth(p.title, 6.4)))))
    const trackW = Math.max(120, Math.min(1400, total - titleWidth - 140))
    await read($, tick)
    const now = await $.clock.now()
    // a hairline between task bars, so each bar and its agent strips read as one group
    const divider = `<svg xmlns="http://www.w3.org/2000/svg" width="${total}" height="1"><rect width="${total}" height="1" fill="#808080" fill-opacity=".22"/></svg>`

    return (
      <Box flexDirection="column" gap={1}>
        {list.flatMap((p, i) => {
          const v = visibleAgents(p, now, stripBudget(list.length))
          const track = trackSvg(p, trackW)
          const hover = liveSource(track.overlay, now)
          const strips = v && Svg
            ? stripsSvg(v, p.agents ?? [], trackW).map(r => (
                <Svg
                  key={`strip-${p.id}-${r.key}`}
                  source={liveSource(`<svg xmlns="http://www.w3.org/2000/svg" width="${trackW}" height="${r.height}">${STRIP_STYLE}${r.html}</svg>`, now)}
                  alt={stripAlt(p, r.key)}
                  width={trackW}
                  height={r.height}
                />
              ))
            : []
          const agentsAlt = v ? `; agents: ${(p.agents ?? []).map(a => `${a.title} ${a.state}`).join(', ')}` : ''
          const line = i > 0 && Svg ? [<Svg key={`div-${p.id}`} source={divider} alt="divider" width={total} height={1} />] : []
          const w = where(p)
          const pct = percent(p, w)
          const color = STATE_COLOR[p.state]
          const stageName = p.stages[w.stage]?.name ?? ''
          const alt =
            p.state === 'done'
              ? `${p.title}: done, ${plural(w.total, 'step')}${p.endedAt ? ` in ${elapsed(p.endedAt - p.startedAt)}` : ''}`
              : `${p.title}: ${stageName}, step ${w.step} of ${w.stageSize}, ${pct}%${p.note ? ` — ${p.note}` : ''}${agentsAlt}`
          const bar = `${'━'.repeat(Math.round(pct / 4))}${'─'.repeat(25 - Math.round(pct / 4))}`

          return [
            ...line,
            <Box key={`bar-${p.id}`} flexDirection="row" alignItems={v ? 'flex-start' : 'center'} gap={1}>
              <Text color={color}>{STATE_GLYPH[p.state]}</Text>
              <Text wrap="truncate">{p.title}</Text>
              <Box flexGrow={1} />
              {Svg ? (
                <Box flexDirection="column" flexShrink={0}>
                  <Box key={`track-${p.id}`}>
                    <Svg source={track.base} alt={alt} width={trackW} height={TRACK_H} />
                    <Box position="absolute" top={0} left={0}>
                      <Svg source={hover} alt={`${p.title}: hover for times`} width={trackW} height={TRACK_H} isInteractive />
                    </Box>
                  </Box>
                  {strips}
                </Box>
              ) : (
                <Text>
                  <Text color={color}>{bar.replace(/─/g, '')}</Text>
                  <Text dimColor>{bar.replace(/━/g, '')}</Text>
                  <Text color={color}>{` ${stageName} ${w.step}/${w.stageSize}`}</Text>
                </Text>
              )}
              <Text dimColor>{`${String(pct).padStart(3, FIGURE_SPACE)}%`}</Text>
              <Button key={`close-${p.id}`} plain dimColor label="✕" onPress={() => dropPlan($, p.id)} />
            </Box>,
          ]
        })}
      </Box>
    )
  })
Licence text (MIT)
MIT License

Copyright (c) 2026 Kirill Serditov

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 programswrites filestool callsremembers

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 ace33509f725 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 readEvery module hooks/hooks.json names was read.plugins/plan-progress/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.1 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo 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 openNetwork 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 drawsThe 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 lineWhether 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 WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).plugins/plan-progress/hooks/register.tsx:923 defaults (not on Windows); plugins/plan-progress/hooks/register.tsx:930 /bin/sh (not on Windows)
NetworkWhether every fetch names its https host in the code.no network
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.plugins/plan-progress/hooks/register.tsx:930 /bin/sh (a shell or interpreter)
Reads and sendsWhether it both reads files or environment variables and reaches the network.reaches no network
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn 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 zycck/claude-mods
/plugin install plan-progress@zycck-mods

This installs the marketplace's latest commit, which may not be the one read here (ace33509f725). 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 "zycck-plan-progress" with its code and make me a pane like it

Search them from Claude: the MCP connector

Similar designs