Skip to main content

A web viewer for AI agent coding sessions (Claude Code, Codex, etc.)

Project description

Agent Session Viewer

Browse, search, and revisit your AI coding sessions. Never lose track of that clever solution your AI pair programmer came up with three weeks ago.

Session Viewer

Why?

AI coding sessions pile up fast. Finding that one conversation where you solved a tricky bug or implemented a specific pattern means digging through session files by hand. This tool gives you instant full-text search across every session from Claude Code and Codex, organized by project.

Features

  • Full-text search - Find any message across all your sessions instantly
  • Live updates - Active sessions refresh automatically as new messages arrive
  • Auto-sync - Background sync every 15 minutes, plus manual sync with r
  • Keyboard-first - Vim-style navigation (j/k/[/]) for fast browsing
  • Project organization - Sessions grouped by codebase
  • Export & publish - Download sessions as HTML or publish to GitHub Gist for sharing
  • Local-first - All data stays on your machine in ~/.agent-session-viewer/
  • Zero config - Works out of the box

Install

# With uv (recommended)
uv tool install agent-session-viewer

# With pip
pip install agent-session-viewer

Usage

# If installed via uv tool install or pip
agent-session-viewer

# Or run directly without installing
uvx agent-session-viewer@latest

Opens a browser at http://localhost:8080.

Options:

  • --port 9000 - Use a custom port
  • --no-browser - Don't open browser automatically
  • --host 0.0.0.0 - Bind to all interfaces

Keyboard Shortcuts

Key Action
j / k Next / previous message
] / [ Next / previous session
o Toggle message order
r Sync sessions
e Export session as HTML
p Publish session to Gist
⌘K Focus search
? Show all shortcuts

Export & Publish

Share your AI coding sessions with teammates, for blog posts, or to document how you solved a problem.

Export to HTML

Press e or click Export to download the current session as a self-contained HTML file.

  • Works offline in any browser
  • Interactive toggles for thinking blocks and message order (pure CSS, no JavaScript)
  • Can be hosted on any static file server or shared directly

Publish to GitHub Gist

Press p or click Publish to instantly share a session via GitHub Gist.

First-time setup:

  1. Click "Publish" — a setup modal appears
  2. Click the link to create a GitHub token (only needs the gist scope)
  3. Paste the token and click "Save Token"

After setup, publishing is one click. You'll get two URLs:

URL Purpose
View URL Shareable link that renders the HTML directly in the browser
Gist URL Link to the gist on GitHub (for editing or deleting)

Publish Modal

Your token is stored locally in ~/.agent-session-viewer/config.json with restricted file permissions.

Supported Agents

  • Claude Code - syncs from ~/.claude/projects/
  • Codex - syncs from ~/.codex/sessions/

How It Works

The viewer syncs sessions from each agent's local storage into its own database with full-text search indexing. When you're viewing an active session, it watches the source file and updates the UI within seconds of new messages.

Acknowledgements

Inspired by claude-history-tool by Andy Fischer and claude-code-transcripts by Simon Willison.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_session_viewer-0.3.2.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_session_viewer-0.3.2-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file agent_session_viewer-0.3.2.tar.gz.

File metadata

  • Download URL: agent_session_viewer-0.3.2.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for agent_session_viewer-0.3.2.tar.gz
Algorithm Hash digest
SHA256 663ede80d6a40d523a0bc88f08ad3588e09d8db54d9c0b1356039610c6f65575
MD5 d1bba45d4c09335ac6878a65e54c867f
BLAKE2b-256 271cc69679e2b64fb48c7801be77f7869deaf3cdb8b7495ee8ae7f7db1a087e2

See more details on using hashes here.

File details

Details for the file agent_session_viewer-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_session_viewer-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9b8775af5ab128910e8e445c886367d7bea396b46c89249ded578b7f4b59c2c3
MD5 0773721a575e0929b6abc72e5117ccf2
BLAKE2b-256 9edfb73f01b4f8a90c3a405d79025a05ea37b31cfff9ff8e1251eeb04b1da4e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page