Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / limits-meter

limits-meter

Plan limits and context above the prompt: model and effort, 5-hour and weekly windows with reset times, context fill, cache hit rate, tokens per turn, and a toast on a costly model switch near the limit

Code you can checkTerminal + desktopPaneBandToastBoxButtonText
env vars, draws

What it does

  • Draws a band above the prompt, a pane, toasts
  • Hooks classic.PostModelSwitch, classic.Stop, session.measure, session.start and 2 more
  • 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 limits-meter by Lucas Fernandes (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/ice-lfernandes-limits-meter/
// Written by ModsCode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
  // the band above the prompt; what else goes there is drawn under it
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const shortModel = '…'
    const gauge = '…'
    const level = '…'
    const label = '…'
    const bar = '…'
    const pct = '…'
    const reset = '…'
    const pct2 = '…'
    const pct3 = '…'
    const pct4 = '…'
    const pct5 = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" flexWrap="wrap" gap={2} paddingX={1}>
          <Text>
            <Text color="claude" bold>
              {shortModel}
            </Text>
            <Text>
              {" "}
            </Text>
            <Text color="warning">
              {`${gauge} `}
            </Text>
            <Text color="warning">
              {level}
            </Text>
          </Text>
          <Text>
            <Text dimColor>
              {`${label} `}
            </Text>
            <Text>
              {`${bar} `}
            </Text>
            <Text bold>
              {pct}
            </Text>
            <Text dimColor>
              {` ↻${reset}`}
            </Text>
          </Text>
          <Text>
            <Text dimColor>
              {`${label} `}
            </Text>
            <Text>
              {`${bar} `}
            </Text>
            <Text bold>
              {pct2}
            </Text>
            <Text dimColor>
              {` ↻${reset}`}
            </Text>
          </Text>
          <Text>
            <Text dimColor>
              {`${label} `}
            </Text>
            <Text>
              {`${bar} `}
            </Text>
            <Text bold>
              {pct3}
            </Text>
            <Text dimColor>
              {` ↻${reset}`}
            </Text>
          </Text>
          <Text>
            <Text dimColor>
              {"ctx "}
            </Text>
            <Text>
              {`${bar} `}
            </Text>
            <Text bold>
              {pct4}
            </Text>
          </Text>
          <Text>
            <Text dimColor>
              {"cache "}
            </Text>
            <Text>
              {pct5}
            </Text>
          </Text>
          <Button label="compact" plain color="warning" />
          <Button label="details" plain dimColor />
          <Button label="hide" plain dimColor />
        </Box>
        {await next(e)}
      </Box>
    )
  })

  // the pane: open it with $.ui.open({ id: 'my-pane', title: "Limits & context" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const label = '…'
    const pct = '…'
    const resetsIn = '…'
    const pace = '…'
    const label2 = '…'
    const label3 = '…'
    const ofWindow = '…'
    const contextSpark = '…'
    const trend = '…'
    const shortModel = '…'
    const gauge = '…'
    const level = '…'
    const n = '…'
    const cIn = '…'
    const cOut = '…'
    const cCache = '…'
    const cTime = '…'
    const cModel = '…'
    const length = '…'
    const i = '…'
    const tokens = '…'
    const tokens2 = '…'
    const durationMs = '…'
    const tokens3 = '…'
    const tokens4 = '…'
    const pct2 = '…'
    const tokens5 = '…'
    const tokens6 = '…'
    const pct3 = '…'
    const lead = '…'
    const verb = '…'
    return (
      <Box flexDirection="column" paddingX={1} gap={1}>
        <Text dimColor>
          Figures the engine reports after each turn. Tokens and percent, never money.
        </Text>
        <Box flexDirection="column">
          <Text bold>
            Plan windows
          </Text>
          <Text dimColor>
            No readings: an API key has no plan windows, and a subscription shows them after the first response.
          </Text>
          <Box flexDirection="column">
            <Text>
              <Text dimColor>
                {label}
              </Text>
              <Text>
                ████████░░░░░░░░
              </Text>
              <Text bold>
                {` ${pct}`}
              </Text>
              <Text dimColor>
                {`  ${resetsIn}`}
              </Text>
            </Text>
            <Text color="warning">
              {`      ${pace}`}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text>
              <Text dimColor>
                {label2}
              </Text>
              <Text>
                ████████░░░░░░░░
              </Text>
              <Text bold>
                {` ${pct}`}
              </Text>
              <Text dimColor>
                {`  ${resetsIn}`}
              </Text>
            </Text>
            <Text color="warning">
              {`      ${pace}`}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text>
              <Text dimColor>
                {label3}
              </Text>
              <Text>
                ████████░░░░░░░░
              </Text>
              <Text bold>
                {` ${pct}`}
              </Text>
              <Text dimColor>
                {`  ${resetsIn}`}
              </Text>
            </Text>
            <Text color="warning">
              {`      ${pace}`}
            </Text>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Text bold>
            Context
          </Text>
          <Box flexDirection="row" flexWrap="wrap" gap={2}>
            <Text>
              <Text dimColor>
                {"ctx   "}
              </Text>
              <Text>
                ████████░░░░░░░░
              </Text>
              <Text bold>
                {` ${pct}`}
              </Text>
              <Text dimColor>
                {`  ${ofWindow}`}
              </Text>
            </Text>
            <Button label="compact" plain color="warning" />
          </Box>
          <Text>
            <Text dimColor>
              {"      "}
            </Text>
            <Text>
              {contextSpark}
            </Text>
            <Text dimColor>
              {`  ${trend}`}
            </Text>
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text bold>
            Model
          </Text>
          <Text>
            <Text color="claude" bold>
              {shortModel}
            </Text>
            <Text dimColor>
              {"   effort "}
            </Text>
            <Text color="warning">
              {`${gauge} `}
            </Text>
            <Text color="warning">
              {level}
            </Text>
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text bold>
            Costly switch warning
          </Text>
          <Text dimColor>
            Toast on a switch to a bigger model or effort max with 5h from:
          </Text>
          <Box flexDirection="row" flexWrap="wrap">
            <Box flexDirection="row">
              <Text dimColor>
                {" · "}
              </Text>
              <Text color="claude" bold>
                {`${n}%`}
              </Text>
            </Box>
            <Box flexDirection="row">
              <Text dimColor>
                {" · "}
              </Text>
              <Text color="claude" bold>
                {`${n}%`}
              </Text>
            </Box>
            <Box flexDirection="row">
              <Text dimColor>
                {" · "}
              </Text>
              <Text color="claude" bold>
                {`${n}%`}
              </Text>
            </Box>
          </Box>
          <Text dimColor>
            {"order: haiku < sonnet < opus < fable"}
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text bold>
            Turns (main thread)
          </Text>
          <Text dimColor>
            No finished turns yet.
          </Text>
          <Text dimColor>
            {`    ${cIn}${cOut}${cCache}${cTime}  ${cModel}`}
          </Text>
          <Text>
            <Text dimColor>
              {`#${length}${i}1`}
            </Text>
            <Text color="claude">
              {tokens}
            </Text>
            <Text>
              {tokens2}
            </Text>
            <Text color="warning">
              {pct}
            </Text>
            <Text dimColor>
              {`${durationMs}s  ${shortModel}`}
            </Text>
          </Text>
          <Text>
            <Text dimColor>
              {`#${length}${i}1`}
            </Text>
            <Text color="claude">
              {tokens3}
            </Text>
            <Text>
              {tokens4}
            </Text>
            <Text color="warning">
              {pct2}
            </Text>
            <Text dimColor>
              {`${durationMs}s  ${shortModel}`}
            </Text>
          </Text>
          <Text>
            <Text dimColor>
              {`#${length}${i}1`}
            </Text>
            <Text color="claude">
              {tokens5}
            </Text>
            <Text>
              {tokens6}
            </Text>
            <Text color="warning">
              {pct3}
            </Text>
            <Text dimColor>
              {`${durationMs}s  ${shortModel}`}
            </Text>
          </Text>
        </Box>
        <Box flexDirection="row" flexWrap="wrap" gap={2}>
          <Box flexDirection="row" flexWrap="wrap">
            <Text dimColor>
              {`${lead} · `}
            </Text>
            <Text dimColor>
              {"/limits "}
            </Text>
            <Box flexDirection="row">
              <Text dimColor>
                {" · "}
              </Text>
              <Button plain dimColor label={`${verb}`} />
            </Box>
            <Box flexDirection="row">
              <Text dimColor>
                {" · "}
              </Text>
              <Button plain dimColor label={`${verb}`} />
            </Box>
            <Box flexDirection="row">
              <Text dimColor>
                {" · "}
              </Text>
              <Button plain dimColor label={`${verb}`} />
            </Box>
          </Box>
          <Button role="dismiss" label="Close" />
        </Box>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const failedToRun = '…'
    const warnSet = '…'
    await $.ui.toast(`${failedToRun}`)
    await $.ui.toast(`${warnSet}`)
    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.

limits-meter/hooks/register.tsx lines 309–420 · Band
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    if (e.props.hasSurvey || (await read($, isHidden))) return next(e)
    const s = await read($, snapshot)
    if (s.limits.length === 0 && s.contextPercent === null) return next(e)

    const { Box, Text, Button } = $.ui.resolve(e)
    const w = WORDS[lang]
    const now = await $.clock.now()
    const list = await read($, turns)
    const last = list[list.length - 1]
    const columns = e.props.bodyColumns || e.viewport?.columns || 80
    const width = barWidth(columns)
    const meter = (percent: number) =>
      width > 0 ? <Text color={tone(percent)}>{`${bar(width, percent)} `}</Text> : width === 0 ? <Text color={tone(percent)}>{mini(percent)}</Text> : null
    const id = await read($, model)
    const level = await read($, effort)
    // The model in the accent color; the effort as a five-step gauge and its name, max in warning.
    const setting =
      (id || level !== null) && shows('model') ? (
        <Text key="model">
          {id && <Text color="claude" bold>{shortModel(id)}</Text>}
          {id && level !== null && <Text> </Text>}
          {level !== null && effortView(Text, level)}
        </Text>
      ) : null

    const verbs = [
      ...(needsCompact(s) ? [<Button key="compact" label={w.compact} plain color="warning" onPress={() => fill($, w.compactFill)} />] : []),
      <Button key="details" label={w.details} plain dimColor onPress={() => open($)} />,
      <Button key="hide" label={w.hide} plain dimColor onPress={() => setHidden($, true)} />,
    ]

    if (format === 'compact') {
      // model · effort · ctx 8% · 5h 34% · wk 31%: numbers only, one line.
      const cell = (key: string, name: string, percent: number | null) => (
        <Text key={key}>
          <Text dimColor>{`${name} `}</Text>
          <Text color={tone(percent)} bold>{pct(percent)}</Text>
        </Text>
      )
      const parts = [
        ...(setting ? [setting] : []),
        ...(shows('ctx') ? [cell('ctx', 'ctx', s.contextPercent)] : []),
        ...s.limits.filter(l => shows(CELL_IDS[l.kind] ?? l.kind)).map(l => cell(l.kind, label(l.kind, lang), l.percent)),
      ]
      const line = (
        <Box key="limits-meter" flexDirection="row" flexWrap="wrap" gap={2} paddingX={1}>
          <Text key="numbers">{parts.flatMap((p, i) => (i > 0 ? [<Text key={`sep-${i}`} dimColor> · </Text>, p] : [p]))}</Text>
          {verbs}
        </Box>
      )
      const beneath = await next(e)
      return beneath ? (
        <Box flexDirection="column">
          {line}
          {beneath}
        </Box>
      ) : (
        line
      )
    }

    const band = [
      ...(setting ? [setting] : []),
      ...s.limits
        .filter(l => shows(CELL_IDS[l.kind] ?? l.kind))
        .map(l => {
          const reset = resetIn(l.resetsAt, now, lang)
          return (
            <Text key={l.kind}>
              <Text dimColor>{`${label(l.kind, lang)} `}</Text>
              {meter(l.percent)}
              <Text color={tone(l.percent)} bold>{pct(l.percent)}</Text>
              {reset !== '' && <Text dimColor>{` ↻${reset}`}</Text>}
            </Text>
          )
        }),
      ...(shows('ctx')
        ? [
            <Text key="ctx">
              <Text dimColor>ctx </Text>
              {s.contextPercent !== null && meter(s.contextPercent)}
              <Text color={tone(s.contextPercent)} bold>{pct(s.contextPercent)}</Text>
            </Text>,
          ]
        : []),
      ...(last?.cacheHit != null && shows('cache')
        ? [
            <Text key="cache">
              <Text dimColor>cache </Text>
              <Text>{pct(last.cacheHit * 100)}</Text>
            </Text>,
          ]
        : []),
    ]

    const mine = (
      <Box key="limits-meter" flexDirection="row" flexWrap="wrap" gap={2} paddingX={1}>
        {band}
        {verbs}
      </Box>
    )
    const theirs = await next(e)
    return theirs ? (
      <Box flexDirection="column">
        {mine}
        {theirs}
      </Box>
    ) : (
      mine
    )
  })
limits-meter/hooks/register.tsx lines 148–154 · Band
const effortView = (Text: Elements[keyof Elements]['Text'], level: string | number) => {
  const max = level === 'max'
  return [
    ...(gauge(level) !== '' ? [<Text key="gauge" color={max ? 'warning' : undefined} dimColor={!max}>{`${gauge(level)} `}</Text>] : []),
    <Text key="level" color={max ? 'warning' : undefined} bold={max}>{String(level)}</Text>,
  ]
}
limits-meter/hooks/register.tsx lines 422–544 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const w = WORDS[lang]
    const s = await read($, snapshot)
    const list = await read($, turns)
    const readings = await read($, samples)
    const now = await $.clock.now()
    const columns = Math.max(30, (e.props.bodyColumns || e.viewport?.columns || 80) - 2)
    const width = Math.max(10, Math.min(40, columns - 30))
    const paces = s.limits.map(l => {
      const points = readings[l.kind]
      return l.resetsAt !== null && points && points.resetsAt === l.resetsAt ? pace(points.points, now, l.resetsAt) : null
    })
    const trend = list.filter(t => t.contextPercent != null)
    const top = heaviest(list)
    const id = await read($, model)
    const level = await read($, effort)
    const at = await read($, switchAt)
    const choices = [...new Set([...SWITCH_CHOICES, at])].sort((a, b) => a - b)
    // Rows besides the turns: the hint, three headings, the context row, the table head, the
    // footer, the gaps, a pace line per window that has one and the trend line; then the
    // costly-switch section (heading, hint, choices, order, gap) and the model's (heading, row, gap).
    const fixed = 12 + Math.max(1, s.limits.length) + paces.filter(p => p !== null).length + (trend.length > 1 ? 1 : 0) + 5 + (id || level !== null ? 3 : 0)
    const room = Math.max(3, (e.props.scroll?.bodyRows ?? e.viewport?.rows ?? 30) - fixed)
    const [cIn, cOut, cCache, cTime, cModel] = w.columns

    return (
      <Box flexDirection="column" paddingX={1} gap={1}>
        <Text dimColor>{w.hint}</Text>

        <Box flexDirection="column">
          <Text bold>{w.planWindows}</Text>
          {s.limits.length === 0 && <Text dimColor>{w.noWindows}</Text>}
          {s.limits.map((l, i) => {
            const left = paces[i]
            return (
              <Box key={l.kind} flexDirection="column">
                <Text>
                  <Text dimColor>{label(l.kind, lang).padEnd(6)}</Text>
                  <Text color={tone(l.percent)}>{bar(width, l.percent)}</Text>
                  <Text bold>{` ${pct(l.percent).padStart(4)}`}</Text>
                  <Text dimColor>{l.resetsAt !== null ? `  ${w.resetsIn(resetIn(l.resetsAt, now, lang))}` : ''}</Text>
                </Text>
                {left != null && <Text color="warning">{`      ${w.pace(label(l.kind, lang), resetIn(now + left, now, lang))}`}</Text>}
              </Box>
            )
          })}
        </Box>

        <Box flexDirection="column">
          <Text bold>{w.contextHeading}</Text>
          <Box flexDirection="row" flexWrap="wrap" gap={2}>
            <Text>
              <Text dimColor>{'ctx   '}</Text>
              <Text color={tone(s.contextPercent)}>{bar(width, s.contextPercent ?? 0)}</Text>
              <Text bold>{` ${pct(s.contextPercent).padStart(4)}`}</Text>
              <Text dimColor>{s.contextTokens !== null ? `  ${w.ofWindow(tokens(s.contextTokens), tokens(s.contextWindow))}` : ''}</Text>
            </Text>
            {needsCompact(s) && <Button key="compact" label={w.compact} plain color="warning" onPress={() => fill($, w.compactFill)} />}
          </Box>
          {trend.length > 1 && (
            <Text>
              <Text dimColor>{'      '}</Text>
              <Text color={tone(s.contextPercent)}>{contextSpark(list.slice(-width))}</Text>
              <Text dimColor>{`  ${w.trend(Math.min(list.length, width))}`}</Text>
            </Text>
          )}
        </Box>

        {(id || level !== null) && (
          <Box flexDirection="column">
            <Text bold>{w.modelHeading}</Text>
            <Text>
              {id && <Text color="claude" bold>{shortModel(id)}</Text>}
              {level !== null && <Text dimColor>{`${id ? '   ' : ''}${w.effort} `}</Text>}
              {level !== null && effortView(Text, level)}
            </Text>
          </Box>
        )}

        <Box flexDirection="column">
          <Text bold>{w.warnHeading}</Text>
          <Text dimColor>{w.warnHint}</Text>
          <Box flexDirection="row" flexWrap="wrap">
            {choices.map((n, i) => (
              <Box key={`warn-${n}`} flexDirection="row">
                {i > 0 && <Text dimColor> · </Text>}
                {n === at ? (
                  <Text color="claude" bold>{`${n}%`}</Text>
                ) : (
                  <Button key={`warn:${n}`} plain dimColor label={`${n}%`} onPress={() => setSwitchAt($, n).then(() => $.ui.toast(w.warnSet(n)), () => $.ui.toast(w.failedToRun(`/${COMMAND} warn ${n}`)))} />
                )}
              </Box>
            ))}
          </Box>
          <Text dimColor>{w.warnOrder}</Text>
        </Box>

        <Box flexDirection="column">
          <Text bold>{w.turns}</Text>
          {list.length === 0 && <Text dimColor>{w.noTurns}</Text>}
          {list.length > 0 && <Text dimColor>{`    ${cIn.padStart(8)}${cOut.padStart(8)}${cCache.padStart(7)}${cTime.padStart(7)}  ${cModel}`}</Text>}
          {list.slice(-room).map((t, i, shown) => {
            const isTop = list.length > 1 && t === top
            return (
              <Text key={`turn-${list.length - shown.length + i}`}>
                <Text dimColor>{`#${list.length - shown.length + i + 1}`.padEnd(4)}</Text>
                <Text color={isTop ? 'claude' : undefined} bold={isTop}>{tokens(t.input).padStart(8)}</Text>
                <Text>{tokens(t.output).padStart(8)}</Text>
                <Text color={t.cacheHit !== null && t.cacheHit < 0.5 ? 'warning' : undefined}>{pct(t.cacheHit === null ? null : t.cacheHit * 100).padStart(7)}</Text>
                <Text dimColor>{`${`${Math.round(t.durationMs / 1000)}s`.padStart(7)}  ${shortModel(t.model)}`}</Text>
              </Text>
            )
          })}
        </Box>

        <Box flexDirection="row" flexWrap="wrap" gap={2}>
          {verbRow({ Box, Text, Button }, COMMAND, VERBS, v => pressVerb($, v))}
          <Button key="close" role="dismiss" label={w.close} onPress={() => $.ui.close({ id: PANE })} />
        </Box>
      </Box>
    )
  })
limits-meter/hooks/ui.tsx lines 66–86 · Pane
export function verbRow(
  ui: Pick<Elements[keyof Elements], 'Box' | 'Text' | 'Button'>,
  command: string,
  verbs: readonly Verb[],
  onPress: (v: Verb) => void,
  lead = '',
) {
  const { Box, Text, Button } = ui
  return (
    <Box flexDirection="row" flexWrap="wrap">
      {lead !== '' && <Text dimColor>{`${lead} · `}</Text>}
      <Text dimColor>{`/${command} `}</Text>
      {verbs.map((v, i) => (
        <Box key={`verbrow:${v.verb}`} flexDirection="row">
          {i > 0 && <Text dimColor> · </Text>}
          <Button key={`verb:${v.verb}`} plain dimColor label={v.label ?? v.verb} onPress={() => onPress(v)} />
        </Box>
      ))}
    </Box>
  )
}
Licence text (MIT)
MIT License

Copyright (c) 2026 Lucas Fernandes

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), Keep state with $.store

What its code calls

env varsremembers

What its code shows

Read from the source at commit b03955fc8e5f 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.limits-meter/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.4 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs
Calls in the openNetwork and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open
For you to weigh before installing
Where it drawsThe terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both
Install lineWhether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there
Programs on WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).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, 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 command ?
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: classic.Stop, command.run · shapes: turn.step · reads: classic.PostModelSwitch · also: session.start, session.measure, turn.complete, ui.render (AbovePrompt, Pane)
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: LANG
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.the prompt box

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 ice-lfernandes/claude-code-mods
/plugin install limits-meter@lfernandes-mods
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (b03955fc8e5f). 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/ice-lfernandes/claude-code-mods
git -C claude-code-mods checkout b03955fc8e5f59734e36f58e84c2ab9959e40ce6
claude plugin validate claude-code-mods/limits-meter
claude --plugin-dir claude-code-mods/limits-meter

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 "ice-lfernandes-limits-meter" 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/ice-lfernandes-limits-meter.svg)](https://modscode.com/claude-mods/mods/ice-lfernandes-limits-meter/)