Borrowing it
Nothing to install: this file belongs to fschmutz/claude-usage-panel. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/fschmutz/claude-usage-panel/main/CLAUDE.mdgit clone --depth 1 https://github.com/fschmutz/claude-usage-panelWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/fschmutz/claude-usage-panel/claude-md)<a href="https://agentmods.dev/instructions/fschmutz/claude-usage-panel/claude-md"><img src="https://agentmods.dev/badge/instructions/fschmutz/claude-usage-panel/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/fschmutz/claude-usage-panel/claude-md"><img src="https://agentmods.dev/badge/instructions/fschmutz/claude-usage-panel/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.09116 | $0.09116 |
| Opus 5.5 | $0.03646 | $0.03646 |
| Sonnet 5.5 | $0.01823 | $0.01823 |
| Haiku 4.5 | $0.00912 | $0.00912 |
Grade D, and why
claude-usage-panel CLAUDE.md scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
# curl -fsSL https://fschmutz.github.io/claude-usage-panel/install | bash [-s -- target…]) Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
./install.sh statusline # status line → merges into ~/.claude/settings.json Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
# curl -fsSL https://fschmutz.github.io/claude-usage-panel/install | bash [-s -- target…]) How it starts
The opening of the file, as written. The whole thing — 528 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What this is
Four native clients that surface Claude Code plan-usage limits from the official
Anthropic usage endpoint: a GNOME Shell extension, a macOS SwiftUI menu-bar
app, a Node status line for under the Claude Code prompt, and an MCP
server (mcp/server.js) exposing a get_usage tool to Claude Code / Cursor
(installable as a Claude Code plugin from .claude-plugin/marketplace.json +
plugin/, or via npx -y github:fschmutz/claude-usage-panel - package.json has
a bin entry). All read a locally-stored OAuth token read-only and render the
same limits[] data. An optional Cursor team-spend section is available in the
two desktop clients. linux/usage-bar.mjs is a one-line printer for
waybar/tmux/polybar (no install target), and the macOS app also ships as a
Homebrew cask (Casks/claude-usage-panel.rb is the unpinned template;
release.yml pins and publishes it via scripts/make-cask.sh /
publish-cask.sh).
Commands
# JS unit tests (GNOME lib + status line) - the primary test gate
npm test # node --test tests/*.test.js
node --test tests/pure.test.js # single file
node --test --test-name-pattern="sparkline" tests/pure.test.js # single test
# Swift core unit tests (runs on Linux CI too - no macOS needed)
cd macos && swift test
# Lint / format everything (same set runs in CI on every push, as the `lint` job)
pre-commit run --all-files
pre-commit run eslint --all-files # single hook
pre-commit run zizmor --all-files # workflow security audit (actionlint = validity)
scripts/knip.sh # unused files/exports/deps (pinned knip, knip.jsonc); also a pre-commit hook
# Dependency freshness + advisories (network; the CI `deps` job, weekly too)
node scripts/check-deps.mjs # both
node scripts/check-deps.mjs freshness # every pin vs upstream; exceptions in .github/dependency-holds
node scripts/check-deps.mjs audit # OSV for direct pins + npm audit of every .github/<tool> tree
# Install - one unified entrypoint for all clients (also reachable with
# curl -fsSL https://fschmutz.github.io/claude-usage-panel/install | bash [-s -- target…])
./install.sh # auto-detect OS → install the sensible set
./install.sh gnome # GNOME extension only → then log out/in (Wayland)
./install.sh statusline # status line → merges into ~/.claude/settings.json
./install.sh mcp # MCP server → claude mcp add + ~/.cursor/mcp.json
./install.sh cli # claudectl: `account` (named logins) + `session` (snapshot/reopen as tabs) + `codex` (Codex logins) + 30-min autosave
./install.sh macos # build macos/ClaudeUsagePanel.app
./install.sh autoupdate # schedule the daily update check (systemd timer / launchd / cron)
./install.sh sessionping 05:30 10:35 --days=mon-fri # scheduled claude pings that open the 5h session window (opt-in)
./install.sh cost # pinned ccusage (.github/ccusage, Dependabot) + cost line on (opt-in)
./install.sh waiting # Claude Code hooks for "Waiting on you" + the panel section on (opt-in: node per tool call)
./install.sh pause # Claude Code hooks for `claudectl session pause|resume` (opt-in: asyncRewake waiter + node per tool call)
./install.sh update [target...] # reinstall installed targets (upgrade); --pull to git pull first
./install.sh --uninstall [target...] # reverse it (default: all installed) | --list (detected + installed) | -h
./install.sh --dry-run [target...] # print actions without touching anything
# Screenshots are GENERATED - after any UI-visible contract change:
node scripts/screenshots/render.mjs # rewrites docs/screenshot.svg + og.svg
node scripts/screenshots/render.mjs --check # what CI runs; exits 1 on drift
# GNOME i18n: after changing any _() string in the extension (needs gettext)
scripts/update-po.sh # regenerate po/*.pot, merge into every .po
scripts/update-po.sh --check # the i18n-catalogs hook / CI
# Release: only on a ci-gate-green commit, batched, on demand (PUBLISHING.md)
scripts/release.sh --dry-run # the version the commits imply, the guards
scripts/release.sh # bump, commit, push, wait for ci-gate, then tag
# Daily auto-update worker (what the timer runs) - safe to run by hand
./scripts/auto-update.sh --status # installed vs newest released tag, last check
./scripts/auto-update.sh --check # check only; exit 10 = update available
# Session-ping worker (what the sessionping schedule runs) - safe to run by hand
./scripts/session-ping.sh --status # configured times/days, last ping, log path
./scripts/session-ping.sh --force # ping now, whatever the day is
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago Changed · +6 lines · +125 tokens per session 6fa3a215fcff
- 5d ago Changed · +5 lines · +105 tokens per session d3ebd9464625
- 9d ago Changed · +23 lines · +413 tokens per session 2fc1d3a75c15
- 10d ago Changed · +15 tokens per session 0839fe3f8938
- 16d ago Changed · +9 lines · +186 tokens per session ad34ed44e003
- 19d ago Changed · +9 lines · +206 tokens per session 0854321d98e8
- 20d ago Changed · +32 lines · +646 tokens per session 2c009075e33a
- 21d ago Changed · +3 lines · +68 tokens per session 191528841fb1
- 29d ago Changed · +83 lines · +1,542 tokens per session db1200390336
- 1mo ago First seen · 358 lines · 5,810 tokens per session scan D db5b39b5323a
claude-usage-panel CLAUDE.md is an instructions file published in the GitHub repository fschmutz/claude-usage-panel (7 stars, last pushed 2d ago), licensed MIT. It adds 9,116 tokens to every session, about $0.0365 per session on Opus 5.5. A static security scan graded it D with 3 findings (downloads and executes remote code, reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.