usage

usage is a command for coding agents from AleksandarBisevac/claude-plugins. It costs 38 tokens per session (1,252 once invoked), scanned A, original, MIT.

A read-only command that reports where tokens were spent in an audit pipeline, including phases, tasks, models, authors, time, caching, cost per task, and usage trends.

In plain words
What is it for?
It is for generating a usage report from a manifest, with optional backfilling of missing usage data.
Why use it?
It helps identify expensive phases, poor cache performance, or unexpected model routing without changing the audit data.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the audit plugin — 2 skills, 20 commands, 4 agents, 6 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/aleksandarbisevac/claude-plugins/usage
Clone the repo
git clone --depth 1 https://github.com/AleksandarBisevac/claude-plugins

Or install audit, the plugin that ships this one along with the rest of its 2 skills, 20 commands, 4 agents, 6 hooks.

Wrote 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.

agentmods badge for usage

README.md
[![agentmods](https://agentmods.dev/badge/commands/aleksandarbisevac/claude-plugins/usage.svg)](https://agentmods.dev/commands/aleksandarbisevac/claude-plugins/usage)
Your own site
<a href="https://agentmods.dev/commands/aleksandarbisevac/claude-plugins/usage"><img src="https://agentmods.dev/badge/commands/aleksandarbisevac/claude-plugins/usage.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,252 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00038 $0.01252
Opus 5 $0.00019 $0.00626
Sonnet 5 $0.00008 $0.00250
Haiku 4.5 $0.00004 $0.00125

Measured 4d ago against content hash 598948bdb574, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

usage scanned grade A with 0 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/audit/commands/usage.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/audit:usage — where the tokens went

Run

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/usage/audit-usage.py" <manifestPath> --format md $ARGUMENTS

Print its stdout verbatim. Do NOT re-format, summarize, re-tabulate, or "improve" it — and do NOT wrap it in a code fence. The output is already markdown (pipe tables, bullets); a fence would disable the table rendering it exists for. The script renders its own final output for a reason: a usage tool that spends a pile of tokens laying out its own tables every time you ask what you spent is self-defeating. Reading the numbers back to the user costs roughly as much as the report describes. Just show it. (A user-supplied --format ascii in the arguments wins over the default above — argparse takes the last occurrence; print that verbatim too, fenced.)

The only thing worth adding is a single line of interpretation when something in the output is genuinely notable — a phase that cost several times its peers, a cache hit rate that collapsed, a model routed somewhere it shouldn't be. Otherwise say nothing.

Read-only: this never takes the audit lock and never touches the manifest. The one exception is --backfill, which rewrites the monthly ledger files and takes its own usage.lock.

Arguments

Pass $ARGUMENTS through unchanged. Nothing here needs interpreting on your side.

Flag Effect
--by phase|task|model|author|agent|day|month|hour|session|branch|attr one focused table instead of the dashboard
--phase <id> --task <id> --model <name> --author <who> narrow the rows (--model/--author match on substring)
--area <tag> only spend whose phase carries this area tag (untagged selects spend no area owns)
--attr task|phase|window|unattributed filter by attribution precision
--since 7d|2w|3m|YYYY-MM-DD, --until YYYY-MM-DD bound the window
--top N cap TOP TASKS (default 10)
--no-cost tokens only, no dollar figures
--format md|ascii md (the default above) renders pipe tables for this chat surface; ascii is the fixed-width terminal shape for pipes, logs and CI
--color auto|always|never ANSI color for humans at a real terminal (auto = TTY with NO_COLOR unset; this chat surface is a pipe, so it stays plain; md never colors)
--json machine-readable, for CI
--backfill re-read every transcript and rebuild the ledger

Read the full file on GitHub · 75 lines

Changes

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.

  1. 4d ago First seen · 75 lines · 38 tokens per session scan A 598948bdb574

Subscribe to this mod's changes

usage is a command published in the GitHub repository AleksandarBisevac/claude-plugins (4 stars, last pushed 3d ago), licensed MIT. It adds 38 tokens to every session and 1,252 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.