Skip to content

Commit e99e566

Browse files
gnymanCodex
andcommitted
Add Gemini session parsing and picker labels
Co-authored-by: Codex <codex@openai.com>
1 parent b7669be commit e99e566

File tree

6 files changed

+348
-32
lines changed

6 files changed

+348
-32
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Tests](https://github.com/simonw/claude-code-transcripts/workflows/Test/badge.svg)](https://github.com/simonw/claude-code-transcripts/actions?query=workflow%3ATest)
66
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/claude-code-transcripts/blob/main/LICENSE)
77

8-
Convert Claude Code session files (JSON or JSONL) to clean, mobile-friendly HTML pages with pagination.
8+
Convert Claude Code and Gemini session files (JSON or JSONL) to clean, mobile-friendly HTML pages.
99

1010
[Example transcript](https://static.simonwillison.net/static/2025/claude-code-microjs/index.html) produced using this tool.
1111

@@ -24,11 +24,11 @@ uvx claude-code-transcripts --help
2424

2525
## Usage
2626

27-
This tool converts Claude Code session files into browseable multi-page HTML transcripts.
27+
This tool converts Claude Code and Gemini session files into browseable HTML transcripts.
2828

2929
There are four commands available:
3030

31-
- `local` (default) - select from local Claude Code sessions stored in `~/.claude/projects`
31+
- `local` (default) - select from local sessions stored in `~/.claude/projects` and `~/.gemini/tmp/*/chats`
3232
- `web` - select from web sessions via the Claude API
3333
- `json` - convert a specific JSON or JSONL session file
3434
- `all` - convert all local sessions to a browsable HTML archive
@@ -58,7 +58,7 @@ The generated output includes:
5858

5959
### Local sessions
6060

61-
Local Claude Code sessions are stored as JSONL files in `~/.claude/projects`. Run with no arguments to select from recent sessions:
61+
Local sessions are stored as JSONL files in `~/.claude/projects` (Claude Code) and JSON files in `~/.gemini/tmp/*/chats` (Gemini). Run with no arguments to select from recent sessions:
6262

6363
```bash
6464
claude-code-transcripts
@@ -154,6 +154,8 @@ claude-code-transcripts json session.jsonl --open
154154

155155
When using [Claude Code for web](https://claude.ai/code) you can export your session as a `session.json` file using the `teleport` command.
156156

157+
Gemini sessions are stored locally under `~/.gemini/tmp/*/chats`. You can convert any of those JSON files using the `json` command.
158+
157159
### Converting all sessions
158160

159161
Convert all your local Claude Code sessions to a browsable HTML archive:

0 commit comments

Comments
 (0)