ModsCode / Claude Code Mods / Ranking / cache-bar
cache-bar
Shows prompt cache hit rate and TTL status in Claude Code
What it does
- Draws a band above the prompt, a pane, toasts
- Hooks prompt.context, prompt.section, session.compact, 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)
import type { Register } from 'claude-code'
// Drawn like cache-bar by TsungYing (pane, band, status, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/thetsungying-cache-bar/
// 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, Svg, Text, Button } = $.ui.resolve(e)
const broke = '…'
const rewriteNext = '…'
const context = '…'
const sparklineSvg = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" alignItems="center" gap={1}>
<Svg alt="cache TTL countdown" source="" width={16} height={16} />
<Text dimColor>
…
</Text>
<Text dimColor>
extending…
</Text>
<Button plain dimColor label="Details" />
<Box flexDirection="row" gap={1}>
<Text color="error">
⚠
</Text>
<Box display="none">
<Text color="error">
{`${broke}`}
</Text>
</Box>
</Box>
<Box display="none" flexDirection="row" alignItems="center" gap={1}>
<Text dimColor>
expired
{" · "}
{`${rewriteNext}`}
</Text>
<Text>
<Text dimColor>
hit
{" "}
</Text>
0
</Text>
<Text>
<Text dimColor>
ctx
{" "}
</Text>
{context}
</Text>
<Svg alt="hit rate per request" source={`${sparklineSvg}`} width={72} height={16} />
</Box>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Prompt cache" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Svg, Text, Select } = $.ui.resolve(e)
const rewriteNext = '…'
const ttl = '…'
const context = '…'
const requests = '…'
const breaks = '…'
const extensions = '…'
const formatTokens = '…'
const source = '…'
const breakLine = '…'
const formatCauses = '…'
const formatCauses2 = '…'
const formatCauses3 = '…'
const breakSensitivity = '…'
const idleAt = '…'
const trigger = '…'
const extensionFailed = '…'
const trigger2 = '…'
const trigger3 = '…'
const onExpiring = '…'
const autoExtendMaxPerIdle = '…'
const toast = '…'
const ttlMode = '…'
const ttlNote = '…'
const band = '…'
const language = '…'
return (
<Box flexDirection="column" gap={1}>
<Box flexDirection="row" alignItems="center" gap={2}>
<Svg alt="cache TTL countdown" source="" width={48} height={48} />
<Box flexDirection="column">
<Text dimColor>
expired
{" · "}
{`${rewriteNext}`}
</Text>
<Text dimColor>
{"TTL "}
{ttl}
{" · "}
last hit
{" "}
0
{" · "}
ctx
{" "}
{context}
</Text>
</Box>
<Text dimColor>
extending…
</Text>
</Box>
<Box flexDirection="column">
<Text bold>
This conversation
</Text>
<Text>
<Text>
<Text dimColor>
avg hit
{" "}
</Text>
–
</Text>
{" ·"}
{" "}
<Text>
<Text dimColor>
req
{" "}
</Text>
{requests}
</Text>
{" · "}
<Text>
<Text dimColor>
breaks
{" "}
</Text>
{breaks}
</Text>
{" ·"}
{" "}
<Text>
<Text dimColor>
extended
{" "}
</Text>
{extensions}
</Text>
{" ·"}
{" "}
<Text>
<Text dimColor>
peak ctx
{" "}
</Text>
{formatTokens}
</Text>
</Text>
</Box>
<Box flexDirection="column">
<Text bold>
Per request · token cost
</Text>
<Svg alt="cost of each request in uncached-token equivalents, with its hit rate and idle gaps" source={`${source}`} isInteractive />
<Box flexDirection="row" columnGap={2} rowGap={0} flexWrap="wrap">
<Text>
<Text>
■
</Text>
<Text dimColor>
{" "}
read ×0.1
</Text>
</Text>
<Text>
<Text>
■
</Text>
<Text dimColor>
{" "}
write
</Text>
</Text>
<Text>
<Text>
□
</Text>
<Text dimColor>
{" "}
miss
</Text>
</Text>
<Text>
<Text color="#8F8B83">
▬
</Text>
<Text color="#E0B04A">
▬
</Text>
<Text color="#D97757">
▬
</Text>
<Text dimColor>
{" "}
hit rate
</Text>
</Text>
</Box>
<Box flexDirection="row" columnGap={2} rowGap={0} flexWrap="wrap">
<Text>
<Text>
▬
</Text>
<Text dimColor>
{" "}
break
</Text>
</Text>
<Text>
<Text>
┊
</Text>
<Text dimColor>
{" "}
idle near expiry
</Text>
</Text>
<Text>
<Text>
▲
</Text>
<Text dimColor>
{" "}
extended
</Text>
</Text>
</Box>
</Box>
<Box flexDirection="column" gap={1}>
<Box flexDirection="column">
<Text bold>
Cache breaks
</Text>
<Text dimColor>
none
</Text>
<Box flexDirection="column">
<Text>
<Text color="error">
{"● "}
</Text>
{`${breakLine}`}
</Text>
<Text dimColor>
{" "}
{formatCauses}
</Text>
</Box>
<Box flexDirection="column">
<Text>
<Text color="error">
{"● "}
</Text>
{`${breakLine}`}
</Text>
<Text dimColor>
{" "}
{formatCauses2}
</Text>
</Box>
<Box flexDirection="column">
<Text>
<Text color="error">
{"● "}
</Text>
{`${breakLine}`}
</Text>
<Text dimColor>
{" "}
{formatCauses3}
</Text>
</Box>
<Box marginTop={1}>
<Box flexDirection="column">
<Text dimColor>
Break sensitivity
</Text>
<Select value={`${breakSensitivity}`} />
<Text dimColor>
Higher counts smaller drops as breaks; applies from the next request
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Text bold>
Extensions
</Text>
<Text dimColor>
none
</Text>
<Text>
<Text dimColor>
{`${idleAt}`}
{" · "}
</Text>
{trigger}
{" ·"}
{" "}
<Text color="error">
{`${extensionFailed}`}
</Text>
</Text>
<Text>
<Text dimColor>
{`${idleAt}`}
{" · "}
</Text>
{trigger2}
{" ·"}
{" "}
<Text color="error">
{`${extensionFailed}`}
</Text>
</Text>
<Text>
<Text dimColor>
{`${idleAt}`}
{" · "}
</Text>
{trigger3}
{" ·"}
{" "}
<Text color="error">
{`${extensionFailed}`}
</Text>
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Text bold>
Settings
</Text>
<Box flexDirection="column" gap={1}>
<Box flexDirection="column">
<Text dimColor>
When about to expire
</Text>
<Select value={`${onExpiring}`} />
</Box>
<Box flexDirection="column">
<Text dimColor>
Auto-extend per idle stretch
</Text>
<Select value={`${autoExtendMaxPerIdle}`} />
</Box>
<Box flexDirection="column">
<Text dimColor>
Toast notifications
</Text>
<Select value={`${toast}`} />
</Box>
<Box flexDirection="column">
<Text dimColor>
Cache TTL
</Text>
<Select value={`${ttlMode}`} />
<Text dimColor>
{ttlNote}
</Text>
</Box>
<Box flexDirection="column">
<Text dimColor>
Band above the prompt
</Text>
<Select value={`${band}`} />
</Box>
<Box flexDirection="column">
<Text dimColor>
Break sensitivity
</Text>
<Select value={`${breakSensitivity}`} />
<Text dimColor>
Higher counts smaller drops as breaks; applies from the next request
</Text>
</Box>
<Box flexDirection="column">
<Text dimColor>
Language
</Text>
<Select value={`${language}`} />
</Box>
</Box>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const bandTurnedOff = '…'
const notice = '…'
const hint = '…'
const panel = '…'
await $.ui.toast(`${bandTurnedOff}`)
await $.ui.toast(`${notice} · ${hint}${panel}`)
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/cache-bar/hooks/register.tsx lines 487–617 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (e.surface !== 'desktop' || e.props.hasSurvey) {
return next(e)
}
// Set even when the band is off: the desktop keeps no status line then.
hasBand = true
// Redraw on the stage, not every second: the ring and the clock count down
// by SMIL, and a per-second redraw of the band resets an open Select's
// highlight in the panel too.
await read($, stage)
applyPicks(await read($, overrides))
if (config.band === 'off') {
return next(e)
}
const { Box, Text, Button, Svg } = $.ui.resolve(e)
const now = await $.clock.now()
const list = await read($, samples)
const last = list.at(-1)
const s = strings
const details = (
<Button
key="details"
plain
dimColor
label={s.details}
onPress={() => {
forgetPaneDrawings()
void $.ui.open({ id: PANE, title: s.paneTitle })
}}
/>
)
if (last === undefined) {
return (
<Box key="band" flexDirection="row" alignItems="center" gap={1}>
<Svg key="ring" alt={s.ringAlt} source={idleRingSvg()} width={RING_SIZE} height={RING_SIZE} />
{details}
<Box display="none" hover={{ display: 'flex' }}>
<Text dimColor>{s.waiting}</Text>
</Box>
</Box>
)
}
const breakList = await read($, breaks)
const countdown = countdownOf(list, await read($, extensions), config.ttlMode, await read($, ttl), config, now)
const isExtending = await read($, extending)
if (countdown === null) {
return next(e)
}
const context = formatTokens(contextOf(last))
const isAnswering = e.props.isWorking
const ringKey = isAnswering ? 'working' : `${countdown.anchor}|${countdown.ttl}|${countdown.phase}`
if (ring.key !== ringKey) {
ring = { key: ringKey, source: isAnswering ? pausedRingSvg() : ringSvg(countdown) }
}
const lastBreak = breakList.at(-1)
const didBreak = lastBreak !== undefined && lastBreak.at === last.sentAt
const isExpired = !isAnswering && countdown.phase === 'expired'
const canExtend = !isAnswering && countdown.phase === 'alert' && config.onExpiring !== 'notify'
const clockColor =
countdown.phase === 'warn' ? COLORS.warn : countdown.phase === 'alert' ? COLORS.alert : COLORS.neutral
if (smallClock.key !== ringKey) {
smallClock = { key: ringKey, ...clockSvg(countdown.leftMs, clockColor, CLOCK_SIZE) }
}
return (
<Box key="band" flexDirection="row" alignItems="center" gap={1}>
<Svg key="ring" alt={s.ringAlt} source={ring.source} width={RING_SIZE} height={RING_SIZE} />
{/* Answering: the countdown waits, since each request refreshes the cache. */}
{isAnswering ? (
<Text dimColor>…</Text>
) : isExpired ? null : (
<Svg
key="clock"
alt={formatClock(countdown.leftMs)}
source={smallClock.source}
width={smallClock.width}
height={smallClock.height}
/>
)}
{isExtending ? (
<Text dimColor>{s.extending}</Text>
) : canExtend ? (
<Button key="extend" variant="primary" label={s.extendShort} onPress={() => void extendNow?.('manual')} />
) : null}
{details}
{didBreak ? (
<Box key="break" flexDirection="row" gap={1}>
<Text color={TEXT_ALERT}>⚠</Text>
<Box display="none" hover={{ display: 'flex' }}>
<Text color={TEXT_ALERT}>{s.broke(formatCauses(lastBreak.causes, s))}</Text>
</Box>
</Box>
) : null}
{/* Shown while the pointer is over the band; after the buttons, so it never moves them. */}
<Box display="none" hover={{ display: 'flex' }} flexDirection="row" alignItems="center" gap={1}>
{isExpired ? (
<Text dimColor>
{s.expired} · {s.rewriteNext(context)}
</Text>
) : null}
<Text>
<Text dimColor>{s.hit} </Text>
{formatPercent(hitRateOf(last))}
</Text>
<Text>
<Text dimColor>{s.context} </Text>
{context}
</Text>
{list.length > 1 ? (
<Svg
key="spark"
alt={s.sparkAlt}
source={sparklineSvg(recentHits(list, breakList, SPARK_POINTS))}
width={SPARK_WIDTH}
height={SPARK_HEIGHT}
/>
) : null}
</Box>
</Box>
)
})plugins/cache-bar/hooks/register.tsx lines 630–789 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const ui = $.ui.resolve(e)
const { Box, Text, Button } = ui
const Svg = 'Svg' in ui ? ui.Svg : null
const Select = 'Select' in ui ? ui.Select : null
// Redraw on the stage, not every second: the ring and clock count down by
// SMIL. Without Svg (the terminal) the clock is text, so it reads `now`.
await read($, stage)
applyPicks(await read($, overrides))
const s = strings
if (Svg === null) {
await read($, clock)
}
const now = await $.clock.now()
const list = await read($, samples)
const breakList = await read($, breaks)
const extensionList = await read($, extensions)
const learned = await read($, ttl)
const isExtending = await read($, extending)
const last = list.at(-1)
const countdown = countdownOf(list, extensionList, config.ttlMode, learned, config, now)
const setOption = async (field: QuickSetting, value: string) => {
const failed = await pickOption?.(field, value)
if (failed !== null && failed !== undefined) {
$.ui.toast(failed)
}
}
// How the TTL was settled; it explains the TTL setting, so it sits there.
const ttlNote =
config.ttlMode !== 'auto'
? null
: learned.detected === '1h' && learned.idleMs !== null
? s.ttlLearned('1h', Math.floor(learned.idleMs / 60_000))
: s.ttlAssumed
const title = (text: string) => <Text bold>{text}</Text>
const stat = (label: string, value: string) => (
<Text>
<Text dimColor>{label} </Text>
{value}
</Text>
)
const toastName = (isOn: boolean) => (isOn ? s.toastOptions.on : s.toastOptions.off)
const sensitivitySelect =
Select === null ? null : (
<Box flexDirection="column">
<Text dimColor>{s.breakSensitivityLabel}</Text>
<Select
key="breakSensitivity"
value={config.breakSensitivity}
options={SENSITIVITIES.map(v => ({ value: v, label: s.breakSensitivityOptions[v] }))}
onSelect={value => void setOption('breakSensitivity', value)}
/>
<Text dimColor>{s.breakSensitivityNote}</Text>
</Box>
)
const settings = (withSensitivity: boolean) => (
<Box flexDirection="column">
{title(s.settingsTitle)}
{Select === null ? (
<Text dimColor>
{s.onExpiringLabel}: {s.onExpiringOptions[config.onExpiring]}
{config.onExpiring === 'auto' ? ` (${s.autoExtendTimes(config.autoExtendMaxPerIdle)})` : ''} ·{' '}
{s.toastLabel}: {toastName(config.toast)} · {s.ttlModeLabel}: {s.ttlModeOptions[config.ttlMode]} ·{' '}
{s.bandLabel}: {s.bandOptions[config.band]} · {s.breakSensitivityLabel}:{' '}
{s.breakSensitivityOptions[config.breakSensitivity]} · {s.languageLabel}: {LANGUAGE_NAMES[config.language]}
{ttlNote === null ? '' : `\n${ttlNote}`}
</Text>
) : (
<Box flexDirection="column" gap={1}>
<Box flexDirection="column">
<Text dimColor>{s.onExpiringLabel}</Text>
<Select
key="onExpiring"
value={config.onExpiring}
options={(['notify', 'button', 'auto'] as const).map(v => ({ value: v, label: s.onExpiringOptions[v] }))}
onSelect={value => void setOption('onExpiring', value)}
/>
</Box>
{/* Only automatic extension has a limit to set. */}
{config.onExpiring === 'auto' ? (
<Box flexDirection="column">
<Text dimColor>{s.autoExtendMaxLabel}</Text>
<Select
key="autoExtendMaxPerIdle"
value={String(config.autoExtendMaxPerIdle)}
options={autoExtendSteps(config.autoExtendMaxPerIdle).map(n => ({
value: String(n),
label: s.autoExtendTimes(n),
}))}
onSelect={value => void setOption('autoExtendMaxPerIdle', value)}
/>
</Box>
) : null}
<Box flexDirection="column">
<Text dimColor>{s.toastLabel}</Text>
<Select
key="toast"
value={String(config.toast)}
options={[true, false].map(v => ({ value: String(v), label: toastName(v) }))}
onSelect={value => void setOption('toast', value)}
/>
</Box>
<Box flexDirection="column">
<Text dimColor>{s.ttlModeLabel}</Text>
<Select
key="ttlMode"
value={config.ttlMode}
options={(['auto', '5m', '1h'] as const).map(v => ({ value: v, label: s.ttlModeOptions[v] }))}
onSelect={value => void setOption('ttlMode', value)}
/>
{ttlNote === null ? null : <Text dimColor>{ttlNote}</Text>}
</Box>
<Box flexDirection="column">
<Text dimColor>{s.bandLabel}</Text>
<Select
key="band"
value={config.band}
options={(['compact', 'off'] as const).map(v => ({ value: v, label: s.bandOptions[v] }))}
onSelect={value => void setOption('band', value)}
/>
</Box>
{withSensitivity ? sensitivitySelect : null}
<Box flexDirection="column">
<Text dimColor>{s.languageLabel}</Text>
<Select
key="language"
value={config.language}
options={LANGUAGES.map(v => ({ value: v, label: LANGUAGE_NAMES[v] }))}
onSelect={value => void setOption('language', value)}
/>
</Box>
</Box>
)}
</Box>
)
if (last === undefined || countdown === null) {
return (
<Box flexDirection="column" gap={1}>
<Box flexDirection="row" alignItems="center" gap={2}>
{Svg === null ? null : (
<Svg
key="ring"
alt={s.ringAlt}
source={idleRingSvg(BIG_RING_SIZE)}
width={BIG_RING_SIZE}
height={BIG_RING_SIZE}
/>
)}
<Text dimColor>{s.waiting}</Text>
</Box>
{settings(true)}
</Box>Licence text (MIT)
MIT License Copyright (c) 2026 TsungYing 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
drives Clauderemembers
What its code shows
Read from the source at commit 12c1b78d2c88 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 read | Every module hooks/hooks.json names was read.plugins/cache-bar/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.4 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No 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 open | Network 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 draws | The 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 line | Whether 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 Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks |
| Network | Whether every fetch names its https host in the code.no network |
| Programs | Whether 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 sends | Whether 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 source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An 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 hooks | Hooks 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 ships | MCP 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, agents | What 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 MCP | Whether 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 model | Completions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.adds command ?, model.fork (sends its own transcript) |
| Events it hooks | By 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 · shapes: turn.step, prompt.section, prompt.context, tool.describe · also: session.start, turn.start, turn.complete, session.compact (+3) · timers: clock.every |
| Reads, by name | The 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 name | The 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.settings (config.set) |
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 TheTsungYing/claude-cache-bar/plugin install cache-bar@claude-cache-bar/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (12c1b78d2c88). 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/TheTsungYing/claude-cache-bargit -C claude-cache-bar checkout 12c1b78d2c88665e63189c494e718117d632da8cclaude plugin validate claude-cache-bar/plugins/cache-barclaude --plugin-dir claude-cache-bar/plugins/cache-barThe 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 "thetsungying-cache-bar" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- session-spendSpeakingInBits★ 0
- explain-asSumit Paul★ 20
- agent-discoverkeshrath★ 7
- spending-effort-with-jevYaxin Luo★ 6
- paceAsitha Weerasinghe★ 2
- superpowers-trackernalyk★ 2
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/thetsungying-cache-bar/)