agentleFS
daaaindaaain/claude-code-log/CLAUDE.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 1 mentionApr 2026: 1 mentionMay 2026: 1 mentionJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 2 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the daaain/claude-code-log repository that our weekly crawl found: only 10 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about daaain/claude-code-log

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

3 more on GitHub

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
  1. Very specific:

    Tip: Add -x to stop on first failure (e.g., uv run pytest -m "not (tui or browser)" -v -x).

    line 73
  2. Distinctive:

    Start with dev-docs/application_model.md — the entry point covering subsystems, data lifecycle, and a glossary, with pointers to the …

    line 98
  3. Distinctive:

    Don't update CHANGELOG.md, it's auto-generated.

    line 134

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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

Tip: 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 check

Performance Profiling

CLAUDE_CODE_LOG_DEBUG_TIMING=1 claude-code-log path/to/file.jsonl

Timeline 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.