Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / progresso

progresso

Barras de progresso acima do prompt, com faixas de subagentes e comandos em background e som ao terminar, falhar ou esperar decisão.

Code you can checkTerminal + desktopPaneBandToastBoxButtonSvgText
drives Claude, draws

What it does

  • Draws a band above the prompt, a pane, toasts
  • Adds /progresso, /progresso-demo, /progresso-limpar
  • Watches AskUserQuestion, Bash calls and can refuse them
  • Hooks agent.spawn, classic.PermissionRequest, classic.Stop, prompt.compose and 8 more
  • Keeps its own state between turns

Good points

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

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 progresso by Kelvi-Maycon (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/kelvi-maycon-progresso/
// 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, Svg, Button } = $.ui.resolve(e)
    const escondidas = '…'
    const svgDoDivisor = '…'
    const percentual = '…'
    const icone = '…'
    const rotulo = '…'
    const source = '…'
    const alt = '…'
    return (
      <Box flexDirection="column" gap={1}>
        <Text dimColor>
          {escondidas}
        </Text>
        <Svg source={`${svgDoDivisor}`} alt="divisor" height={1} />
        <Box flexDirection="column">
          <Box>
            <Button label={`${percentual}%`} plain />
          </Box>
          <Box>
            <Svg source={`${icone}`} alt="comando" width={16} />
            <Box width={3} flexShrink={0}>
              <Button label={`${rotulo}`} plain dimColor />
            </Box>
            <Svg source={`${source}`} alt={`${alt}`} />
          </Box>
          <Box>
            <Svg source={`${icone}`} alt="comando" width={16} />
            <Box width={3} flexShrink={0}>
              <Button label={`${rotulo}`} plain dimColor />
            </Box>
            <Svg source={`${source}`} alt={`${alt}`} />
          </Box>
          <Box>
            <Svg source={`${icone}`} alt="comando" width={16} />
            <Box width={3} flexShrink={0}>
              <Button label={`${rotulo}`} plain dimColor />
            </Box>
            <Svg source={`${source}`} alt={`${alt}`} />
          </Box>
        </Box>
        <Svg source={`${svgDoDivisor}`} alt="divisor" height={1} />
        <Box flexDirection="column">
          <Box>
            <Button label={`${percentual}%`} plain />
          </Box>
          <Box>
            <Svg source={`${icone}`} alt="comando" width={16} />
            <Box width={3} flexShrink={0}>
              <Button label={`${rotulo}`} plain dimColor />
            </Box>
            <Svg source={`${source}`} alt={`${alt}`} />
          </Box>
          <Box>
            <Svg source={`${icone}`} alt="comando" width={16} />
            <Box width={3} flexShrink={0}>
              <Button label={`${rotulo}`} plain dimColor />
            </Box>
            <Svg source={`${source}`} alt={`${alt}`} />
          </Box>
          <Box>
            <Svg source={`${icone}`} alt="comando" width={16} />
            <Box width={3} flexShrink={0}>
              <Button label={`${rotulo}`} plain dimColor />
            </Box>
            <Svg source={`${source}`} alt={`${alt}`} />
          </Box>
        </Box>
        <Svg source={`${svgDoDivisor}`} alt="divisor" height={1} />
        <Box flexDirection="column">
          <Box>
            <Button label={`${percentual}%`} plain />
          </Box>
          <Box>
            <Svg source={`${icone}`} alt="comando" width={16} />
            <Box width={3} flexShrink={0}>
              <Button label={`${rotulo}`} plain dimColor />
            </Box>
            <Svg source={`${source}`} alt={`${alt}`} />
          </Box>
          <Box>
            <Svg source={`${icone}`} alt="comando" width={16} />
            <Box width={3} flexShrink={0}>
              <Button label={`${rotulo}`} plain dimColor />
            </Box>
            <Svg source={`${source}`} alt={`${alt}`} />
          </Box>
          <Box>
            <Svg source={`${icone}`} alt="comando" width={16} />
            <Box width={3} flexShrink={0}>
              <Button label={`${rotulo}`} plain dimColor />
            </Box>
            <Svg source={`${source}`} alt={`${alt}`} />
          </Box>
        </Box>
        {await next(e)}
      </Box>
    )
  })

  // the pane: open it with $.ui.open({ id: 'my-pane', title: "Progresso" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const cortar = '…'
    return (
      <Box flexDirection="column" gap={1}>
        <Text bold>
          {cortar}
        </Text>
        <Box flexDirection="column" columnGap={1}>
          <Box flexDirection="column" borderStyle="round" borderColor="subtle" paddingX={1} flexGrow={1}>
            <Text dimColor>
              Custo
            </Text>
            <Text bold>
              —
            </Text>
          </Box>
          <Box flexDirection="column" borderStyle="round" borderColor="subtle" paddingX={1} flexGrow={1}>
            <Text dimColor>
              Tokens
            </Text>
            <Text bold>
              —
            </Text>
          </Box>
          <Box flexDirection="column" borderStyle="round" borderColor="subtle" paddingX={1} flexGrow={1}>
            <Text dimColor>
              Tempo
            </Text>
            <Text bold>
              0
            </Text>
          </Box>
        </Box>
        <Button label="Expandir" plain dimColor />
        <Box flexDirection="column">
          rodando
          concluidos
          falharam
          planejados
          <Text dimColor>
            ────────
          </Text>
        </Box>
        <Button role="dismiss" label="Fechar" />
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const reason = '…'
    await $.ui.toast(`O painel de progresso abriu sem lugar na tela: ${reason}`)
    await $.ui.toast(`O painel do agente abriu sem lugar na tela: ${reason}`)
    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/progresso/hooks/register.tsx lines 950–1109 · Band
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    // O que os outros mods desenham na mesma faixa continua embaixo das barras. Vem antes da leitura do estado: um
    // desenho que espera os outros e só então lê não sai com um estado mais velho que o de um desenho seguinte.
    const abaixo = await desenhoDeBaixo($, next(e))
    const { Box: Caixa, Button, Text: Texto } = $.ui.resolve(e)
    const vazio = () => abaixo ?? <Caixa flexDirection="column" />
    if (e.props.hasSurvey || (await read($, oculto))) return vazio()
    const agora = await $.clock.now()
    const todas = vistas(await read($, barras), await read($, faixas), agora, await read($, turno))
    if (todas.length === 0) return vazio()

    // Passou do limite: saem primeiro as barras mais novas do demo, depois as mais velhas; sem demo, é o slice(-4) de
    // sempre. Assim o demo nunca empurra para fora uma barra de trabalho real.
    const candidatas = [...todas.filter(vista => demonstracao(vista.id)).reverse(), ...todas.filter(vista => !demonstracao(vista.id))]
    const fora = new Set(candidatas.slice(0, Math.max(0, todas.length - MAX_VISTAS)))
    const mostradas = todas.filter(vista => !fora.has(vista))
    const colunas = e.props.bodyColumns
    const escondidas =
      todas.length > mostradas.length ? `+${todas.length - mostradas.length} barras · /progresso painel mostra todas` : ''
    // Só o percentual à direita de cada barra, numa coluna fixa ("100%" cabe), clicável: abre o painel. A contagem
    // X/Y fica no painel e no resultado da ferramenta.
    // A coluna do % tem 4 colunas ("100%"), alinhada à direita: o fim dela é trilha + vão + 4 colunas, a mesma conta
    // em colunas da linha da faixa (ícone 16 px + vão + número de 2 + vão + faixa), e as duas acabam juntas.
    const percentualDe = (vista: (typeof mostradas)[number]) =>
      automatica(vista)
        ? []
        : [
            <Caixa key={`pct:${vista.id}`} width={4} flexShrink={0} justifyContent="flex-end">
              <Button
                key={`painel:${vista.id}`}
                label={`${String(percentual(vista)).padStart(3, ESPACO_DE_DIGITO)}%`}
                plain
                onPress={() => abrirPainelProgresso($)}
              />
            </Caixa>,
          ]
    // O número da faixa abre a conversa do agente: Button apagado que acende sob o ponteiro.
    const numeroDaFaixa = (id: string, rotulo: string, linha: (typeof mostradas)[number]['linhas'][number] | undefined) =>
      linha && !linha.comando ? (
        <Button key={`abrir:${id}`} label={rotulo} plain dimColor hover={{ dimColor: false }} onPress={() => abrirAgente($, linha.id, linha.titulo)} />
      ) : (
        <Texto key={`numero:${id}`} dimColor>
          {rotulo}
        </Texto>
      )

    if (e.surface === 'desktop') {
      const { Box, Svg, Text } = $.ui.resolve(e)
      // A trilha vai até um vão de 8 px antes da coluna do percentual (32 px, cabe "100%"); as faixas vão até o fim
      // dessa coluna. À esquerda delas, o ícone (16), o número (24, 3 colunas) e dois vãos de 8: a faixa tem a trilha menos 16.
      // Tudo em múltiplos de 8, a célula em que o app desenha a imagem.
      const trilha = naGrade(Math.max(120, larguraUtil(colunas) - VAO - COLUNA_PCT))
      const total = trilha + VAO + COLUNA_PCT
      const larguraFaixa = total - 16 - VAO - 24 - VAO
      const linhaCheia = { flexDirection: 'row', alignItems: 'center', columnGap: 1 } as const

      return (
        <Box flexDirection="column" gap={1}>
          {!!escondidas && <Text dimColor>{escondidas}</Text>}
          {mostradas.flatMap((vista, i) => {
            const debaixo = svgDasFaixas(vista, larguraFaixa, agora, false)
            // Grupo automático: sem trilha vazia a 0%, só o rótulo, a contagem e as faixas.
            let desenho
            if (automatica(vista)) {
              const rotulo = svgDoRotulo(vista, trilha)
              desenho = <Svg key={`rotulo:${vista.id}`} source={rotulo.source} alt={rotulo.alt} width={trilha} height={rotulo.altura} />
            } else {
              const trilhaSvg = svgDaTrilha(vista, trilha, agora)
              if (trilhaSvg.desliza) assentar($, agora)
              desenho = <Svg key={`trilha:${vista.id}`} source={trilhaSvg.source} alt={trilhaSvg.alt} width={trilha} height={ALT_TRILHA} />
            }

            return [
              ...(i > 0 ? [<Svg key={`fio:${vista.id}`} source={svgDoDivisor(total)} alt="divisor" width={total} height={1} />] : []),
              <Box key={`barra:${vista.id}`} flexDirection="column">
                <Box {...linhaCheia}>
                  {desenho}
                  {percentualDe(vista)}
                </Box>
                {debaixo.map(faixa => {
                  const linha = vista.linhas.find(item => item.id === faixa.key)
                  const alt = linha && !linha.comando ? `${faixa.alt}; o número ${faixa.rotulo} abre a conversa` : faixa.alt

                  return (
                    <Box key={`linha:${vista.id}:${faixa.key}`} {...linhaCheia}>
                      {/* alt não vazio: com alt "" o app não desenha o Svg (o ícone sumia da calha ao vivo). */}
                      <Svg key={`icone:${vista.id}:${faixa.key}`} source={faixa.icone} alt={linha?.comando ? 'comando' : 'agente'} width={16} height={faixa.altura} />
                      {/* Coluna fixa de 3 colunas: o botão nativo do desktop tem respiro interno e cortava o "2" com 2 colunas. */}
                      <Box key={`numero:${vista.id}:${faixa.key}`} width={3} flexShrink={0}>
                        {numeroDaFaixa(faixa.key, faixa.rotulo, linha)}
                      </Box>
                      <Svg key={`faixa:${vista.id}:${faixa.key}`} source={faixa.source} alt={alt} width={larguraFaixa} height={faixa.altura} />
                    </Box>
                  )
                })}
              </Box>,
            ]
          })}
          {abaixo}
        </Box>
      )
    }

    const { Box, Text } = $.ui.resolve(e)
    const larguraTitulo = Math.max(8, Math.min(28, Math.floor(colunas * 0.24)))
    const larguraTrilho = Math.max(6, Math.min(20, Math.floor(colunas * 0.16)))
    // Ícone, contagem, percentual e os vãos entre eles ocupam umas 20 colunas.
    const larguraRotulo = Math.max(6, colunas - larguraTitulo - larguraTrilho - 20)

    return (
      <Box flexDirection="column">
        {!!escondidas && <Text dimColor>{escondidas}</Text>}
        {mostradas.map(vista => {
          const cheio = Math.round((larguraTrilho * percentual(vista)) / 100)

          return (
            <Box flexDirection="column">
              {automatica(vista) ? (
                <Box flexDirection="row" gap={1}>
                  <Text dimColor>{vista.titulo}</Text>
                  <Text dimColor>{cortar(vista.rotulo, larguraRotulo)}</Text>
                </Box>
              ) : (
                <Box flexDirection="row" gap={1}>
                  <Text>
                    <Text color={COR_TERMINAL[vista.tom]}>{'━'.repeat(cheio)}</Text>
                    <Text dimColor>{'─'.repeat(larguraTrilho - cheio)}</Text>
                  </Text>
                  <Text color={COR_TERMINAL[vista.tom]}>{ICONE[vista.tom]}</Text>
                  <Text bold>{cortar(vista.titulo, larguraTitulo)}</Text>
                  <Text color={COR_TERMINAL[vista.tom]}>{cortar(vista.rotulo, larguraRotulo)}</Text>
                  {percentualDe(vista)}
                </Box>
              )}
              {vista.linhas.map((linha, i) => {
                const desenho = linha.comando ? 'terminal' : desenhoDoTipo(linha.tipo)

                return (
                  <Box key={`linha:${vista.id}:${linha.id}`} flexDirection="row" gap={1}>
                    <Text dimColor>{i === vista.linhas.length - 1 && !vista.resumo ? '  └' : '  ├'}</Text>
                    <Text dimColor>{glifoDe(desenho)}</Text>
                    {numeroDaFaixa(linha.id, String(linha.numero), linha)}
                    <Text color={COR_TERMINAL[linha.tom]}>{ICONE[linha.tom]}</Text>
                    <Text dimColor={linha.tom !== 'andamento' && linha.tom !== 'esperando'}>
                      {cortar(linha.comando ? `$ ${linha.titulo}` : linha.titulo, Math.max(10, Math.floor(colunas * 0.4)))}
                    </Text>
                    {!!linha.meta && <Text dimColor>{linha.meta}</Text>}
                    {!!linha.selo && <Text color={COR_TERMINAL[linha.tom]}>{linha.selo}</Text>}
                    <Text dimColor>{linha.relogio}</Text>
                  </Box>
                )
              })}
              {!!vista.resumo && <Text dimColor>{`  └ ${vista.resumo}`}</Text>}
            </Box>
          )
        })}
        {abaixo}
      </Box>
    )
  })
plugins/progresso/hooks/register.tsx lines 1112–1202 · Pane
  on('ui.render', { component: 'Pane', requestId: PAINEL }, async ($, e, next) => {
    if (e.surface !== 'desktop' && e.surface !== 'terminal') return next(e)
    const { Box, Button, Input, Markdown, Text } = $.ui.resolve(e)
    const Svg = e.surface === 'desktop' ? $.ui.resolve(e).Svg : undefined
    const estado = await read($, painel)
    const agora = await $.clock.now()
    const lista = await read($, faixas)
    const fechar = async () => {
      // O fechar do próprio mod não passa pelo hook de ui.close dele: o estado do painel sai aqui.
      await $.ui.close({ id: PAINEL })
      await fecharPainel($, true)
    }

    if (estado.agente === null) {
      const todas = await read($, barras)
      const barra = barraEmFoco(todas, await read($, turno))
      const { concluidos, recolhido, passosAbertos } = await read($, janela)

      return desenharPainel(
        { Box, Text, Button, Svg },
        {
          agora,
          colunas: e.props.bodyColumns,
          barra,
          resumo: barra && resumoDaBarra(barra, lista, agora),
          agentes: lista.filter(faixa => faixa.tipo === 'agente'),
          comandos: lista.filter(faixa => faixa.tipo === 'comando'),
          planejados: planejadosDe(barra),
          perfil: perfilDe,
          concluidosAbertos: concluidos !== false,
          recolhido: recolhido === true,
          passosAbertos: passosAbertos === true,
        },
        {
          abrirAgente: (id, titulo) => abrirAgente($, id, titulo),
          alternarConcluidos: () => update($, janela, atual => ({ ...atual, concluidos: atual.concluidos === false })),
          alternarRecolhido: () => update($, janela, atual => ({ ...atual, recolhido: atual.recolhido !== true })),
          alternarPassos: () => update($, janela, atual => ({ ...atual, passosAbertos: atual.passosAbertos !== true })),
          fechar,
        },
      )
    }

    // Sem faixa ativa o agente terminou, e o envio o retoma do transcript.
    const rodando = lista.some(faixa => faixa.id === estado.agente && faixa.fim === null)
    const vista = vistas(await read($, barras), lista, agora, await read($, turno)).find(item => item.linhas.some(linha => linha.id === estado.agente))
    const linha = vista?.linhas.find(item => item.id === estado.agente)
    // No terminal o glifo do tipo do agente vem antes do título; no desktop o ícone de linha está na faixa desenhada.
    const tipoDoAberto = lista.find(faixa => faixa.id === estado.agente)?.tipoAgente ?? ''
    let topo = (
      <Box key="topo" flexDirection="row" columnGap={1}>
        <Text dimColor>{glifoDe(desenhoDoTipo(tipoDoAberto))}</Text>
        <Text bold>{estado.titulo}</Text>
      </Box>
    )
    if (Svg && vista && linha) {
      const largura = Math.max(240, e.props.bodyColumns * 8)
      // Id próprio: a faixa do painel tem outra largura e não disputa o desenho guardado com a da banda.
      const faixa = svgDasFaixas({ ...vista, id: `painel:${vista.id}`, linhas: [linha], ocultas: 0 }, largura, agora)[0]
      if (faixa) topo = <Svg key="topo" source={faixa.source} alt={faixa.alt} width={largura} height={faixa.altura} />
    }

    return (
      <Box flexDirection="column" gap={1}>
        <Button key="voltar" label="← voltar" plain onPress={() => voltar($)} />
        {topo}
        {!!estado.aviso && <Text key="aviso" dimColor>{estado.aviso}</Text>}
        {!estado.aviso && estado.falas.length === 0 && <Text dimColor>O agente ainda não escreveu nada.</Text>}
        {estado.falas.map(fala =>
          fala.quem === 'ferramenta' ? (
            <Text dimColor>{`› ${fala.texto}`}</Text>
          ) : (
            <Box flexDirection="column">
              <Text dimColor={fala.quem !== 'voce'} bold={fala.quem === 'voce'}>
                {QUEM[fala.quem]}
              </Text>
              {fala.quem === 'agente' ? <Markdown text={fala.texto} /> : <Text>{fala.texto}</Text>}
            </Box>
          ),
        )}
        <Input
          key="msg"
          placeholder={rodando ? 'Mensagem para o agente' : 'Agente terminado: enviar retoma o agente'}
          submitLabel="enviar"
          autoFocus
          onSubmit={texto => enviarAoAgente($, texto)}
        />
        <Button key="fechar-painel" role="dismiss" label="Fechar" onPress={fechar} />
      </Box>
    )
  })
plugins/progresso/hooks/painel.tsx lines 104–263 · Pane
export function desenharPainel(els: Elementos, dados: DadosDoPainel, acoes: AcoesDoPainel): RenderElement {
  const { Box, Text, Button, Svg } = els
  const { agora, colunas, barra, resumo } = dados
  const larguraTexto = Math.max(16, colunas - MASCOTE_COLUNAS)
  // A coluna de texto começa depois do mascote e do vão de uma coluna (~8 px) e vai até a borda das divisórias.
  // No desktop o painel ganha 8 px de cada lado além do respiro do host (16): 24 px da borda, como na referência.
  const margem = Svg ? 1 : 0
  const util = px(colunas) - margem * 16
  const larguraBarraPx = Math.max(60, util - MASCOTE_CAIXA - 8)

  const fio = (chave: string) =>
    Svg ? (
      <Svg key={chave} source={svgDoFio(util, FIO_PX)} alt="divisória" width={util} height={FIO_PX} />
    ) : (
      <Text key={chave} dimColor>{'─'.repeat(Math.max(8, colunas))}</Text>
    )
  // Vão transparente da grade de 8 px, onde Box não tem medida em px.
  const vao = (chave: string, altura: number) => (Svg ? [<Svg key={chave} source={`<svg xmlns="http://www.w3.org/2000/svg" width="8" height="${altura}"/>`} alt="espaço" width={8} height={altura} />] : [])

  // O ícone de linha do item: no desktop a casa arredondada com o ícone no centro (a antena ou o cursor pisca no que
  // roda, em SMIL num Svg isInteractive); no terminal o glifo do tipo, apagado no planejado.
  const mascote = (item: Item) => {
    if (Svg) {
      return (
        <Svg
          key={`m:${item.chave}`}
          source={svgDoIcone(item.desenho, { variante: item.variante, animado: item.animado, largura: MASCOTE_CAIXA })}
          alt={`ícone ${item.desenho}${item.variante && item.variante !== 'normal' ? ` ${item.variante}` : ''}`}
          width={MASCOTE_CAIXA}
          height={CASA_PX}
          isInteractive={item.animado ? true : undefined}
        />
      )
    }

    return (
      <Box key={`m:${item.chave}`} flexShrink={0} width={2}>
        <Text dimColor={item.variante === 'planejado'} color={item.variante === 'falhou' ? 'error' : undefined}>
          {glifoDe(item.desenho)}
        </Text>
      </Box>
    )
  }

  const barraDoItem = (item: Item) => {
    const b = item.barra
    if (!b) return false
    if (Svg) {
      const brilho = b.tipo === 'fracao' && b.brilho === true
      const source = b.tipo === 'fracao' ? svgBarraCor(b.fracao, b.cor, larguraBarraPx, 4, brilho) : svgBarraIndeterminada(b.cor, larguraBarraPx, 4)
      // O que anda (segmento indeterminado, aceno do mascote) vai num Svg isInteractive: o tipo diz que sem ele o Svg é
      // desenhado "an image", e que o quadro sandboxed é o modo em que a animação roda. A fonte não muda por tique.
      return (
        <Svg
          key={`b:${item.chave}`}
          source={source}
          alt={b.tipo === 'fracao' ? `${Math.round(b.fracao * 100)}%` : 'em andamento'}
          width={larguraBarraPx}
          height={4}
          isInteractive={b.tipo === 'indeterminada' || brilho ? true : undefined}
        />
      )
    }
    const total = Math.max(6, larguraTexto - 1)
    if (b.tipo === 'fracao') {
      const cheio = Math.round(total * Math.max(0, Math.min(1, b.fracao)))
      return (
        <Text key={`b:${item.chave}`}>
          <Text color={b.corTerminal}>{'━'.repeat(cheio)}</Text>
          <Text dimColor>{'─'.repeat(total - cheio)}</Text>
        </Text>
      )
    }
    // Sem fração: um segmento que anda um passo por tique.
    const seg = Math.max(2, Math.round(total * 0.28))
    const inicio = Math.round((((Math.floor(agora / 1000) % 5) + 1) * (total + seg)) / 6) - seg
    const de = Math.max(0, inicio)
    const ate = Math.min(total, inicio + seg)
    return (
      <Text key={`b:${item.chave}`}>
        <Text dimColor>{'─'.repeat(de)}</Text>
        <Text color={b.corTerminal}>{'━'.repeat(Math.max(0, ate - de))}</Text>
        <Text dimColor>{'─'.repeat(total - Math.max(de, ate))}</Text>
      </Text>
    )
  }

  // A situação e os números: no desktop um Svg da largura da barra, com os números tabulares encostados na ponta dela;
  // no terminal, texto nas duas pontas da linha.
  const metricaDoItem = (item: Item) => {
    if (!item.esquerda && !item.direita && !item.tempo) return false
    const tempo = item.tempo ? relogio((item.tempo.fim ?? agora) - item.tempo.inicio) : ''
    if (Svg) {
      const m = svgDaMetrica(item.chave, item.esquerda ?? { texto: '' }, item.direita ?? '', item.tempo ?? { inicio: agora, fim: agora }, larguraBarraPx, agora)
      return <Svg key={`n:${item.chave}`} source={m.source} alt={m.alt} width={larguraBarraPx} height={m.altura} />
    }
    const direita = [item.direita, tempo].filter(Boolean).join(' ')

    return (
      <Box flexDirection="row" justifyContent="space-between" columnGap={1}>
        <Text color={item.esquerda?.cor} dimColor={item.esquerda?.apagado} wrap="truncate-end">
          {item.esquerda?.texto ?? ''}
        </Text>
        {!!direita && <Text dimColor>{direita}</Text>}
      </Box>
    )
  }

  const linhaDoItem = (item: Item) => (
    <Box key={`item:${item.chave}`} flexDirection="row" columnGap={1} alignItems="flex-start">
      {mascote(item)}
      <Box flexDirection="column" flexGrow={1}>
        <Box flexDirection="row" justifyContent="space-between" alignItems="center" columnGap={1}>
          {/* O título do agente é o botão que abre a conversa: na API só Button tem onPress (Box e Svg não têm) e
              Button não tem negrito, então ele fica em peso normal; os títulos que não abrem nada vão em negrito. */}
          <Box flexDirection="row" flexGrow={1}>
            {item.abrir ? (
              <Button key={`card:${item.chave}`} label={cortar(item.titulo, Math.max(10, larguraTexto - 3))} plain onPress={() => item.abrir?.()} />
            ) : (
              <Text bold wrap="truncate-end">{cortar(item.titulo, Math.max(10, larguraTexto - 3))}</Text>
            )}
          </Box>
          {Svg ? (
            <Svg
              key={`e:${item.chave}`}
              source={svgDoEstado(item.icone.svg).source}
              alt={item.icone.nome}
              width={16}
              height={16}
              isInteractive={svgDoEstado(item.icone.svg).anima ? true : undefined}
            />
          ) : (
            <Text color={item.icone.cor}>{item.icone.glifo}</Text>
          )}
        </Box>
        {item.linha2}
        {metricaDoItem(item)}
        {barraDoItem(item)}
      </Box>
    </Box>
  )

  const nivelEModelo = (tipo: string, modelo: string, esforco: string, apagado = false) => {
    const nivel = nivelDe(tipo)
    const perfil = dados.perfil(tipo)
    const meta = [modelo || perfil?.modelo || '', esforco || perfil?.esforco || ''].filter(Boolean).join(' · ')

    return (
      <Text>
        <Text color={nivel.cor} dimColor={apagado}>{nivel.rotulo}</Text>
        {!!meta && <Text dimColor>{` ${comMaiuscula(meta)}`}</Text>}
      </Text>
    )
  }

  const numerosDe = (faixa: Faixa) => {
    const pct = faixa.janela > 0 && faixa.ctx > 0 ? Math.max(1, Math.round((faixa.ctx / faixa.janela) * 100)) : null
    const consumo = [pct !== null ? `ctx ${pct}%` : '', faixa.tokens > 0 ? tokensCurtos(faixa.tokens) : ''].filter(Boolean).join(' · ')

    return [consumo, faixa.tokens > 0 && faixa.usd !== null ? usdCurto(faixa.usd) : ''].filter(Boolean).join(' ')
Licence text (MIT)
MIT License

Copyright (c) 2026 Kelvi-Maycon

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

reads filesenv varsdrives Claudetool callsremembers

What its code shows

Read from the source at commit f598c84ee664 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.plugins/progresso/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.6 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.starts no programs
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, files, the transcript, but reaches nothing outside
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 progresso, adds command progresso, adds command progresso-demo, adds command progresso-limpar
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: tool.call (AskUserQuestion, Bash), prompt.submit, classic.PermissionRequest, classic.Stop, session.append, command.run (progresso, progresso-demo, progresso-limpar) · shapes: prompt.compose, tool.describe, turn.step · also: session.start, session.end, turn.start, agent.spawn (+3) · 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: HOME; files: …/.claude/agents, …/…; the transcript
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 Kelvi-Maycon/claude-code-mods
/plugin install progresso@claude-code-mods
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (f598c84ee664). 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/Kelvi-Maycon/claude-code-mods
git -C claude-code-mods checkout f598c84ee6645938fbb5bb8eba48cc94bcca4b50
claude plugin validate claude-code-mods/plugins/progresso
claude --plugin-dir claude-code-mods/plugins/progresso

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 "kelvi-maycon-progresso" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

More from this repository

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/kelvi-maycon-progresso.svg)](https://modscode.com/claude-mods/mods/kelvi-maycon-progresso/)