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 bendrucker/claude --skill sessiongit clone --depth 1 https://github.com/bendrucker/claudeWrote 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/bendrucker/claude/session)<a href="https://agentmods.dev/skills/bendrucker/claude/session"><img src="https://agentmods.dev/badge/skills/bendrucker/claude/session/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/bendrucker/claude/session"><img src="https://agentmods.dev/badge/skills/bendrucker/claude/session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Rogue Agent · line 126 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00081 | $0.02416 |
| Opus 5.5 | $0.00032 | $0.00966 |
| Sonnet 5.5 | $0.00016 | $0.00483 |
| Haiku 4.5 | $0.00008 | $0.00242 |
Grade A, and why
observability:session 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 7d 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 — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Session
Query Claude Code history from a DuckDB index over the JSONL session files. Report each figure with the named query or SQL that produced it, and any index-health alert or Known Blind Spot that bounds it.
Current session ID: ${CLAUDE_SESSION_ID}
Arguments
--refresh: runrefresh.ts --refreshbefore querying. Default: the incremental refresh.--host <label>: scope queries through thehostparam. Default: every host, includinglocal.--since <date>: pass as theafter_dateparam. Default: the full index.
Database
The index is ~/.local/share/claude-sessions/session.duckdb (under $XDG_DATA_HOME when set). Use that path directly in every query and agent prompt.
Refresh
Run refresh.ts before querying. It imports changed files, drops rows for deleted ones, and prints the DB path. Within --max-age (default 300 seconds) of the last refresh it exits without opening the database. Pass --refresh when the user asks for the latest data.
bun ${CLAUDE_SKILL_DIR}/scripts/refresh.ts
Querying
Open the index with duckdb -readonly -json -init ${CLAUDE_SKILL_DIR}/resources/limits.sql:
-readonly: a read-write open blocks refreshes and other readers.-init limits.sql: caps memory and threads. DuckDB's per-process defaults let a few concurrent readers freeze the machine.-json: the default box format truncates to 40 rows, and-csvbreaks rows on newlines embedded incommandandtext.
Parameterize with SET VARIABLE and read with getvariable('key'). Quote reserved words: SET VARIABLE "limit" = 5.
duckdb -readonly -json -init ${CLAUDE_SKILL_DIR}/resources/limits.sql ~/.local/share/claude-sessions/session.duckdb "SELECT model, SUM(output_tokens) FROM message_usage GROUP BY model"
duckdb -readonly -json -init ${CLAUDE_SKILL_DIR}/resources/limits.sql ~/.local/share/claude-sessions/session.duckdb < ${CLAUDE_SKILL_DIR}/resources/queries/stats.sql
scripts/usage.ts renders one session's token-burn timeline (--session <id>), or the top sessions by estimated cost (--days <n>). Its cost estimate comes from public API rates and comes to about 0.97 of billed spend.
What ships with it
60 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.
- CLAUDE.md 20 KB
- fixtures/debug/denials-session.txt 1.9 KB
- fixtures/hook-metrics/guard.jsonl 281 B
- fixtures/mod-events/denials-session/auto-mode.1.0.jsonl 1.5 KB
- fixtures/plans/feature-plan.md 344 B
- fixtures/plans/quick-plan.md 136 B
- fixtures/sessions/-Users-test-health/health.jsonl 3.0 KB
- fixtures/sessions/-Users-test-project-feature/feature.jsonl 445 B
- fixtures/sessions/-Users-test-project/attribution.jsonl 509 B
- fixtures/sessions/-Users-test-project/basic.jsonl 781 B
- fixtures/sessions/-Users-test-project/delegation.jsonl 4.6 KB
- fixtures/sessions/-Users-test-project/denials.jsonl 2.6 KB
- fixtures/sessions/-Users-test-project/hooks.jsonl 20 KB
- fixtures/sessions/-Users-test-project/labels.jsonl 2.3 KB
- fixtures/sessions/-Users-test-project/malformed.jsonl 429 B
- fixtures/sessions/-Users-test-project/multiple.jsonl 1.1 KB
- fixtures/sessions/-Users-test-project/no-container.jsonl 1.3 KB
- fixtures/sessions/-Users-test-project/plan-iterations.jsonl 3.2 KB
- fixtures/sessions/-Users-test-project/plan-outcomes.jsonl 3.8 KB
- fixtures/sessions/-Users-test-project/plans.jsonl 1.9 KB
- fixtures/sessions/-Users-test-project/replay.jsonl 1.8 KB
- fixtures/sessions/-Users-test-project/review.jsonl 4.2 KB
- fixtures/sessions/-Users-test-project/search-surfaces.jsonl 5.4 KB
- fixtures/sessions/-Users-test-project/ship.jsonl 570 B
- fixtures/sessions/-Users-test-project/skill-loads.jsonl 2.4 KB
- fixtures/sessions/-Users-test-project/skills.jsonl 5.1 KB
- fixtures/sessions/-Users-test-project/subagents/agent-failures.jsonl 1.3 KB
- fixtures/sessions/-Users-test-project/subagents/agent-inherit1.jsonl 4.0 KB
- fixtures/sessions/-Users-test-project/subagents/agent-mine-hooks.jsonl 1.3 KB
- fixtures/sessions/-Users-test-project/subagents/agent-override2.jsonl 4.0 KB
- fixtures/sessions/-Users-test-project/subagents/agent-pinned3.jsonl 4.0 KB
- fixtures/sessions/-Users-test-project/subagents/agent-search-surfaces.jsonl 357 B
- fixtures/sessions/-Users-test-project/subagents/workflows/wf_attribution/agent-nested.jsonl 1012 B
- fixtures/sessions/-Users-test-project/tool-failures.jsonl 3.0 KB
- fixtures/sessions/-Users-test-project/tools.jsonl 3.1 KB
- fixtures/sessions/-Users-test-refs/refs.jsonl 2.8 KB
- fixtures/sessions/-Users-test-trope/trope.jsonl 1.9 KB
- fixtures/sessions/-Users-test-webapp/webapp.jsonl 482 B
- README.md 2.2 KB
- references/blind-spots.md 2.4 KB
- references/catalog.md 24 KB
- references/cross-machine.md 3.5 KB
- references/discovery.md 11 KB
- references/schema-discovery.md 437 B
- references/workflows.md 861 B
- resources/extensions.sql 1.2 KB
- resources/import.sql 2.0 KB
- resources/limits.sql 1.3 KB
- resources/queries/activity.sql 4.3 KB
- resources/queries/already-allowed-still-prompting.sql 1.1 KB
- resources/queries/bare-refs.sql 3.6 KB
- resources/queries/catalog-reinjection-thrash-sessions.sql 2.4 KB
- resources/queries/classifier.sql 3.1 KB
- resources/queries/cli-health.sql 3.6 KB
- resources/queries/delegation.sql 6.9 KB
- resources/queries/field-drift.sql 1.3 KB
- resources/queries/hook-block-then-retry-success.sql 2.2 KB
- resources/queries/hook-blocks.sql 4.4 KB
- resources/queries/hook-config-vs-observed.sql 5.4 KB
- resources/queries/hook-self-timing.sql 3.2 KB
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.
- 7d ago Changed 2a80adcd9413
- 10d ago Changed · -14 lines e768ccf6ba06
- 11d ago Changed a6774bcfea04
- 18d ago Changed a297449eab4a
- 20d ago Changed 66dcc22c1bc7
- 21d ago Changed · +5 lines · +6 tokens per session 6101409b9744
- 22d ago Changed · +1 lines 22fa02bc3875
- 24d ago Changed b608c9f59106
- 1mo ago Changed · -1 tokens per session e888f6943046
- 2mo ago First seen · 148 lines · 76 tokens per session scan A 0f3ae743b484
observability:session is a skill published in the GitHub repository bendrucker/claude (18 stars, last pushed today), licensed MIT. It adds 81 tokens to every session and 2,416 once invoked, about $0.0003 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-08-30.
observability:session compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| observability:sessionbendrucker/claude | Skill | 18 | today | MIT | A | 81 | Claude Code |
| reviewSethGammon/Citadel | Skill | 928 | 4d ago | MIT | A | 17 | Claude Code |
| system-upgradealivecontext/alive | Skill | 132 | yesterday | MIT | A | 55 | Claude Code |
| wenlan-handoffwenlan-app/wenlan | Skill | 94 | today | Apache-2.0 | A | 43 | Claude Code, Codex |
| extract-resumesuxrobGM/jobpilot | Skill | 111 | today | MIT | A | 32 | Claude Code |
| pr-reviewnitinjain999/platform-skills | Skill | 71 | yesterday | Apache-2.0 | A | 81 | Claude Code |
| read-literaturefirecrawl/firecrawl-claude-plugin | Skill | 258 | 3d ago | MIT | A | 101 | Claude Code |