A new way to extract detailed transcripts from Claude Code

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Developers using Claude Code now have a shareable, detailed record of coding-agent sessions, replacing ad-hoc copy-paste workflows for preserving project context.

Read this as

Simon Willison has released a free Python tool called claude-code-transcripts. It takes the conversation logs from Claude Code, a popular AI coding assistant, and turns them into clean, shareable web pages that show everything the AI did, including its hidden reasoning. Users run one command, pick a session, and get an HTML file they can host anywhere or share via a GitHub Gist. This helps anyone whose project decisions now live inside AI chat logs rather than traditional issue trackers.

Simon Willison's new claude-code-transcripts tool converts Claude Code session logs into shareable HTML pages, and can also pull sessions from Claude Code for web by using a reverse-engineered private API. The business relevance: project context and decision records are migrating from issue trackers into AI chat logs, and teams without such tooling lack an auditable trail of agent work. The web API dependency could break if Anthropic changes it.

claude-code-transcripts is a Python CLI (click, Jinja2, httpx, questionary) that renders local Claude Code session JSON into paginated HTML with thinking traces, runnable via 'uvx claude-code-transcripts' and shareable via '--gist'. For Claude Code for web, it fetches session JSON through a reverse-engineered API, extracting the OAuth token from the macOS Keychain via 'security find-generic-password' - a trick reverse-engineered using OpenAI Codex CLI, not Claude. The web endpoint is unofficial and may break; HTML generation is protected by syrupy snapshot tests.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Claude Code claude-code-transcripts uv GitHub Gist Codex CLI macOS Keychain

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading