session-metrics

session-metrics is a skill for Claude Code from centminmod/claude-plugins. It costs 182 tokens per session (7,827 once invoked), scanned B, original, no licence file.

A tool that reads Claude Code's raw conversation log and totals its tokens and estimated cost. Tokens are the small pieces of text used to measure model usage.

In plain words
What is it for?
Use it to inspect session cost, token usage, input and output totals, cache hits, or an API-spend breakdown.
Why use it?
It answers how much a session used and spent without requiring you to calculate the log by hand.

Skill for Claude Code

Written for Claude Code: effort in frontmatter.

Part of the session-metrics plugin — 3 skills shipped together

Good fit Use it to inspect session cost, token usage, input and output totals, cache hits, or an API-spend breakdown.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/centminmod/claude-plugins/session-metrics
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.

Any agent
npx skills add centminmod/claude-plugins --skill session-metrics
Clone the repo
git clone --depth 1 https://github.com/centminmod/claude-plugins

Made for: Claude Code.

Or install session-metrics, the plugin that ships this one along with the rest of its 3 skills.

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 session-metrics

README.md
[![agentmods](https://agentmods.dev/badge/skills/centminmod/claude-plugins/session-metrics/github.svg)](https://agentmods.dev/skills/centminmod/claude-plugins/session-metrics)
Your own site
<a href="https://agentmods.dev/skills/centminmod/claude-plugins/session-metrics"><img src="https://agentmods.dev/badge/skills/centminmod/claude-plugins/session-metrics/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 session-metrics

Your own site · 80×15
<a href="https://agentmods.dev/skills/centminmod/claude-plugins/session-metrics"><img src="https://agentmods.dev/badge/skills/centminmod/claude-plugins/session-metrics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 182 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,827 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00182 $0.07827
Opus 5.5 $0.00073 $0.03131
Sonnet 5.5 $0.00036 $0.01565
Haiku 4.5 $0.00018 $0.00783

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

Security

Grade B, and why

session-metrics scanned grade B with 1 finding 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 2mo ago.

The scan reads SKILL.md. This mod also ships 26 executable files (scripts/_analytics.py, scripts/_charts.py, scripts/_cli.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks the agent to reveal its instructionsmediumSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

assistant text are truncated to ~240 characters with a **Show full prompt** / **Show full response** toggle that reveals the full text (up
plugins/session-metrics/skills/session-metrics/SKILL.md · 474 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Files

What ships with it

54 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 474 lines · 182 tokens per session scan B 554b182dd0b8

Subscribe to this mod's changes

session-metrics is a skill published in the GitHub repository centminmod/claude-plugins (19 stars, last pushed 11d ago), with no licence file. It adds 182 tokens to every session and 7,827 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

session-metrics compared with skills from other repositories

session-metrics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
session-metricscentminmod/claude-pluginsSkill1911d agononeB182Claude Code
git-workflowpovvo/claudikins-kernelSkill1276mo agoMITA54Claude Code
shipping-methodologypovvo/claudikins-kernelSkill1276mo agoMITA51Claude Code
strict-enforcementpovvo/claudikins-kernelSkill1276mo agoMITA44Claude Code
brain-jam-planpovvo/claudikins-kernelSkill1276mo agoMITA54Claude Code
opikcomet-ml/opik-claude-code-pluginSkill2515d agoApache-2.0A80Claude Code
design-webfusengine/agentsSkill3425d agoMITA36Claude Code