claude-code-log
CLAUDE.md1.2k starsChanged 3 months agoMITView on GitHub
A Python CLI tool that converts Claude Code transcript JSONL files into readable HTML format. This tool processes Claude Code transcript files (stored as JSONL) and generates clean, minimalist HTML pages with comprehensive session navigation and token usage tracking. It's designed to create a readable log of your Claude interactions with rich metadata and easy navigation. Output Files Generated: - ~/.claude/projects/index.html - Master index with project cards - ~/.claude/projects/project-name/combined_transcripts.html - Combined project page - ~/.claude/projects/project-name/session-{id}.html - Individual session pages See…
Trending
Quiet since August.thin dataabout the whole repository
Who's talking about daaain/claude-code-log
- A Hacker News story“Daaain/Claude-code-log: Code transcript JSONL files into readable HTML format”Hacker News · Mar 10, 2026 · 1 points
- @mara.x0f.nl“at least it keeps extremely detailed logging of every step it did and every consideration that went into …”Bluesky · Feb 13, 2026 · 1 likes
- Kingminghuang/OpportunityRadar“[Deep Dive] 编码 Agent 会话账本与工作溯源”GitHub · Aug 15, 2026
- zbynekdrlik/airuleset“Adopt claude-code-log pre transcript browsing/archív + zosúladiť s #410 gzip (audit #416)”GitHub · Aug 12, 2026
- IvanWng97/pixtuoid“tooling: just fuzz — repeatable never-panic decoder harness over real sessions”GitHub · Jun 8, 2026
The biggest 5 of 10 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 10
Talked about on GitHub, Hacker News and Bluesky (10 times).
On GitHub · 8
- Aug 15, 2026[Deep Dive] 编码 Agent 会话账本与工作溯源 — Kingminghuang/OpportunityRadar0 reactions
- Aug 12, 2026Adopt claude-code-log pre transcript browsing/archív + zosúladiť s #410 gzip (audit #416) — zbynekdrlik/airuleset0 reactions · 4 comments
- Jun 8, 2026tooling: just fuzz — repeatable never-panic decoder harness over real sessions — IvanWng97/pixtuoid0 reactions · 2 comments
- May 11, 2026feat(hooks): knowledge-distill に raw session log 生成を追加 — YuushiOnozawa/Claude-StartUp0 reactions
- Apr 26, 2026Session sync: cross-machine /resume via TUI History browser ([h]) — zac15987/zpit0 reactions · 5 comments
3 more on GitHub
- Oct 17, 2025Real-Time Tool Usage Visibility in Verbose Mode — radleta/claude-iterate0 reactions · 1 comment
- Sep 11, 2025implement a claude code log viewer webserver — telepath-computer/thopter-swarm0 reactions · 4 comments
- Aug 18, 2025Expose logs to 3rd-party tools — RchGrav/claudebox0 reactions
On Hacker News · 1
On Bluesky · 1
- Feb 13, 2026at least it keeps extremely detailed logging of every step it did and every consideration that went into that in a set of jsonl file,… — @mara.x0f.nl1 likes and repost
In this repository4 other files it gives its agents.
- dev-docs/agents.mdAGENTS.md
- foldyardSkill
- tool-rendererSkill
- update-tools-coverageSkill
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 73
Tip: Add -x to stop on first failure (e.g., uv run pytest -m "not (tui or browser)" -v -x).
- Distinctive: line 98
Start with dev-docs/application_model.md — the entry point covering subsystems, data lifecycle, and a glossary, with pointers to the …
- Distinctive: line 134
Don't update CHANGELOG.md, it's auto-generated.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Code Log
A Python CLI tool that converts Claude Code transcript JSONL files into readable HTML format.
Project Overview
This tool processes Claude Code transcript files (stored as JSONL) and generates clean, minimalist HTML pages with comprehensive session navigation and token usage tracking. It's designed to create a readable log of your Claude interactions with rich metadata and easy navigation.
Key Features
- Interactive TUI (Terminal User Interface): Browse and manage Claude Code sessions with real-time navigation, summaries, and quick actions for HTML export and session resuming
- Project Hierarchy Processing: Process entire
~/.claude/projects/directory with linked index page - Individual Session Files: Generate separate HTML files for each session with navigation links
- Session Navigation: Interactive table of contents with session summaries and quick navigation
- Token Usage Tracking: Display token consumption for individual messages and session totals
- Runtime Message Filtering: JavaScript-powered filtering to show/hide message types
- Interactive Timeline: vis-timeline visualization with click-to-scroll navigation
- Date Range Filtering: Filter messages using natural language (e.g., "today", "yesterday")
- Markdown Rendering: Server-side markdown with syntax highlighting using wenmode
Usage
# Process all projects (default)
claude-code-log
# Interactive TUI
claude-code-log --tui
# Single file/directory
claude-code-log path/to/transcript.jsonl
# With browser open
claude-code-log --open-browser
# Date filtering (natural language)
claude-code-log --from-date "yesterday" --to-date "today"
claude-code-log --from-date "last week"Output Files Generated:
~/.claude/projects/index.html- Master index with project cards~/.claude/projects/project-name/combined_transcripts.html- Combined project page~/.claude/projects/project-name/session-{id}.html- Individual session pages
Development
See @CONTRIBUTING.md for detailed development setup, testing, architecture, and release process.
Before committing or finishing a session, always run just ci.
Claude-Specific Testing Tips
Config in pyproject.toml sets -n auto --dist=worksteal so you might need to unset for pdb, etc
# Unit tests (fast, recommended for development)
just test
# or: uv run pytest -m "not (tui or browser)" -v
# TUI tests
just test-tui
# or: uv run pytest -m tui
# Browser tests
just test-browser
# or: uv run pytest -m browser
# All tests
just test-allTip: Add -x to stop on first failure (e.g., uv run pytest -m "not (tui or browser)" -v -x).
Code Quality
ruff format # Format code
ruff check --fix # Lint and fix
uv run pyright # Type check
uv run ty check # Alternative type checkPerformance Profiling
CLAUDE_CODE_LOG_DEBUG_TIMING=1 claude-code-log path/to/file.jsonlTimeline Component
The interactive timeline is implemented in JavaScript within claude_code_log/templates/components/timeline.html. It parses message types from CSS classes generated by the Python renderer.
Important: When adding new message types or modifying CSS class generation in renderer.py, ensure the timeline's message type detection logic is updated accordingly to maintain feature parity. Also, make sure that the filter is still applied consistently to the messages both in the main transcript and in the timeline. You can use Playwright to test browser runtime features.
Architecture
Start with dev-docs/application_model.md — the entry point covering subsystems, data lifecycle, and a glossary, with pointers to the deep-dive docs:
- dev-docs/rendering-architecture.md - Data flow and rendering pipeline
- dev-docs/messages.md - Message type reference
- dev-docs/css-classes.md - CSS class combinations
- dev-docs/dag.md - DAG-based session/fork architecture
- dev-docs/agents.md - Sync/async/teammate agent integration
- dev-docs/teammates.md - Teammates feature deep-dive
- dev-docs/message-hierarchy.md - Fold/unfold state machine
- dev-docs/implementing-a-tool-renderer.md - How-to: add a new tool
- dev-docs/tools-coverage.md - Claude renderer and Codex provider/tool coverage vs. upstream references
- dev-docs/plugins.md - Plugin system reference + author guide
User-facing docs live in docs/; plans and TODOs live in work/.
A documentation site (MkDocs + Material) is published to GitHub Pages from
docs/ + mkdocs.yml. The CLI reference is rendered live from Click, and the
TUI reference (keybindings + screenshots) is auto-generated at build time. See
the "Documentation Site" section of @CONTRIBUTING.md. Preview with
just docs-serve; strict build with just docs-build.
Keeping dev-docs/ in sync
dev-docs/ is as-built reference — the code is the authoritative
source. When a non-trivial change alters behavior, structure, or
invariants documented in a deep-dive, update the relevant page in
the same commit (or as a prompt follow-up). If dev-docs/ and the
code disagree, the doc is wrong.
Typical lifecycle: a feature begins as a spec in work/, evolves
into a WIP scratchpad as the code adapts to reality, then graduates
into dev-docs/ (new page or merged into an existing one) once the
implementation has stabilized.
Don't update CHANGELOG.md, it's auto-generated.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

