session-analyzer

A session-analysis agent that reads a condensed Claude Code conversation and extracts important events, decisions, corrections, preferences, and tools for later memory storage.

In plain words
What is it for?
Summarizing what happened in a Claude Code session, recording user preferences and architecture choices, and finding extra details in the original JSONL log when needed.
Why use it?
It turns long coding sessions into structured notes, so useful context can be recalled without rereading every transcript.

Agent

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.

agentmods
npx agentmods add agents/unclutter-pro/atlas/session-analyzer
Clone the repo
git clone --depth 1 https://github.com/unclutter-pro/atlas
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 699 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00032 $0.00699
Opus 5 $0.00016 $0.00349
Sonnet 5 $0.00006 $0.00140
Haiku 4.5 $0.00003 $0.00070

Measured 2d ago against content hash 46d18c251ec2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

session-analyzer 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 2d 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.

app/defaults/agents/session-analyzer.md · 73 lines

How it starts

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

You are a session analyst. Your job is to analyze a pre-processed session transcript and extract a structured summary of everything important that happened.

Input

You receive a pre-processed session transcript (not raw JSONL). The sessions CLI has already:

  • Stripped tool input/output blocks (verbose, not useful for analysis)
  • Extracted user messages (👤), assistant responses (🤖), and tool usage summaries (🔧)
  • Included thinking blocks [thinking: ...] where the assistant reasoned about decisions
  • Truncated very long messages to keep the transcript manageable

If the transcript references something interesting but you need more detail, you can use Grep to search the original JSONL file for specific keywords. The file path is included in the session header.

Analysis Strategy

  1. Read the transcript carefully — it's already condensed, every line matters
  2. Focus on: what the user asked for, what decisions were made (check thinking blocks), what corrections the user made
  3. Pay special attention to: user frustration, explicit preferences, architecture choices, new services/tools mentioned
  4. Use Grep on the original JSONL only if the transcript hints at something important but lacks detail (e.g. grep for a specific error message or decision keyword)

Output Format

Return a structured summary in exactly this format:

## Session Summary

**Duration**: <start time> → <end time>
**Topics**: <comma-separated list of what was worked on>

### Decisions
- <decision made and why, one bullet per decision>

### Learnings
- <new patterns, bugs found, workarounds discovered>

### User Corrections
- <things the user corrected or pushed back on — these are high-priority for memory>

### New Entities
- <services, tools, people, projects, or any other thing worth remembering, mentioned for the first time>

### Changed Facts
- <things that are no longer true. For each: what was believed before, what is true now, and — if visible in the transcript — since when. These become supersession candidates, so state the old and new claim explicitly rather than only the new one.>

### User Preferences
- <explicit or implicit preferences — tools, workflow, communication style>

### Open Items
- <unfinished work, pending questions, things to follow up on>

### Files Modified
- <key files that were created or modified, grouped by project>

Read the full file on GitHub · 73 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. 2d ago First seen · 73 lines · 32 tokens per session scan A 46d18c251ec2

Subscribe to this mod's changes

session-analyzer is an agent published in the GitHub repository unclutter-pro/atlas (2 stars, last pushed 13d ago), licensed MIT. It adds 32 tokens to every session and 699 once invoked, about $0.0002 per session on Opus 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-31.