Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / sprout

sprout

Subagent tracker: a band above the prompt and a panel with each agent's work and the files it touches

Code you can checkTerminal + desktopPaneBandToastBoxButtonInputSvgText
runs programs, draws

What it does

  • Draws a band above the prompt, a pane
  • Adds /sprout
  • Watches tool calls and can refuse them
  • Hooks agent.spawn, prompt.submit, session.start, turn.complete 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)

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

// Drawn like sprout by tum4s (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/tum4s-sprout/
// 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 head = '…'
    const lit = '…'
    const unlit = '…'
    const filter = '…'
    const openAgents = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" alignItems="center" gap={1}>
          <Text color="claude">
            ●
          </Text>
          <Text bold>
            {head}
          </Text>
          <Box marginX={1}>
            <Text>
              <Text color="claude">
                {lit}
              </Text>
              <Text dimColor>
                {unlit}
              </Text>
            </Text>
          </Box>
          <Text dimColor>
            {filter}
          </Text>
          <Box flexGrow={1} />
          <Button label={`${openAgents}`} plain />
        </Box>
        {await next(e)}
      </Box>
    )
  })

  // 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, Input } = $.ui.resolve(e)
    const runningOf = '…'
    const label = '…'
    const older = '…'
    const filesTitle = '…'
    const length = '…'
    const searchPlaceholder = '…'
    const search = '…'
    const type = '…'
    const read = '…'
    const written = '…'
    const all = '…'
    const attached = '…'
    const clear = '…'
    const noMatch = '…'
    const name = '…'
    const marks = '…'
    const attachedTag = '…'
    const length2 = '…'
    const marks2 = '…'
    const attachedTag2 = '…'
    const length3 = '…'
    const marks3 = '…'
    const attachedTag3 = '…'
    const length4 = '…'
    const more = '…'
    return (
      <Box flexDirection="column" paddingX={1}>
        <Box flexDirection="row" gap={1} alignItems="center">
          <Box borderStyle="round" borderDimColor paddingX={1}>
            <Text bold>
              Agents
            </Text>
          </Box>
          <Box flexShrink={1}>
            <Text dimColor wrap="truncate-end">
              {runningOf}
            </Text>
          </Box>
          <Box flexGrow={1} />
          <Text color="claude" bold wrap="truncate-start">
            {label}
          </Text>
        </Box>
        <Box marginTop={1}>
          <Text dimColor>
            {older}
          </Text>
        </Box>
        <Box marginTop={1} height={1} overflow="hidden">
          <Text dimColor>
            ────────────────────────
          </Text>
        </Box>
        <Box flexDirection="row" gap={1} marginTop={1} marginBottom={1} alignItems="center">
          <Box borderStyle="round" borderDimColor paddingX={1}>
            <Text bold>
              {filesTitle}
            </Text>
          </Box>
          <Text dimColor>
            {length}
          </Text>
          <Box marginLeft={1}>
            <Button plain label="🔍︎" />
          </Box>
          <Box flexGrow={1} flexShrink={1}>
            <Input placeholder={`${searchPlaceholder}`} value={`${search}`} submitLabel="↵" autoFocus />
          </Box>
          <Box flexShrink={1}>
            <Text dimColor wrap="truncate-end">
              {"· "}
              {type}
            </Text>
          </Box>
          <Box flexGrow={1} />
          <Box flexDirection="row" alignItems="center" gap={1}>
            <Text color="warning">
              ●
            </Text>
            <Text color="suggestion">
              {read}
            </Text>
            <Box marginLeft={1}>
              <Text color="warning">
                ●
              </Text>
            </Box>
            <Text color="warning">
              {written}
            </Text>
          </Box>
          <Button plain label={`${all}`} />
        </Box>
        <Box flexDirection="row" gap={1} marginBottom={1}>
          <Text color="claude">
            {attached}
          </Text>
          <Box flexGrow={1} />
          <Button plain dimColor label={`${clear}`} />
        </Box>
        <Text dimColor>
          {noMatch}
        </Text>
        <Box flexDirection="row" alignItems="center" gap={1} marginTop={1}>
          <Text color="warning">
            ●
          </Text>
          <Box flexShrink={1}>
            <Button plain label={`${name}`} />
          </Box>
          <Box flexGrow={1} />
          <Text bold>
            {marks}
          </Text>
          <Text color="claude">
            {attachedTag}
          </Text>
          <Text dimColor>
            {length2}
            {" agents"}
          </Text>
        </Box>
        <Box flexDirection="row" alignItems="center" gap={1} marginTop={1}>
          <Text color="warning">
            ●
          </Text>
          <Box flexShrink={1}>
            <Button plain label={`${name}`} />
          </Box>
          <Box flexGrow={1} />
          <Text bold>
            {marks2}
          </Text>
          <Text color="claude">
            {attachedTag2}
          </Text>
          <Text dimColor>
            {length3}
            {" agents"}
          </Text>
        </Box>
        <Box flexDirection="row" alignItems="center" gap={1} marginTop={1}>
          <Text color="warning">
            ●
          </Text>
          <Box flexShrink={1}>
            <Button plain label={`${name}`} />
          </Box>
          <Box flexGrow={1} />
          <Text bold>
            {marks3}
          </Text>
          <Text color="claude">
            {attachedTag3}
          </Text>
          <Text dimColor>
            {length4}
            {" agents"}
          </Text>
        </Box>
        <Text dimColor>
          {more}
        </Text>
      </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.

hooks/register.tsx lines 419–479 · Band
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    if (e.props.hasSurvey) return next(e)
    const list = await read($, agents)
    const start = await read($, waveStart)
    const at = await read($, now)
    const crew = list.filter(a => a.startedAt >= start || a.status === 'running')
    const running = crew.filter(a => a.status === 'running')
    if (crew.length === 0 || (running.length === 0 && at - lastEnd(crew) > BAND_LINGER_MS)) return next(e)

    const others = await next(e)
    const ui = $.ui.resolve(e)
    const { Box, Text, Button } = ui
    // Svg is the desktop's alone: narrowing the event narrows the element table.
    const Svg = e.surface === 'desktop' ? $.ui.resolve(e).Svg : null
    const isLive = running.length > 0
    const failed = crew.filter(a => a.status === 'failed').length
    const ratio = crew.reduce((s, a) => s + (progressOf(a) ?? 0), 0) / crew.length
    const cost = crew.reduce<number | null>((s, a) => addCost(s, a.costUsd), 0)
    const span = Math.max(...crew.map(a => a.endedAt ?? Math.max(at, a.startedAt))) - Math.min(...crew.map(a => a.startedAt))
    const head = isLive ? t.bandRunning(running.length) : t.bandDone(crew.length)
    const barColor = isLive ? BAR_LIVE : failed ? BAR_FAIL : BAR_DONE
    const [lit, unlit] = blockBar(ratio, 31)
    const bar =
      Svg ? (
        <Svg
          source={dotBarSvg(ratio, barColor, isLive, `wave-${start}`, BAND_COLS, BAND_ROWS, !isLive && failed ? BAR_FAIL : undefined)}
          alt={`${Math.round(ratio * 100)}%`}
          width={dotBarWidth(BAND_COLS)}
          height={dotBarHeight(BAND_ROWS)}
        />
      ) : (
        <Text>
          <Text color={isLive ? RUN : failed ? FAIL : DONE}>{lit}</Text>
          <Text dimColor>{unlit}</Text>
        </Text>
      )
    // Other mods' band content stays below ours.
    return (
      <Box flexDirection="column">
        <Box key="sprout-band" flexDirection="row" alignItems="center" gap={1}>
          {/* The mascot sums up the wave: walking while agents run, smiling once done, red if one failed. */}
          {Svg ? (
            <Svg source={botSvg(isLive ? 'running' : failed ? 'failed' : 'done')} alt={head} width={BOT_SIZE} height={BOT_SIZE} />
          ) : (
            <Text color={isLive ? RUN : failed ? FAIL : DONE}>{isLive ? '●' : failed ? '✗' : '✓'}</Text>
          )}
          <Text bold>{head}</Text>
          {/* Breathing room around the bar; the button sits at the far right. */}
          <Box marginX={1}>{bar}</Box>
          <Text dimColor>
            {[t.bandRatio(crew.length - running.length, crew.length), cost ? fmtCost(cost) : '', fmtTime(span)]
              .filter(Boolean)
              .join('  ·  ')}
          </Text>
          <Box flexGrow={1} />
          <Button key="sprout-open" label={t.openAgents} plain onPress={() => void openPane($)} />
        </Box>
        {others}
      </Box>
    )
  })
hooks/register.tsx lines 482–641 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const ui = $.ui.resolve(e)
    const { Box, Text, Button } = ui
    // Svg is the desktop's alone: narrowing the event narrows the element table.
    const Svg = e.surface === 'desktop' ? $.ui.resolve(e).Svg : null
    // The text field exists on every surface but mobile.
    const Input = e.surface !== 'mobile' ? $.ui.resolve(e).Input : null
    const list = await read($, agents)
    const touched = await read($, files)
    const picked = await read($, filter)
    const chosen = await read($, selected)
    const search = await read($, query)
    const isSearching = await read($, searching)
    const marks = await read($, git)
    const at = await read($, now)

    if (list.length === 0) {
      return (
        <Box flexDirection="column" padding={1}>
          <Box borderStyle="round" borderDimColor paddingX={1} alignSelf="flex-start">
            <Text bold>Agents</Text>
          </Box>
          <Text dimColor>{t.empty}</Text>
        </Box>
      )
    }

    const running = list.filter(a => a.status === 'running').sort((a, b) => b.startedAt - a.startedAt)
    const finished = list.filter(a => a.status !== 'running').sort((a, b) => (b.endedAt ?? 0) - (a.endedAt ?? 0))
    const shown = [...running, ...finished].slice(0, MAX_CARDS)
    const hidden = list.length - shown.length
    const totalCost = list.reduce<number | null>((s, a) => addCost(s, a.costUsd), 0)
    const totalTokens = list.reduce((s, a) => s + a.tokens, 0)
    const totals = totalsPill(totalCost, totalTokens)

    const bar = (a: AgentRun): JSX.Element => {
      const progress = progressOf(a)
      const ctx = contextPct(a)
      const isLive = a.status === 'running'
      // Without reported steps a running bar shows the context fill, in grey.
      const ratio = progress ?? (ctx ?? 0) / 100
      const isFailed = a.status === 'failed'
      const color = !isLive ? (isFailed ? BAR_FAIL : BAR_DONE) : progress === null ? BAR_CTX : BAR_LIVE
      if (Svg) {
        return <Svg source={dotBarSvg(ratio, color, isLive, a.id, CARD_COLS, CARD_ROWS, isFailed ? BAR_FAIL : undefined)} alt={`${Math.round(ratio * 100)}%`} width={dotBarWidth(CARD_COLS)} height={dotBarHeight(CARD_ROWS)} />
      }
      const [lit, unlit] = blockBar(ratio, 14)
      return (
        <Text>
          <Text color={isLive ? RUN : isFailed ? FAIL : DONE}>{lit}</Text>
          <Text dimColor>{unlit}</Text>
        </Text>
      )
    }

    const card = (a: AgentRun): JSX.Element => {
      const isLive = a.status === 'running'
      const ctx = contextPct(a)
      const owner = a.id
      const fileCount = touched.filter(f => f.agents.includes(owner)).length
      const isPicked = picked === owner
      const detail = isLive
        ? a.stepNote || a.lastTool || t.starting
        : a.status === 'failed'
          ? t.failed
          : a.answer
            ? `→ ${a.answer}`
            : t.done
      const steps = a.stepTotal ? t.steps(a.stepDone ?? 0, a.stepTotal) : ''
      const facts = [
        ctx !== null ? `ctx ${ctx}%` : '',
        a.tokens ? `${fmtTokens(a.tokens)} tk` : '',
        fmtCost(a.costUsd),
        fmtTime(elapsed(a, at)),
      ].filter(Boolean)
      return (
        <Box key={`card-${a.id}`} flexDirection="column" marginTop={1}>
          <Box flexDirection="row" alignItems="center" gap={1}>
            {Svg ? (
              <Svg source={botSvg(a.status)} alt={isLive ? t.altRunning : a.status === 'failed' ? t.altFailed : t.altDone} width={BOT_SIZE} height={BOT_SIZE} />
            ) : (
              <Text color={isLive ? RUN : a.status === 'failed' ? FAIL : DONE}>{isLive ? '●' : a.status === 'failed' ? '✗' : '✓'}</Text>
            )}
            <Box flexShrink={1}>
              <Text bold={isLive} wrap="truncate-end">
                {a.description || a.type}
              </Text>
            </Box>
            <Box flexGrow={1} />
            <Text dimColor>
              {modelName(a.model)}
              {a.effort ? ` · ${a.effort}` : ''}
            </Text>
          </Box>
          <Box flexDirection="row" alignItems="center" gap={1} marginLeft={2}>
            {/* The bar keeps its width in a narrow pane; the facts are cut instead. */}
            <Box flexShrink={0} marginRight={1}>
              {bar(a)}
            </Box>
            {/* Steps right after the bar; context, tokens, cost and time at the far right. */}
            {steps && <Text dimColor>{steps}</Text>}
            <Box flexGrow={1} />
            <Text dimColor wrap="truncate-start">
              {facts.join('  ·  ')}
            </Text>
          </Box>
          <Box flexDirection="row" gap={1} marginLeft={2}>
            <Box flexShrink={1}>
              <Text dimColor italic={!isLive} wrap="truncate-end">
                {clip(detail, DETAIL_MAX)}
              </Text>
            </Box>
            <Box flexGrow={1} />
            {/* Only when filtering would narrow the list, or to undo a filter. */}
            {fileCount > 0 && (fileCount < touched.length || isPicked) && (
              <Button
                key={`filter-${a.id}`}
                plain
                dimColor={!isPicked}
                label={t.filesButton(fileCount, isPicked)}
                onPress={() => void update($, filter, f => (f === owner ? null : owner))}
              />
            )}
          </Box>
        </Box>
      )
    }

    // Read / written marks: on the desktop two SVG dots of the same 8px size (ring, disc); glyphs on the terminal.
    const mark = (isWrite: boolean): JSX.Element =>
      Svg ? (
        <Svg source={isWrite ? MARK_WRITE : MARK_READ} alt={isWrite ? t.written : t.read} width={8} height={8} />
      ) : (
        <Text color={isWrite ? WRITE : READ}>{isWrite ? '●' : '○'}</Text>
      )

    const pickedRun = picked ? list.find(a => a.id === picked) : undefined
    const needle = isSearching ? search.trim().toLowerCase() : ''
    const rootKey = root.toLowerCase() + '/'
    const shownFiles = (pickedRun && picked ? touched.filter(f => f.agents.includes(picked)) : touched).filter(f => {
      const path = f.path.toLowerCase()
      return !needle || (path.startsWith(rootKey) ? path.slice(rootKey.length) : path).includes(needle)
    })
    const rows = treeRows(shownFiles, root)
    const visibleRows = rows.slice(0, MAX_FILE_ROWS)

    return (
      <Box flexDirection="column" paddingX={1}>
        <Box flexDirection="row" gap={1} alignItems="center">
          <Box borderStyle="round" borderDimColor paddingX={1}>
            <Text bold>Agents</Text>
          </Box>
          <Box flexShrink={1}>
            <Text dimColor wrap="truncate-end">
              {running.length ? t.runningOf(running.length, list.length) : t.inTotal(list.length)}
            </Text>
          </Box>
          <Box flexGrow={1} />
          {/* Session totals stand out in a faded orange pill (desktop); plain text on the terminal. */}
          {Svg ? (
Licence text (MIT)
MIT License

Copyright (c) 2026 tum4s

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 programsenv varstool calls

What its code shows

Read from the source at commit 762fd90003e7 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 readEvery module hooks/hooks.json names was read.hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.3 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, with its own branch for the desktop
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).runs no program a Windows PC lacks
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.hooks/register.tsx:146 a program named at run time; hooks/register.tsx:191 a program named at run time
Reads and sendsWhether 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, settings.json and reaches the 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
Settings hooksHooks 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 shipsMCP 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, agentsWhat 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 MCPWhether 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 modelCompletions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.adds tool step, adds command sprout
Events it hooksBy 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: prompt.submit, command.run (sprout), tool.call · shapes: turn.step · also: session.start, agent.spawn, turn.complete, ui.render (AbovePrompt, Pane) · timers: clock.after, clock.every
Reads, by nameThe environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.env: SystemRoot, LANG; settings.json
Writes, by nameThe 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 Tum4s/sprout
/plugin install sprout@tum4s
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (762fd90003e7). 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/Tum4s/sprout
git -C sprout checkout 762fd90003e7df65c7387070e50c044406f96133
claude plugin validate sprout
claude --plugin-dir sprout

The 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 "tum4s-sprout" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

Badge for your README

If this is your mod, paste this into your README. It links to this page.

README.md
[![ModsCode](https://modscode.com/badge/tum4s-sprout.svg)](https://modscode.com/claude-mods/mods/tum4s-sprout/)