Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / detaly

detaly

Detaly: live progress bars above the prompt for long jobs (the chat's background shells and any job that writes ~/.claude/progress/<id>.json), every chat's jobs in tabs, session figures (context, rate limits, tokens, cost)

Code you can checkTerminal + desktopBandBoxButtonClientSvgText
reads files, env vars, draws

What it does

  • Draws a band above the prompt
  • Adds /detaly
  • Watches tool calls and can refuse them
  • Hooks classic.Stop, prompt.submit, session.append, session.end and 5 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 detaly by qr1x55 (band), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/qr1x55-detaly/
// 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, Button, Text, Client } = $.ui.resolve(e)
    const count = '…'
    const value = '…'
    const text = '…'
    const value2 = '…'
    const text2 = '…'
    const value3 = '…'
    const text3 = '…'
    const l = '…'
    const l2 = '…'
    const l3 = '…'
    return (
      <Box flexDirection="column">
        <Box height={2} flexDirection="column">
          <Box flexDirection="row" alignItems="center" gap={1} height={1}>
            <Box flexDirection="row" alignItems="center">
              <Button variant="primary">
                All
                <Text dimColor>
                  {` ${count}`}
                </Text>
              </Button>
              <Box position="absolute" top={1} left={0} flexDirection="row" gap={1} paddingX={1} backgroundColor="#2a2a2a" borderStyle="round" borderColor="#3a3a3a">
                <Button plain label="⟳ Sync" />
                <Button plain label="Clear" />
                <Button plain label="✖ Close" />
              </Box>
            </Box>
            <Box flexDirection="row" alignItems="center">
              <Button variant="primary">
                <Text dimColor>
                  {` ${count}`}
                </Text>
              </Button>
              <Box position="absolute" top={1} left={0} flexDirection="row" gap={1} paddingX={1} backgroundColor="#2a2a2a" borderStyle="round" borderColor="#3a3a3a">
                <Button plain label="⟳ Sync" />
                <Button plain label="Clear" />
                <Button plain label="✖ Close" />
              </Box>
            </Box>
            <Box flexDirection="row" alignItems="center">
              <Button variant="primary">
                <Text dimColor>
                  {` ${count}`}
                </Text>
              </Button>
              <Box position="absolute" top={1} left={0} flexDirection="row" gap={1} paddingX={1} backgroundColor="#2a2a2a" borderStyle="round" borderColor="#3a3a3a">
                <Button plain label="⟳ Sync" />
                <Button plain label="Clear" />
                <Button plain label="✖ Close" />
              </Box>
            </Box>
            <Box flexDirection="row" alignItems="center">
              <Button variant="primary">
                <Text dimColor>
                  {` ${count}`}
                </Text>
              </Button>
              <Box position="absolute" top={1} left={0} flexDirection="row" gap={1} paddingX={1} backgroundColor="#2a2a2a" borderStyle="round" borderColor="#3a3a3a">
                <Button plain label="⟳ Sync" />
                <Button plain label="Clear" />
                <Button plain label="✖ Close" />
              </Box>
            </Box>
            <Box flexDirection="row" alignItems="center">
              <Button variant="primary">
                <Text dimColor>
                  {` ${count}`}
                </Text>
              </Button>
              <Box position="absolute" top={1} left={0} flexDirection="row" gap={1} paddingX={1} backgroundColor="#2a2a2a" borderStyle="round" borderColor="#3a3a3a">
                <Button plain label="⟳ Sync" />
                <Button plain label="Clear" />
                <Button plain label="✖ Close" />
              </Box>
            </Box>
            <Box flexGrow={1} />
            <Box flexDirection="row">
              <Button plain label="ⓘ Info" />
            </Box>
            <Button plain label="▾ Minimize" />
          </Box>
        </Box>
        <Box position="absolute" right={0} width={3}>
          <Client module="./pager.tsx" width={3} />
        </Box>
        <Box position="absolute" top={1} right={0} flexDirection="column" paddingX={1} backgroundColor="#2a2a2a" borderStyle="round" borderColor="#3a3a3a">
          <Box flexDirection="row" alignItems="center" gap={1} flexShrink={1} overflow="hidden">
            <Box flexDirection="row" alignItems="center" gap={1} flexShrink={0}>
              <Text dimColor>
                ·
              </Text>
              <Text>
                {value}
              </Text>
              <Text dimColor>
                {text}
              </Text>
            </Box>
            <Box flexDirection="row" alignItems="center" gap={1} flexShrink={0}>
              <Text dimColor>
                ·
              </Text>
              <Text>
                {value2}
              </Text>
              <Text dimColor>
                {text2}
              </Text>
            </Box>
            <Box flexDirection="row" alignItems="center" gap={1} flexShrink={0}>
              <Text dimColor>
                ·
              </Text>
              <Text>
                {value3}
              </Text>
              <Text dimColor>
                {text3}
              </Text>
            </Box>
          </Box>
          <Text color="#ececec">
            {l}
          </Text>
          <Text color="#ececec">
            {l2}
          </Text>
          <Text color="#ececec">
            {l3}
          </Text>
        </Box>
        {await next(e)}
      </Box>
    )
  })
}

The mod's own code

Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.

hooks/register.tsx lines 699–858 · Band
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    if (e.props.hasSurvey) return next(e)
    const stored = await read($, tabAtom)
    const closed = await read($, closedAtom)
    const scene = demo?.scene
    const isMini = scene ? scene === 'mini' : await read($, miniAtom)
    const tabs = groups.filter(g => g.isSelf || !closed.includes(g.id))
    const self = tabs.find(g => g.isSelf)
    const active = scene
      ? ['all', 'info', 'tools'].includes(scene) ? 'all' : selfId
      : !isMini && (stored === 'all' || tabs.some(g => g.id === stored && !g.isSelf)) ? stored : selfId
    // this chat's tab with nothing in it: the band stays away (/detaly, or a job, brings it); minimized, its top row
    // stays, a strip of the session's figures and ▴ Tabs
    if (!isMini && active === selfId && !self?.rows.length) return next(e)
    const shown = active === 'all' ? tabs.filter(g => g.rows.length > 0) : tabs.filter(g => g.id === active)
    const all = shown.flatMap(g => g.rows)
    const shownSpent = all.find(r => r.spent)?.id
    // A card shown for good, or revealed while hovered (the engine refuses a hover that reveals a card already shown):
    // by its keyed Box, or by a hover group (`scope`) when it sits elsewhere. A card sits after what it covers: a Box
    // drawn later paints over an earlier one, so a card among the rows had the rows under it show through.
    const shownOr = (isShown: boolean, scope?: string) =>
      isShown ? { display: 'flex' as const } : { display: 'none' as const, hover: { display: 'flex' as const, ...(scope ? { scope } : {}) } }
    let shownCut: string | undefined // set once the name column's width is known

    const { Box, Text, Button } = $.ui.resolve(e)
    const ui = $.ui.resolve(e)
    const Client = 'Client' in ui ? ui.Client : undefined // the pages' column, a surface module (desktop, terminal)
    // by the surface: the element table answers any name ('Svg' in it is true on the terminal too)
    const Svg = e.surface === 'desktop' || e.surface === 'mobile' ? $.ui.resolve(e).Svg : undefined
    // Columns: icon, name (under a fifth of the band; one line, the whole on hover), bar (the rest; a counted row's
    // numbers inside it), time (right-aligned, as wide as its longest text, 12 to 24). Every row is two lines tall, or one
    // when they overflow (below).
    const tailW = Math.max(12, Math.min(24, Math.max(0, ...all.map(r => r.tail.length))))
    const nameW = Math.max(12, Math.min(22, Math.floor(e.props.bodyColumns * 0.18)))
    const isCut = (t: string) => (Svg ? namePx(t) > nameW * CELL_PX : t.length > nameW)
    shownCut = all.find(r => isCut(r.title))?.id
    // The header (the tab row and its gap; minimized, ▴ Tabs) and the items under it: as tall as they are, up to the
    // band's rows (and half the screen) less one: a desktop's rows run a few pixels taller than the engine counts
    // (the tabs' native buttons), and a band past its room in pixels scrolls under the wheel. Past the room, pages,
    // their numbers at the right (three cells off the bar). Every row has an explicit height: a desktop counts a margin
    // in cells across (~8 px), not rows (~19 px).
    const head = isMini ? 1 : 2
    const half = e.viewport?.rows ? Math.floor(e.viewport.rows / 2) : 99
    const room = Math.max(2, Math.min(e.props.maxRows || 99, half) - head - 1)
    // A job row is two lines tall, one (a thin bar) when the two-line rows overflow the room. Pages hold at most
    // PAGE_JOBS rows and the room's lines; a page that opens inside a chat's rows repeats its heading (in All), and a
    // heading never ends a page.
    const isAll = active === 'all'
    const thin = shown.reduce((n, g) => n + 2 * g.rows.length + (isAll ? 1 : 0), 0) > room
    const rowH = thin ? 1 : 2
    type Slot = { g: Group; r?: Row } // a chat's heading (no r) or one of its rows
    const pages: Slot[][] = []
    let cur: Slot[] = []
    let used = 0
    let jobs = 0
    for (const g of shown) {
      g.rows.forEach((r, i) => {
        const lead = isAll && (i === 0 || !cur.length) ? 1 : 0 // a heading before a chat's first row, atop a page
        if (cur.length && (used + lead + rowH > room || jobs === PAGE_JOBS)) {
          pages.push(cur)
          cur = []
          used = 0
          jobs = 0
        }
        if (isAll && (i === 0 || !cur.length)) {
          cur.push({ g })
          used += 1
        }
        cur.push({ g, r })
        used += rowH
        jobs++
      })
    }
    if (cur.length) pages.push(cur)
    const hasMore = pages.length > 1
    const barW = Math.max(16, e.props.bodyColumns - ICON_W - nameW - tailW - 2 * 3 - (hasMore ? 3 : 0))
    const px = Math.floor(barW * CELL_PX) - 2
    const icon = (r: Row) => {
      if (!r.isTimer || r.state !== 'run') return <Text color={COLOR[r.state]}>{ICON[r.state]}</Text>
      if (Svg) {
        const alt = r.f === undefined ? 'running' : `${Math.floor(r.f * 100)} %`
        return <Svg source={svgRing(r.f, HEX[r.state])} alt={alt} width={14} height={14} />
      }
      const glyph = r.f === undefined ? '◌' : '○◔◑◕●'[Math.min(4, Math.round(r.f * 4))]
      return <Text color={COLOR[r.state]}>{glyph}</Text>
    }
    // The bar: a running timer's animated wait, or a counted bar with its percent and counts inside it.
    const middle = (r: Row) => {
      const barH = thin ? THIN_H : BAR_H // not 'h': that is the JSX factory
      if (r.isTimer && r.state === 'run') {
        const alt = r.f === undefined ? 'waiting' : `${Math.floor(r.f * 100)} % of the wait`
        if (Svg) return <Svg source={svgWait(px, barH, r.f)} alt={alt} width={px} height={barH + 2 * padOf(barH)} />
        if (r.f !== undefined) return <Text color={COLOR.run} dimColor>{'━'.repeat(Math.floor(r.f * barW)).padEnd(barW, '─')}</Text>
        return <Text color="subtle">{'┄'.repeat(barW)}</Text>
      }
      const f = r.f
      if (f === undefined) return <Text>{''}</Text>
      const pct = `${Math.floor(f * 100)} %`
      const counts = r.isTimer ? '' : r.counts
      if (Svg) {
        const label = r.isTimer ? '' : pct // a finished timer: a plain full bar
        return <Svg source={svgCounted(px, barH, f, r.state, label, counts)} alt={[pct, counts].filter(Boolean).join('  ')} width={px} height={barH + 2 * padOf(barH)} />
      }
      const textW = r.isTimer ? 0 : pct.length + (counts ? counts.length + 2 : 0) + 2 // a space each side
      const label = (
        <Box width={textW} justifyContent="center">
          <Text>
            <Text bold dimColor={r.state === 'done'}>{pct}</Text>
            <Text dimColor>{counts ? `  ${counts}` : ''}</Text>
          </Text>
        </Box>
      )
      const n = Math.floor(f * barW)
      const leftW = Math.max(0, Math.floor((barW - textW) / 2))
      const line = (from: number, len: number) => {
        const k = Math.min(len, Math.max(0, n - from))
        return (
          <Text>
            <Text color={COLOR[r.state]}>{'━'.repeat(k)}</Text>
            <Text color="subtle">{'─'.repeat(len - k)}</Text>
          </Text>
        )
      }
      return (
        <Box flexDirection="row">
          {line(0, leftW)}
          {textW ? label : null}
          {line(leftW + textW, Math.max(0, barW - leftW - textW))}
        </Box>
      )
    }
    // this chat's rows keep their own ids as keys; another chat's are prefixed with it
    const keyOf = (g: Group, r: Row) => (g.isSelf ? r.id : `${g.id}:${r.id}`)
    const rowView = (g: Group, r: Row) => (
      <Box key={keyOf(g, r)} flexDirection="row" alignItems="center" gap={2} height={rowH} {...(r.spent ? { hover: { scope: `ds-${keyOf(g, r)}` } } : {})}>
        {/* hovered (the row's Box is the scope), a ✖ takes the icon's place: the cell clips, and the hidden ✖
            before the icon, as wide as the cell, is revealed and pushes the icon out past the edge. This chat's
            finished row leaves at once, its running one after "stop tracking?"; another chat's is hidden here. */}
        <Box width={ICON_W} flexShrink={0} flexDirection="row" alignItems="center" overflow="hidden">
          <Box width={ICON_W} flexShrink={0} justifyContent="center" display="none" hover={{ display: 'flex' }}>
            {/* a desktop draws its own button, child colours ignored: the label's colour goes through hover */}
            <Button
              key={`x-${keyOf(g, r)}`}
              plain
              label="✖"
              hover={{ color: 'error', bold: true }}
              onPress={() => (g.isSelf && !isOver(r) ? ask($, r.id) : dismiss($, g.id, r.id))}
            />
          </Box>
          <Box width={ICON_W} flexShrink={0} alignItems="center" justifyContent="center">
            {icon(r)}
          </Box>
        </Box>
        {/* hovered, the name lights its group: the whole name in a card at the row's end, over the row */}
        <Box width={nameW} alignItems="center" hover={{ scope: `dn-${keyOf(g, r)}` }}>
          <Text bold dimColor={r.state === 'done'} wrap="truncate-end">
            {r.title}
          </Text>
        </Box>
        <Box width={barW}>
Licence text (MIT)
MIT License

Copyright (c) 2026 qr1x55

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: Band above the prompt, Deny a tool call

What its code calls

reads filesenv varstool callsremembersships servers

What its code shows

Read from the source at commit c70117917f87. 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.2 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).bin/: progress.py, progress_tail.ps1 on the Bash tool's PATH
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 command detaly
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, session.append, classic.Stop, command.run (detaly), prompt.submit · shapes: turn.step · reads: ui.message · also: session.end, session.start, ui.render (AbovePrompt), turn.start (+1) · timers: 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: USERPROFILE, HOME; files: a path computed at run time, …/.claude/progress, …/sessions; 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.env: CLAUDE_JOB_SESSION

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 qr1x55/Detaly-Claude-Mod
/plugin install detaly@detaly
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (c70117917f87). 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/qr1x55/Detaly-Claude-Mod
git -C Detaly-Claude-Mod checkout c70117917f8753bf00078c88bc2d20e9fe2687d1
claude plugin validate Detaly-Claude-Mod
claude --plugin-dir Detaly-Claude-Mod

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 or ChatGPT about it

With ModsCode added as a connector, Claude or ChatGPT can read this mod's code, what it reaches and how its controls are wired, and build on them. Ask it like this:

Read the ModsCode mod "qr1x55-detaly" with its code and make me one like it

Add the ModsCode MCP to Claude or ChatGPT

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