Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
__pycache__
uv.lock
.playwright-mcp/
.worktrees/
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ All commands support these options:
- `-o, --output DIRECTORY` - output directory (default: writes to temp dir and opens browser)
- `-a, --output-auto` - auto-name output subdirectory based on session ID or filename
- `--repo OWNER/NAME` - GitHub repo for commit links (auto-detected if not specified). For `web` command, also filters the session list.
- `--markdown` - output as a single Markdown file instead of HTML
- `--open` - open the generated `index.html` in your default browser (default if no `-o` specified)
- `--gist` - upload the generated HTML files to a GitHub Gist and output a preview URL
- `--json` - include the original session file in the output directory
Expand Down Expand Up @@ -134,6 +135,24 @@ claude-code-transcripts json session.json -o ./my-transcript --gist

**Requirements:** The `--gist` option requires the [GitHub CLI](https://cli.github.com/) (`gh`) to be installed and authenticated (`gh auth login`).

### Markdown output

Use the `--markdown` flag to generate a single Markdown file instead of multi-page HTML:

```bash
claude-code-transcripts --markdown
claude-code-transcripts json session.json --markdown -o ./output
claude-code-transcripts web SESSION_ID --markdown
```

When `--open` is used with `--markdown`, the file opens in your `$VISUAL` or `$EDITOR` instead of a browser. If neither is set, it falls back to the system default application.

The `--gist` flag works with `--markdown` too — since GitHub renders Markdown natively, no preview URL is needed:

```bash
claude-code-transcripts json session.json --markdown --gist
```

### Auto-naming output directories

Use `-a/--output-auto` to automatically create a subdirectory named after the session:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ build-backend = "uv_build"

[dependency-groups]
dev = [
"black>=26.1.0",
"pytest>=9.0.2",
"pytest-httpx>=0.35.0",
"syrupy>=5.0.0",
Expand Down
Loading