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.
npx skills add mrclrchtr/supi --skill session-analyticsgit clone --depth 1 https://github.com/mrclrchtr/supiWrote 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.
[](https://agentmods.dev/skills/mrclrchtr/supi/session-analytics)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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.
What ships with it
7 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.
- evals/evals.json 5.2 KB
- evals/files/generate-large.mjs 3.7 KB runs code
- evals/files/sessions/--example-other--/2026-10-22_s3.jsonl 12 KB
- evals/files/sessions/--example-widget--/2026-10-20_s1.jsonl 8.6 KB
- evals/files/sessions/my sessions/--example-widget-pkg--/2026-10-21_s2.jsonl 4.7 KB
- scripts/export.mjs 14 KB runs code
- scripts/truncate.mjs 1.3 KB runs code
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.
- 11d ago Changed 90bb409771b3
- 14d ago First seen · 80 lines · 39 tokens per session scan A c0d74698a80d
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.
session-analytics compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| session-analyticsmrclrchtr/supi | Skill | 106 | today | MIT | A | 39 | Claude Code |
| muse-delegateamElnagdy/delegate-skills | Skill | 2.7k | 15d ago | MIT | A | 157 | Claude Code, Codex |
| pi-parity-reviewsky-valley/pi | Skill | 94 | yesterday | MIT | A | 54 | Claude Code |
| pi-go-reviewsky-valley/pi | Skill | 94 | yesterday | MIT | A | 45 | Claude Code |
| gh-address-commentsrojim666/SztuCode | Skill | 110 | 18d ago | MIT | A | 39 | Codex |
| reviewmorganlinton/Albatross | Skill | 246 | 1mo ago | MIT | A | 14 | Claude Code, Codex |
| resume-fromalexei-led/resume-from | Skill | 9 | 14d ago | MIT | A | 48 | Claude Code, Codex |