roster-usage

roster-usage is a command for Claude Code from mathiasbourgoin/roster. It costs 24 tokens per session (512 once invoked), scanned A, original, MIT.

A command that creates a local report of recorded tool usage and costs when explicitly requested. It reads selected project files and reports where the data came from and how complete it is.

In plain words
What is it for?
Use it to report usage for a project or a chosen JSONL file, while keeping separate totals when the data cannot be combined reliably.
Why use it?
It helps you review usage without scanning unrelated home directories, sessions, or transcripts, and avoids treating unknown values as zero.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code; mentions Codex; mentions OpenCode.

Part of the roster plugin — 43 commands, 8 agents shipped together

Good fit Use it to report usage for a project or a chosen JSONL file, while keeping separate totals when the data cannot be combined reliably.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mathiasbourgoin/roster/roster-usage
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.

Clone the repo
git clone --depth 1 https://github.com/mathiasbourgoin/roster

Made for: Claude Code.

Or install roster, the plugin that ships this one along with the rest of its 43 commands, 8 agents.

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 roster-usage

README.md
[![agentmods](https://agentmods.dev/badge/commands/mathiasbourgoin/roster/roster-usage/github.svg)](https://agentmods.dev/commands/mathiasbourgoin/roster/roster-usage)
Your own site
<a href="https://agentmods.dev/commands/mathiasbourgoin/roster/roster-usage"><img src="https://agentmods.dev/badge/commands/mathiasbourgoin/roster/roster-usage/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.

agentmods 80×15 button for roster-usage

Your own site · 80×15
<a href="https://agentmods.dev/commands/mathiasbourgoin/roster/roster-usage"><img src="https://agentmods.dev/badge/commands/mathiasbourgoin/roster/roster-usage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 512 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00024 $0.00512
Opus 5.5 $0.00010 $0.00205
Sonnet 5.5 $0.00005 $0.00102
Haiku 4.5 $0.00002 $0.00051

Measured 12d ago against content hash 2db8f9e7c987, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

roster-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 12d 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.

.claude/commands/roster-usage.md · 50 lines

What it actually says

Roster Usage

Produce a local report only on explicit user invocation. Do not install hooks, offer telemetry, add reminders, download collectors or run this skill at pipeline boundaries.

Steps

  1. Read .harness/harness.json if present. Resolve the trusted runtime at .harness/bin/roster-usage.cjs, or scripts/roster-usage.cjs in a Roster checkout. If unavailable, report the stale installation without fetching a substitute.
  2. Invoke node <runtime> report in the requested project. Default sources are only skills-meta/cost.jsonl and .harness/.local/usage.jsonl in that project. Use repeatable --project <directory> or --input <jsonl-file> only for explicitly selected sources. Never scan home directories, sessions or transcripts.
  3. Present totals with provenance and coverage. Null means unknown, not zero. Preserve separate scopes when overlap prevents a reliable combined total. Explain that reported costs are supplied observations, not a pricing calculation or savings proof. Claude Code, Codex, OpenCode and Pi use the same normalized input contract; tool support does not imply a native collector exists for every runtime.
  4. Refer to .harness/roadmap/usage-schema.md and usage-reports.md for input shapes (source checkout: schema/usage-report-schema.md, docs/usage-reports.md). Keep raw records local. Sharing or posting a report requires its own explicit instruction.

When to Go Back

On malformed input or ambiguous provenance, report the failure or unknown aggregate. Do not repair source observations, invent measurements or silently add other inputs.

What Next

Return the requested report. No collection configuration, commit, send or follow-up telemetry prompt is implied.

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. 12d ago First seen · 50 lines · 24 tokens per session scan A 2db8f9e7c987

Subscribe to this mod's changes

roster-usage is a command published in the GitHub repository mathiasbourgoin/roster (3 stars, last pushed 7d ago), licensed MIT. It adds 24 tokens to every session and 512 once invoked, about $0.0001 per session on Opus 5.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-11-18.

Related

roster-usage compared with commands from other repositories

roster-usage next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
roster-usagemathiasbourgoin/rosterCommand37d agoMITA24Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
convergegithub/spec-kitCommand153ktodayMITA35Claude Code
implementgithub/spec-kitCommand153ktodayMITA14Claude Code