Skip to content

CLI tool that converts Codex session JSONL files into clean, mobile-friendly HTML transcripts with pagination and optional GitHub gist publishing.

License

Notifications You must be signed in to change notification settings

brucehart/codex-transcripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codex-transcripts

Convert Codex session JSONL files from ~/.codex/ into clean, mobile-friendly HTML transcripts with pagination.

Inspired by https://github.com/simonw/claude-code-transcripts.

Installation

Use uv to install the tool:

uv tool install codex-transcripts

Or run without installing:

uvx codex-transcripts --help

Usage

This tool supports three commands:

  • local (default) - pick from recent local sessions in ~/.codex/sessions
  • json - convert a specific JSONL file
  • all - convert all sessions into a browsable archive

Convert a recent local session

codex-transcripts
# or explicitly
codex-transcripts local

Create a GitHub gist

codex-transcripts local --gist
codex-transcripts json ~/.codex/sessions/2025/12/24/rollout-...jsonl --gist-public

This prints a GitHub gist URL plus a gistpreview.github.io link that renders the HTML. The gist uses a descriptive HTML filename based on the session details.

Convert a specific file

codex-transcripts json ~/.codex/sessions/2025/12/24/rollout-...jsonl -o ./output

Convert all sessions

codex-transcripts all -o ./codex-archive

Output options

All commands support:

  • -o, --output DIRECTORY - output directory (default: temporary directory for local/json)
  • -a, --output-auto - auto-name a subdirectory based on the session filename
  • --open - open the generated index.html in your default browser
  • --json - include the source JSONL file in the output directory
  • --gist - create a GitHub gist from the generated HTML and output a preview URL (requires the gh CLI)
  • --gist-public - create a public gist instead of a secret gist

If no browser is available, the CLI prints a file:// URL you can open locally (useful for WSL2).

Development

Run tests with:

uv run pytest

About

CLI tool that converts Codex session JSONL files into clean, mobile-friendly HTML transcripts with pagination and optional GitHub gist publishing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published