claude

session-metrics

Per-turn token, cost, and cache analytics for Claude Code sessions. Multi-format export (text/JSON/CSV/MD/HTML) with session blocks, weekly roll-up, subagent attribution, dynamic-workflow tracking, and 9-category turn waste classification. HTML reports include cost timeline, hour-of-day punchcard, model-switch dividers, cache-break badges, a per-turn detail drawer, and a per-request breakdown that groups turns by the prompt that drove them. Sibling skills: audit-session-metrics audits exports for waste patterns (summarisation-only — run on /model haiku for a much cheaper run); task-breakdown groups requests into semantic tasks with worth-it / wasted verdicts and a Tasks companion page. Zero network, stdlib-only Python.

19 on GitHubby George Liuv1.92.0MITupdated 3 days agoanalytics
/

Plugin session-metrics from marketplace centminmod in centminmod/claude-plugins. Commands read from the repo's manifest — 3 days ago.

What it installs

Skills (3)

  • audit-session-metrics

    Audit a session-metrics JSON export for token-usage waste and produce a plain-English findings report. Trigger when the user runs /audit-session-metrics, when session-metrics suggests an audit after an HTML export, or when the user asks to audit / review / find waste in a saved session-metrics JSON.

  • session-metrics

    Tally Claude Code session token usage and cost estimates from the raw JSONL conversation log. Trigger when the user asks about session cost, token usage, API spend, cache hit rate, input/output tokens, or wants a breakdown of how much a Claude Code session has cost. Also trigger for "how much have w

  • task-breakdown

    Group a session-metrics session's turns into higher-level SEMANTIC TASKS ("what was I actually trying to do") and render a Tasks companion page (*_tasks.html + *_tasks.md) with a worth-it / mixed / likely-waste verdict per task. Trigger when the user runs /task-breakdown, when session-metrics sugges

View source on GitHub ai.georgeliu.com

More from centminmod/claude-plugins

All 2 plugins →

A Claude Code mod that draws a status band above the prompt in the Claude Desktop app's Code tab, where the CLI statusLine command does not run. Shows folder, git branch and state, session age, prompt count and cost, a context meter, 5-hour and weekly plan usage limit meters with reset countdowns, last-turn model, duration and cache hit rate, idle time against the prompt-cache TTL, compactions, server-side tool use, subagents by state, and one row per workflow run with live done/failed counts. A notification (or toast) at 80% and 95% of a usage limit. Desktop only, so a CLI statusLine is left alone. Requires Claude Code v2.1.287+. Zero network.

19

Similar plugins

telemetry

claude

Plugin analytics: hooks $.telemetry's two events, so a plugin logs an event or marks a feature's use as a first-party row, sent in batches with the session's own credential.

anthropics/claude-code 155,476

nextjs

claude

Official Next.js skills: adopt and optimize Cache Components, adopt Partial Prefetching, and verify runtime behavior against a running dev server.

6 skills

vercel/next.js 143,495

Token usage tracking, model cost attribution per agent, budget alerts, and optimization recommendations

24 skills · 1 command · 1 agent · hooks

ruvnet/ruflo 81,589

Skill: add headroom-ai compress() to a Python or TypeScript app to cut LLM input tokens (tool outputs, logs, JSON, chat history). No API key.

1 skill

headroomlabs-ai/headroom 79,508

mem0

claudecodex

Cross-session memory and token savings for coding agents.

6 skills · 1 agent · 1 MCP server · hooks

mem0ai/mem0 68,893

Maintain session-metrics?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins2 plugins