session-analyzer

session-analyzer is an agent for Claude Code from unclutter-pro/atlas. It costs 32 tokens per session (699 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions Claude Code.

Good fit 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.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/unclutter-pro/atlas/session-analyzer
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.

Clone the repo
git clone --depth 1 https://github.com/unclutter-pro/atlas

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-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/unclutter-pro/atlas/session-analyzer/github.svg)](https://agentmods.dev/agents/unclutter-pro/atlas/session-analyzer)
Your own site
<a href="https://agentmods.dev/agents/unclutter-pro/atlas/session-analyzer"><img src="https://agentmods.dev/badge/agents/unclutter-pro/atlas/session-analyzer/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-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/unclutter-pro/atlas/session-analyzer"><img src="https://agentmods.dev/badge/agents/unclutter-pro/atlas/session-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00032 $0.00699
Opus 5.5 $0.00013 $0.00280
Sonnet 5.5 $0.00006 $0.00140
Haiku 4.5 $0.00003 $0.00070

Measured 1mo ago against content hash 46d18c251ec2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 4d ago), licensed MIT. It adds 32 tokens to every session and 699 once invoked, about $0.0001 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-31.