Borrowing it
Nothing to install: this file belongs to briancl2/CustomerNewsletter. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/briancl2/CustomerNewsletter/main/.github/skills/session-log-manager/SKILL.mdgit clone --depth 1 https://github.com/briancl2/CustomerNewsletterWrote 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/briancl2/customernewsletter/session-log-manager)<a href="https://agentmods.dev/skills/briancl2/customernewsletter/session-log-manager"><img src="https://agentmods.dev/badge/skills/briancl2/customernewsletter/session-log-manager/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/briancl2/customernewsletter/session-log-manager"><img src="https://agentmods.dev/badge/skills/briancl2/customernewsletter/session-log-manager.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.00094 | $0.01782 |
| Opus 5.5 | $0.00038 | $0.00713 |
| Sonnet 5.5 | $0.00019 | $0.00356 |
| Haiku 4.5 | $0.00009 | $0.00178 |
Grade A, and why
session-log-manager 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 2mo 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 — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Session Log Manager
Monitor, archive, rotate, and diagnose AI agent session logs across all stores. Deterministic shell scripts for health/archive/rotate; Python for forensics. Operates on system-wide session stores but archives per-repo.
Quick Start
# Health check — scan all stores, report per-repo sizes, flag hotspots
bash .agents/skills/session-log-manager/scripts/session-health-check.sh
# Archive — copy & compress sessions for this repo
bash .agents/skills/session-log-manager/scripts/session-archive.sh --repo build-meta-analysis
# Rotate — compress sessions older than 7 days in the archive
bash .agents/skills/session-log-manager/scripts/session-rotate.sh
# Forensics — crash/stall RCA from session ID
python3 .agents/skills/session-log-manager/scripts/session-forensics.py <session-id-or-path>
# Image strip — remove embedded image byte-dicts, archive originals
python3 .agents/skills/session-log-manager/scripts/session-image-strip.py --dry-run --all
python3 .agents/skills/session-log-manager/scripts/session-image-strip.py --all
Or use Makefile targets:
make session-health
make session-archive REPO=build-meta-analysis
make session-rotate
What This Skill Manages
System Stores (Source of Truth — never modified)
| Store | Location (macOS) | Format |
|---|---|---|
| Copilot CLI | ~/.copilot/session-state/<uuid>/events.jsonl |
JSONL (event stream) |
| VS Code Insiders | ~/Library/Application Support/Code - Insiders/User/workspaceStorage/<hash>/chatSessions/*.jsonl |
JSONL (chat log) |
| VS Code Stable | ~/Library/Application Support/Code/User/workspaceStorage/<hash>/chatSessions/*.jsonl |
JSONL (chat log) |
Archive (Repo-Local — managed by this skill)
| Location | Contents |
|---|---|
runs/sessions/<repo>/ |
Compressed .jsonl.gz files, deduplicated by session UUID |
Scripts
session-health-check.sh — P0: Monitor
Scans all 3 session stores. Reports per-repo sizes. Flags hotspots.
bash .agents/skills/session-log-manager/scripts/session-health-check.sh
What ships with it
3 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.
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.
- 2mo ago First seen · 179 lines · 94 tokens per session scan A 430678cec359
session-log-manager is a skill published in the GitHub repository briancl2/CustomerNewsletter (11 stars, last pushed 5mo ago), licensed MIT. It adds 94 tokens to every session and 1,782 once invoked, about $0.0004 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.
session-log-manager compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| session-log-managerbriancl2/CustomerNewsletter | Skill | 11 | 5mo ago | MIT | A | 94 | Claude Code, Codex |
| trulens-diagnosistruera/trulens | Skill | 3.6k | yesterday | MIT | A | 17 | Claude Code, Codex |
| agents-sdk-dotnet-activityhandler-migrationmicrosoft/Agents | Skill | 1.1k | yesterday | MIT | A | 76 | Claude Code |
| agents-sdk-dotnetmicrosoft/Agents | Skill | 1.1k | yesterday | MIT | A | 112 | Claude Code |
| agents-sdk-typescript-otelmicrosoft/Agents | Skill | 1.1k | yesterday | MIT | A | 88 | Claude Code |
| bf-to-agents-sdk-dotnet-migrationmicrosoft/Agents | Skill | 1.1k | yesterday | MIT | A | 56 | Claude Code |
| github-review-prfeiskyer/claude-code-settings | Skill | 1.7k | yesterday | MIT | A | 90 | Claude Code |