session-metrics

session-metrics is a skill for Claude Code, Codex 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 CodeCodex

Part of the session-metrics plugin — 3 skills 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 skills/centminmod/claude-plugins/session-metrics
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, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00182 $0.07827
Opus 5 $0.00091 $0.03914
Sonnet 5 $0.00036 $0.01565
Haiku 4.5 $0.00018 $0.00783

Measured 3d ago against content hash 554b182dd0b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

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. 3d 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 (10 stars, last pushed yesterday), with no licence file. It adds 182 tokens to every session and 7,827 once invoked, about $0.0009 per session on Opus 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

Other skills, from other repositories

git-workflow

Use when running claudikins-kernel:execute, decomposing plans into tasks, setting up two-stage review, deciding batch sizes, or handling stuck agents — enforces isolation, verification, and human checkpoints; prevents runaway parallelization and context death.

povvo/claudikins-kernel · 54 tokens

shipping-methodology

Use when running claudikins-kernel:ship, preparing PRs, writing changelogs, deciding merge strategy, or handling CI failures — enforces GRFP-style iterative approval, code integrity validation, and human-gated merges.

povvo/claudikins-kernel · 51 tokens

strict-enforcement

Use when running claudikins-kernel:verify, checking implementation quality, deciding pass/fail verdicts, or enforcing cross-command gates — requires actual evidence of code working, not just passing tests.

povvo/claudikins-kernel · 44 tokens

brain-jam-plan

Use when running claudikins-kernel:outline, brainstorming implementation approaches, gathering requirements iteratively, structuring complex technical plans, or facing analysis paralysis with too many options — provides iterative human-in-the-loop planning with explicit checkpoints and trade-off presentation.

povvo/claudikins-kernel · 54 tokens

thinking-log

Automatically creates and maintains a THINKINGLOG.md file that documents Claude's reasoning process, decisions, and problem-solving approach during implementation tasks. Use this skill when: (1) User requests documentation of thinking/reasoning process, (2) Working on complex multi-step implementations, (3) User wants…

mduongvandinh/claude-thinking-log-plugin · 101 tokens

workflow

Professional AI programming assistant with structured workflow (Research -> Ideate -> Plan -> Execute -> Optimize -> Review) for developers.

UfoMiao/zcf · 25 tokens