Rolling, tiered summaries of your Claude Code and Codex sessions, with a local web UI and a digest for other agents
open sourceMITself-hostablefreearchived
Nathan Broadbent Submitted by
claude-summarizer keeps a running summary of every Claude Code and Codex session on a Mac, for people who run many long-lived agent sessions and lose track of which one was doing what. An hourly job reads only what each transcript gained since its last run, drops the noise (tool output, watcher wake-ups, compactions), and asks headless claude -p on your own subscription to rewrite the session's summary as a page, a paragraph and a sentence, saved as Markdown files (an Obsidian vault works). A local web UI lists every session with a copyable resume command and a timeline of its updates, and claude-summarizer digest prints a briefing another agent can load. It's Python standard library only; herdr tab names and the account rotator's account choice are optional.
Problems it solves
- I have dozens of Claude Code sessions open and can't remember which one was working on what
- find the agent session that was doing a particular task a few weeks ago
- a short summary of what each of my coding agent sessions is for and what it's waiting on
- my Claude Code transcripts are gigabytes of JSONL and mostly tool output, too big to read back
- give a planning agent a briefing on what all my other agent sessions are doing
- a browsable timeline of how one long-running agent session's focus changed day by day
- copy the command to resume an old Claude Code or Codex session from a list of all of them
- summarize my agent sessions without paying for API calls, using my Claude subscription
- keep notes on my AI coding sessions as Markdown files in my Obsidian vault
- summarize only what changed in each session since last time, and skip idle sessions
Features
- summaries in three sizes: a page, a paragraph and a sentence
- reads only new transcript lines each hour, from byte offsets
- filters out tool output, watcher wake-ups, compactions and headless runs before any model call
- one Markdown file per update, named by the hour it covers
- local web UI on localhost with copyable resume commands, full pages and a per-session timeline
- digest command for other agents: paragraphs for the last 30 days, sentences for the 6 months before
- lean headless claude -p calls with no settings, tools, MCP servers or session persistence
- names sessions after their herdr tabs
- picks the Claude account whose weekly limit resets soonest, with the account rotator's coordinator
- logs each call's tokens, seconds and notional cost
Limitations
- Doesn't schedule itself on Linux or Windows: its installer sets up macOS LaunchAgents only, though the code runs anywhere Claude Code does1
- Doesn't use local models or an API key: every summary is a headless claude -p call on your own Claude Code login1
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what claude-summarizer does.
- Claude Code Viewer A full-featured web-based Claude Code client that provides complete interactive functionality for managing Claude Code projects
- claude-code-log A Python CLI tool that converts Claude Code transcript JSONL files into readable HTML and Markdown
- Claude Code Trace Claude Code session log viewer for JSONL files in ~/.claude/projects: browse conversations, tool calls, tokens, and live tail sessions on desktop, web, and TUI
- cass (coding-agent-search) Index and search your local coding agent session history across 30+ agents in one timeline
- cc-viewer A request monitoring system for Claude Code that captures and visualizes all API requests and responses in real time
- claude-code-transcripts Tools for publishing transcripts for Claude Code sessions
