token-usage

token-usage is a command for Claude Code from shyftlabs/continuum. It costs 0 tokens per session (161 once invoked), scanned A, a copy of token-usage, Apache-2.0.

A command-line analysis that examines how coding agents use tokens, the text units used to process requests and responses.

In plain words
What is it for?
Use it to review usage over periods such as an hour or a week, break results down by agent or operation, and export a report.
Why use it?
It helps identify where token usage is high, so you can understand and reduce unnecessary model-processing costs.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to review usage over periods such as an hour or a week, break results down by agent or operation, and export a report.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/shyftlabs/continuum/token-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/shyftlabs/continuum

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/shyftlabs/continuum/token-usage"><img src="https://agentmods.dev/badge/commands/shyftlabs/continuum/token-usage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 161 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 100% copy Near-identical to another mod 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.00000 $0.00161
Opus 5.5 $0.00000 $0.00064
Sonnet 5.5 $0.00000 $0.00032
Haiku 4.5 $0.00000 $0.00016

Measured 3mo ago against content hash cbadb3c474d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

token-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 3mo 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.

Origin

This is a copy

100% identical to token-usage — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/analysis/token-usage.md · 26 lines

What it actually says

token-usage

Analyze token usage patterns and optimize for efficiency.

Usage

npx claude-flow analysis token-usage [options]

Options

  • --period <time> - Analysis period (1h, 24h, 7d, 30d)
  • --by-agent - Break down by agent
  • --by-operation - Break down by operation type

Examples

# Last 24 hours token usage
npx claude-flow analysis token-usage --period 24h

# By agent breakdown
npx claude-flow analysis token-usage --by-agent

# Export detailed report
npx claude-flow analysis token-usage --period 7d --export tokens.csv
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. 3mo ago First seen · 26 lines · 0 tokens per session scan A cbadb3c474d7

Subscribe to this mod's changes

token-usage is a command published in the GitHub repository shyftlabs/continuum (86 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 161 tokens. A static security scan graded it A with 0 findings. It is 100% identical to token-usage, differing in 0 lines, and is treated as a copy.

Related

token-usage compared with commands from other repositories

token-usage next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
token-usageshyftlabs/continuumCommand863d agoApache-2.0A0Claude Code
digestjaroslavsoucek-art/GiovanniCommand29d agoMITA0Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code
analyzegithub/spec-kitCommand153k3d agoMITA26Claude Code
specifygithub/spec-kitCommand153k3d agoMITA13Claude Code
convergegithub/spec-kitCommand153k3d agoMITA35Claude Code