session-analytics

session-analytics is a skill for Claude Code from mrclrchtr/supi. It costs 39 tokens per session (1,471 once invoked), scanned A, original, MIT.

A session-analytics skill exports and summarizes data from past coding-agent sessions, including tool use, failures, follow-up calls, tool availability, and debug-log volume.

In plain words
What is it for?
Use it to count tool calls by workspace or model, investigate failed calls and what happened next, check tool availability, and measure debug events over time.
Why use it?
It makes large session histories easier to measure without directly searching through raw storage that may be slow or unwieldy.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to count tool calls by workspace or model, investigate failed calls and what happened next, check tool availability, and measure debug events over time.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mrclrchtr/supi/session-analytics
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 mrclrchtr/supi --skill session-analytics
Clone the repo
git clone --depth 1 https://github.com/mrclrchtr/supi

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mrclrchtr/supi/session-analytics"><img src="https://agentmods.dev/badge/skills/mrclrchtr/supi/session-analytics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,471 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.00039 $0.01471
Opus 5.5 $0.00016 $0.00588
Sonnet 5.5 $0.00008 $0.00294
Haiku 4.5 $0.00004 $0.00147

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

Security

Grade A, and why

session-analytics 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 11d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (evals/files/generate-large.mjs, scripts/export.mjs, scripts/truncate.mjs), 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.

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.

packages/supi-debug/skills/session-analytics/SKILL.md · 80 lines

How it starts

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

Session analytics

Session storage can hold gigabytes of JSONL across thousands of files, often in directories with spaces. The bundled exporter streams it once and writes one normalized JSONL file; you aggregate that file yourself. Do not grep or cat session storage directly: it is slow, breaks on unusual paths, and floods the context.

Pick the export

Question Kind Useful flags
Calls per tool, per workspace, per model, over time tool-calls --tool, --since
Failing calls, their arguments, and what the agent did next tool-calls --tool, --match <regex>, --next <n>
Sessions where a tool was available vs. called tool-availability --since
Debug-event bytes and counts by source, level, category debug-events --since

Filter at export time when you can: --tool and --match keep the file small. --match tests the full result text, not just the exported head.

Scope

Default to the current workspace tree and state the scope you used. Other projects and sibling worktrees (--all-workspaces or --workspace <path>) need the user's explicit approval or an explicit request. When the request names no time range, use all dates for small questions and suggest --since 30d if the scan is slow.

Run once

Resolve the script relative to this skill directory:

output_dir=$(mktemp -d)
node "<absolute-skill-directory>/scripts/export.mjs" tool-calls \
  --workspace "$PWD" --since 30d --output "$output_dir/tool-calls.jsonl"

Stdout is a single compact JSON summary: records, filters, coverage, and limitations. The output file must not exist yet. Reuse one export for every follow-up question on the same scope rather than rescanning.

Aggregate in a script

Read the JSONL inside a codemode script with tools.bash (cat), not tools.read, which stops at 50 KB and appends a continuation notice. Parse, aggregate, and return only the counts and a few cited examples. Without codemode, use a short node -e script over the file. Never print the whole export into the conversation.

Read the full file on GitHub · 80 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. 11d ago Changed 90bb409771b3
  2. 14d ago First seen · 80 lines · 39 tokens per session scan A c0d74698a80d

Subscribe to this mod's changes

session-analytics is a skill published in the GitHub repository mrclrchtr/supi (106 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 1,471 once invoked, about $0.0002 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-11-16.

Related

session-analytics compared with skills from other repositories

session-analytics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
session-analyticsmrclrchtr/supiSkill106todayMITA39Claude Code
muse-delegateamElnagdy/delegate-skillsSkill2.7k15d agoMITA157Claude Code, Codex
pi-parity-reviewsky-valley/piSkill94yesterdayMITA54Claude Code
pi-go-reviewsky-valley/piSkill94yesterdayMITA45Claude Code
gh-address-commentsrojim666/SztuCodeSkill11018d agoMITA39Codex
reviewmorganlinton/AlbatrossSkill2461mo agoMITA14Claude Code, Codex
resume-fromalexei-led/resume-fromSkill914d agoMITA48Claude Code, Codex