Agent Session Insights Mark Russinovich released Agent Session Insights, a Python 3.12+ package that generates offline HTML and PDF reports from coding-agent conversations, including complete messages, evidence-linked analysis, per-model token and cost comparisons, and a zoomable timeline with local day/night shading. The tool supports Copilot CLI, Claude Code, Codex, Cursor exports, and Replit conversation exports, and its `repo` command selects the newest matching session, freezes its logs, launches the native harness headlessly for reviewed annotations, then generates and verifies the report; `--noagent` skips model calls for measured accounting and replay only. Create offline reports from coding-agent conversations: complete messages, evidence-linked analysis, per-model token and cost comparisons, and a zoomable timeline with local day/night shading. Supports Copilot CLI, Claude Code, Codex, Cursor exports, and Replit conversation exports. See the example: HTML report https://markrussinovich.github.io/agent-session-insights/ , standalone player https://markrussinovich.github.io/agent-session-insights/player.html , or PDF https://markrussinovich.github.io/agent-session-insights/report.pdf . Use Python 3.12 or later. Install the package and its Chromium renderer in a virtual environment: Windows PowerShell python -m venv .venv .\.venv\Scripts\Activate.ps1 python -m pip install agent-session-insights python -m playwright install chromium macOS/Linux python3 -m venv .venv source .venv/bin/activate python -m pip install agent-session-insights python -m playwright install chromium On Linux, missing browser system libraries may require python -m playwright install --with-deps chromium and system-install privileges. Report commands check rendering dependencies before processing sessions or launching an agent. The installed agent-session-insights command works from any directory. python -m agent session insights accepts the same arguments. For a source checkout, use python review.py after installing requirements.txt ; see the maintainer guide https://github.com/markrussinovich/agent-session-insights/blob/main/MAINTAINING.md development-setup . If Windows activation is unavailable, invoke the virtual environment's .\.venv\Scripts\python.exe with the module or checkout entry point directly. agent-session-insights repo --repo C:\Source\my-project This selects the newest matching session , freezes its logs, launches its native harness headlessly for reviewed annotations, then generates and verifies the report. The harness CLI must be on PATH and signed in; normal model charges apply. Only the selected evidence is reviewed. Use --noagent for measured accounting and replay without qualitative annotations or model calls. Automatic discovery supports Copilot, Claude, and Codex. It matches recorded repository/working-directory metadata in the current user's native history stores, not project mentions in messages, and excludes native subagents. Missing or malformed metadata limits discovery; Cursor/Replit require explicit exports explicit-exports-and-manifests . Native stores under your home are .copilot\session-state , .claude\projects , .codex\sessions , and .codex\archived sessions . Home-directory overrides honor COPILOT HOME , CLAUDE CONFIG DIR , and CODEX HOME . List the matching sessions before choosing: agent-session-insights discover --repo C:\Source\my-project agent-session-insights repo --repo C:\Source\my-project --session copilot:SESSION ID Repeat --session to combine selected IDs, or use --all for every match. For a combined report, the first selected session's harness reviews the evidence. --harness filters the histories searched; it does not choose a different reviewer for those histories. | Option | Purpose | |---|---| | --repo PATH | Required local repository directory. | | --session ID | Select an ID or harness:ID ; repeat for multiple sessions. | | --all | Combine all matches; mutually exclusive with --session . | | --harness NAME | Search only copilot , claude , or codex . | | --root PATH | Override the native history directory; requires --harness . | | --output PATH | Override the report destination. | | --noagent | Skip the harness and qualitative annotations. | | --logs-only | Save selected raw logs as session-logs.zip in the output directory; no analysis, agent, or report. | | --timezone ZONE | IANA report timezone; default America/Los Angeles . | | --pricing PATH | Override the bundled, dated retail API pricing card. | For example, combine only Copilot sessions without launching an agent: agent-session-insights repo --repo C:\Source\my-project --harness copilot --all --noagent All commands have --help with command-specific examples. agent-session-insights repo --repo C:\Source\my-project --all --logs-only --output .\collected-logs This writes .\collected-logs\session-logs.zip without running analysis, calling a model, or requiring Chromium/Playwright. The same selection rules apply: newest matching session by default, repeated --session for specific sessions, or --all for every match; --harness and --root also work. Omit --output to use the normal default destination directory. The ZIP contains byte-for-byte copies of the selected history files under logs , a manifest.json with source hashes, and discovery.json . It does not include auxiliary session files or subagent histories. Extract it and use run --manifest with the extracted manifest to generate a report later. Report-only --pricing , --timezone , and --noagent do not trigger analysis; the timezone is saved in the manifest for later use. Existing destination files are left untouched, and an existing session-logs.zip is refused; choose another output directory or move the previous ZIP. Raw logs are not redacted and may contain credentials, private conversation text, and local paths. Review before sharing. The default destination is agent-session-reports\