stats

stats is a command for Claude Code from AR6420/Hail_Hydra. It costs 29 tokens per session (2,647 once invoked), scanned A, original, MIT.

A command that reads Claude Code session logs and reports actual token use, delegation, and savings. Tokens are the text units used to measure AI input and output, and JSONL is a log format with one JSON record per line.

In plain words
What is it for?
It helps inspect token usage, compare model costs, and track how much work was delegated during a Claude Code session.
Why use it?
It removes guesswork from measuring how much a Hydra session used and saved. The figures come from the session log rather than estimates.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents; positional $N argument.

Good fit It helps inspect token usage, compare model costs, and track how much work was delegated during a Claude Code session.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ar6420/hail_hydra/stats
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/AR6420/Hail_Hydra

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 stats

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/ar6420/hail_hydra/stats"><img src="https://agentmods.dev/badge/commands/ar6420/hail_hydra/stats.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,647 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.00029 $0.02647
Opus 5.5 $0.00012 $0.01059
Sonnet 5.5 $0.00006 $0.00529
Haiku 4.5 $0.00003 $0.00265

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

Security

Grade A, and why

stats 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 8d 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.

content/commands/stats.md · 182 lines

How it starts

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

Hydra Stats — Real Token Tracking

Read the active Claude Code session log and compute actual token usage and savings. NO AI estimation — pure JSONL parsing.

Math + JSONL parsing live in the shared helper at ~/.claude/hooks/hydra-token-math.js. Statusline and /hydra:stats both call it so numbers stay consistent.

Pricing (per 1M tokens, verified 2026-10)

Generation Models Input Output 5m write 1h write Cache read
Haiku 4.5 haiku-4-5 $1 $5 $1.25 $2 $0.10
Haiku 5.5 (≤100k) haiku-5-5 $0.10 $0.50 $0.125 $0.20 $0.01
Haiku 5.5 (>100k) haiku-5-5 $0.50 $2.50 $0.625 $1 $0.05
Sonnet 4 sonnet-4.x $3 $15 $3.75 $6 $0.30
Sonnet 5 sonnet-5 $2 $10 $2.50 $4 $0.20
Sonnet 5.5 sonnet-5-5 $2 $10 $2.50 $4 $0.10
Opus 4 opus-4, opus-4-1 $15 $75 $18.75 $30 $1.50
Opus 4.5 opus-4-5 … opus-5 $5 $25 $6.25 $10 $0.50
Opus 5.5 opus-5-5 $4 $20 $5 $8 $0.20
Fable 5 fable-5, mythos-5 $10 $50 $12.50 $20 $1.00
Fable 5.1 fable-5-1, mythos-5-1 $10 $50 $12.50 $20 $0.25

Prices are keyed by generation; newer unknown point releases bill at the newest known generation of their family. The Haiku 5.5 band is chosen per request: prompts (input + cache read + cache write) over 100k tokens use the long rate. claude-mythos-preview has no published price and is reported as an unknown model. Edit the PRICING / GENERATIONS maps in hydra-token-math.js only if Anthropic publishes new prices.

Read the full file on GitHub · 182 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. 8d ago Changed · +13 lines 9cb38b5d3c19
  2. 1mo ago First seen · 169 lines · 29 tokens per session scan A 88ec1e4ba33e

Subscribe to this mod's changes

stats is a command published in the GitHub repository AR6420/Hail_Hydra (49 stars, last pushed 9d ago), licensed MIT. It adds 29 tokens to every session and 2,647 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-08-30.