Open files in VS Code and Cursor / Developer files

Read your Claude Code history in VS Code

Claude Code saves every session as a JSONL file under ~/.claude/projects. claude --resume lists them in the terminal. The free Agent Session Viewer shows the same sessions in a VS Code side view, grouped by project with subagents nested. Each opens as a readable transcript with edits as diffs and token counts, and one click resumes it in a terminal. It reads Codex sessions too.

Install in VS CodeMarketplace pageOpen VSX (Cursor, Windsurf, VSCodium)

Free, MIT license. Extension ID zovo.agent-session-viewer, version 0.2.3. Needs VS Code 1.90.0 or newer.

The Sessions view on the left, a Claude Code session with its subagent nested under it, and the session open on the right with model, branch, token and cost chips and an Edit call shown as a diff
The Sessions view on the left, a Claude Code session with its subagent nested under it, and the session open on the right with model, branch, token and cost chips and an Edit call shown as a diff.

Steps in VS Code

  1. Install Agent Session Viewer from the Marketplace, or press Ctrl+P (Cmd+P on macOS) and run ext install zovo.agent-session-viewer.
  2. Click the Agent Sessions icon in the activity bar.
  3. Click a session to read it. Tool calls are folded, and failed ones are marked in red.
  4. Click the search icon to search all sessions. Results open at the match.
  5. Click the terminal icon next to a session to resume it with claude --resume (or codex resume).

Steps in Cursor, Windsurf or VSCodium

  1. Open the Extensions view with Ctrl+Shift+X (Cmd+Shift+X on macOS).
  2. Search for zovo.agent-session-viewer and click Install. Cursor, Windsurf and VSCodium install from Open VSX, where it is published as zovo/agent-session-viewer.
  3. If your editor has no gallery, download the .vsix from the Open VSX page and run "Extensions: Install from VSIX...".
  4. Then use it the same way as in VS Code.

What Agent Session Viewer handles

What it does not do

Other options

Install counts and Open VSX status were checked on 8 November 2026. Descriptions in quotes are the extensions' own.

Questions

Where does Claude Code store chat history?

In ~/.claude/projects, one folder per project and one .jsonl file per session. If CLAUDE_CONFIG_DIR is set, it is under that folder instead.

Can I delete old sessions from the viewer?

No. It is read-only by design, so a click can never lose history.

Is it made by Anthropic?

No. It is an independent free extension, not affiliated with Anthropic or OpenAI. It makes no network calls and has no telemetry.

More about Agent Session Viewer

Read the Agent Session Viewer page for every feature and setting, or the source code on GitHub.

Support this work

If this extension saves you time, you can support the work on GitHub Sponsors. Monthly tiers start at $5, and one-time tiers start at $15. Sponsorship is optional, and the tool works the same without it.