Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / UsageBreakdown

UsageBreakdown

Shows what uses up your Claude limits: tokens by model, by main chat versus agents, and by project, across every chat on this Mac

Code you can checkTerminal + desktopPaneBoxText
draws, remembers

What it does

  • Draws a pane
  • Adds /usage-breakdown
  • Hooks session.end, session.start, turn.step
  • Keeps its own state between turns

Good points

  • No network calls
  • Starts no processes
  • Written in TypeScript
  • 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 UsageBreakdown by Heuwzen (pane), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/heuwzen-usagebreakdown/
// 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 pane: open it with $.ui.open({ id: 'my-pane', title: "Usage breakdown" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text } = $.ui.resolve(e)
    const title = '…'
    const compact = '…'
    const title2 = '…'
    const label = '…'
    const bar = '…'
    const percent = '…'
    const label2 = '…'
    const bar2 = '…'
    const percent2 = '…'
    const compact2 = '…'
    const label3 = '…'
    const bar3 = '…'
    const percent3 = '…'
    const compact3 = '…'
    const title3 = '…'
    const label4 = '…'
    const bar4 = '…'
    const percent4 = '…'
    const compact4 = '…'
    const label5 = '…'
    const bar5 = '…'
    const percent5 = '…'
    const compact5 = '…'
    const label6 = '…'
    const bar6 = '…'
    const percent6 = '…'
    const compact6 = '…'
    const title4 = '…'
    const label7 = '…'
    const bar7 = '…'
    const percent7 = '…'
    const compact7 = '…'
    const label8 = '…'
    const bar8 = '…'
    const percent8 = '…'
    const compact8 = '…'
    const label9 = '…'
    const bar9 = '…'
    const percent9 = '…'
    const compact9 = '…'
    const title5 = '…'
    const title6 = '…'
    const label10 = '…'
    const bar10 = '…'
    const percent10 = '…'
    const compact10 = '…'
    const label11 = '…'
    const bar11 = '…'
    const percent11 = '…'
    const compact11 = '…'
    const label12 = '…'
    const bar12 = '…'
    const percent12 = '…'
    const compact12 = '…'
    const title7 = '…'
    const label13 = '…'
    const bar13 = '…'
    const percent13 = '…'
    const compact13 = '…'
    const label14 = '…'
    const bar14 = '…'
    const percent14 = '…'
    const compact14 = '…'
    const label15 = '…'
    const bar15 = '…'
    const percent15 = '…'
    const compact15 = '…'
    const title8 = '…'
    const label16 = '…'
    const bar16 = '…'
    const percent16 = '…'
    const compact16 = '…'
    const label17 = '…'
    const bar17 = '…'
    const percent17 = '…'
    const compact17 = '…'
    const label18 = '…'
    const bar18 = '…'
    const percent18 = '…'
    const compact18 = '…'
    const title9 = '…'
    const title10 = '…'
    const label19 = '…'
    const bar19 = '…'
    const percent19 = '…'
    const compact19 = '…'
    const label20 = '…'
    const bar20 = '…'
    const percent20 = '…'
    const compact20 = '…'
    const label21 = '…'
    const bar21 = '…'
    const percent21 = '…'
    const compact21 = '…'
    const title11 = '…'
    const label22 = '…'
    const bar22 = '…'
    const percent22 = '…'
    const compact22 = '…'
    const label23 = '…'
    const bar23 = '…'
    const percent23 = '…'
    const compact23 = '…'
    const label24 = '…'
    const bar24 = '…'
    const percent24 = '…'
    const compact24 = '…'
    const title12 = '…'
    const label25 = '…'
    const bar25 = '…'
    const percent25 = '…'
    const compact25 = '…'
    const label26 = '…'
    const bar26 = '…'
    const percent26 = '…'
    const compact26 = '…'
    const label27 = '…'
    const bar27 = '…'
    const percent27 = '…'
    const compact27 = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="column" marginTop={1}>
          <Box columnGap={1}>
            <Text bold>
              {title}
            </Text>
            <Text dimColor>
              {`${compact} tokens · 0`}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="column" marginTop={1}>
              <Text dimColor>
                {title2}
              </Text>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label2}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar2}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent2}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact2}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label3}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar3}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent3}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact3}
                  </Text>
                </Box>
              </Box>
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text dimColor>
                {title3}
              </Text>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label4}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar4}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent4}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact4}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label5}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar5}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent5}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact5}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label6}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar6}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent6}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact6}
                  </Text>
                </Box>
              </Box>
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text dimColor>
                {title4}
              </Text>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label7}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar7}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent7}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact7}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label8}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar8}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent8}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact8}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label9}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar9}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent9}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact9}
                  </Text>
                </Box>
              </Box>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Box columnGap={1}>
            <Text bold>
              {title5}
            </Text>
            <Text dimColor>
              {`${compact} tokens · 0`}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="column" marginTop={1}>
              <Text dimColor>
                {title6}
              </Text>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label10}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar10}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent10}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact10}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label11}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar11}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent11}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact11}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label12}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar12}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent12}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact12}
                  </Text>
                </Box>
              </Box>
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text dimColor>
                {title7}
              </Text>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label13}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar13}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent13}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact13}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label14}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar14}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent14}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact14}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label15}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar15}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent15}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact15}
                  </Text>
                </Box>
              </Box>
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text dimColor>
                {title8}
              </Text>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label16}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar16}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent16}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact16}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label17}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar17}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent17}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact17}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label18}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar18}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent18}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact18}
                  </Text>
                </Box>
              </Box>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column" marginTop={1}>
          <Box columnGap={1}>
            <Text bold>
              {title9}
            </Text>
            <Text dimColor>
              {`${compact} tokens · 0`}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box flexDirection="column" marginTop={1}>
              <Text dimColor>
                {title10}
              </Text>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label19}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar19}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent19}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact19}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label20}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar20}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent20}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact20}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label21}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar21}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent21}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact21}
                  </Text>
                </Box>
              </Box>
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text dimColor>
                {title11}
              </Text>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label22}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar22}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent22}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact22}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label23}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar23}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent23}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact23}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label24}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar24}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent24}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact24}
                  </Text>
                </Box>
              </Box>
            </Box>
            <Box flexDirection="column" marginTop={1}>
              <Text dimColor>
                {title12}
              </Text>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label25}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar25}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent25}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact25}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label26}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar26}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent26}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact26}
                  </Text>
                </Box>
              </Box>
              <Box columnGap={1}>
                <Box>
                  <Text wrap="truncate-end">
                    {label27}
                  </Text>
                </Box>
                <Box>
                  <Text color="#3987e5">
                    {bar27}
                  </Text>
                </Box>
                <Box width={4} justifyContent="flex-end">
                  <Text>
                    {percent27}
                  </Text>
                </Box>
                <Box width={5} justifyContent="flex-end">
                  <Text dimColor>
                    {compact27}
                  </Text>
                </Box>
              </Box>
            </Box>
          </Box>
        </Box>
        <Box marginTop={1}>
          <Text dimColor>
            Shares of tokens, not of your limits: Opus uses more of your limits per token than Sonnet. Cache reads are left out.
          </Text>
        </Box>
      </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.

usage-breakdown/hooks/register.tsx lines 364–378 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const { Box, Text } = $.ui.resolve(e)
    let report = await read($, reportAtom)

    if (report.at === 0) {
      try {
        await refresh($)
        report = await read($, reportAtom)
      } catch {
        // Falls through to the empty state.
      }
    }

    return <PaneView elements={{ Box, Text }} report={report} columns={e.props.bodyColumns} />
  })
usage-breakdown/hooks/register.tsx lines 282–307 · Pane
function PaneView({ elements, report, columns }: PaneProps) {
  const { Box, Text } = elements

  if (isEmpty(report)) {
    return (
      <Box>
        <Text dimColor>{EMPTY}</Text>
      </Box>
    )
  }

  // One layout for every group, so the columns line up down the pane.
  const labels = report.sections.flatMap(section => [...section.models, ...section.sources, ...section.projects])
  const layout = layoutOf(columns, Math.max(...labels.map(row => row.label.length)))

  return (
    <Box flexDirection="column">
      {report.sections.map(section => (
        <SectionView elements={elements} section={section} layout={layout} />
      ))}
      <Box marginTop={1}>
        <Text dimColor>{FOOTNOTE}</Text>
      </Box>
    </Box>
  )
}
usage-breakdown/hooks/register.tsx lines 257–278 · Pane
function SectionView({ elements, section, layout }: SectionProps) {
  const { Box, Text } = elements
  const requests = `${section.requests} request${section.requests === 1 ? '' : 's'}`

  return (
    <Box flexDirection="column" marginTop={1}>
      <Box columnGap={1}>
        <Text bold>{section.title}</Text>
        <Text dimColor>{`${compact(section.tokens)} tokens · ${requests}`}</Text>
      </Box>
      {section.tokens === 0 ? (
        <Text dimColor>Nothing in this window.</Text>
      ) : (
        <Box flexDirection="column">
          <Group elements={elements} title="By model" rows={section.models} layout={layout} />
          <Group elements={elements} title="By source" rows={section.sources} layout={layout} />
          <Group elements={elements} title="By project" rows={section.projects} layout={layout} />
        </Box>
      )}
    </Box>
  )
}
usage-breakdown/hooks/register.tsx lines 242–253 · Pane
function Group({ elements, title, rows, layout }: GroupProps) {
  const { Box, Text } = elements

  return (
    <Box flexDirection="column" marginTop={1}>
      <Text dimColor>{title}</Text>
      {rows.map(row => (
        <BarRow elements={elements} row={row} layout={layout} />
      ))}
    </Box>
  )
}
usage-breakdown/hooks/register.tsx lines 219–238 · Pane
function BarRow({ elements, row, layout }: RowProps) {
  const { Box, Text } = elements

  return (
    <Box columnGap={1}>
      <Box width={layout.label}>
        <Text wrap="truncate-end">{row.label}</Text>
      </Box>
      <Box width={layout.bar}>
        <Text color={BAR_COLOR}>{bar(row.share, layout.bar)}</Text>
      </Box>
      <Box width={widths.percent} justifyContent="flex-end">
        <Text>{percent(row.share)}</Text>
      </Box>
      <Box width={widths.tokens} justifyContent="flex-end">
        <Text dimColor>{compact(row.tokens)}</Text>
      </Box>
    </Box>
  )
}
Licence text (MIT)
MIT License

Copyright (c) 2026 Heuwzen

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), Add a slash command

What its code calls

remembers

What its code shows

Read from the source at commit 6bdfa0fcfed2 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.usage-breakdown/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, 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.its repository's .claude-plugin/marketplace.json does not list it: no marketplace line to give; the page shows how to try the commit read
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).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 command usage-breakdown
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: command.run (usage-breakdown) · shapes: turn.step · also: session.start, session.end, ui.render (Pane) · 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.reads no files, environment variables, settings or 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.

Its repository's .claude-plugin/marketplace.json does not list it, so there is no marketplace line to give.

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/Heuwzen/claude-runway
git -C claude-runway checkout 6bdfa0fcfed2c1064e21f33c7d948a6bfff9c17d
claude plugin validate claude-runway/usage-breakdown
claude --plugin-dir claude-runway/usage-breakdown

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