A VS Code extension that captures, visualizes, and explores Claude Code (and Codex) conversation trajectories — including full API request/response capture.
Features
Trajectory Explorer — Browse all Claude Code and Codex sessions from the sidebar, organized by project
API Capture Proxy — Transparent HTTP proxy that intercepts Claude API calls, capturing full request/response data with streaming support
Cross-Window Capture — Proxy auto-discovery via lock file; any VS Code window can capture, and others sync automatically
Unified Timeline — View conversations with user prompts, assistant responses, tool calls, thinking blocks, and linked API captures in one timeline
Remote SSH Support — Works on remote servers via VS Code Remote SSH; captures stored on the remote machine
Getting Started
Install the extension
Click the capture button in the status bar (or use the command palette: "Trajectory: Start Capture Proxy")
Use Claude Code in any terminal — API calls are automatically captured
Browse sessions in the Trajectory Viewer sidebar
Click a session to view the full conversation timeline with linked API data
How It Works
The extension runs a local HTTP proxy on 127.0.0.1:9876 and sets ANTHROPIC_BASE_URL in your terminal environment. Claude Code sends API requests through the proxy, which forwards them to api.anthropic.com while capturing the full request and response.
Captures are stored in ~/.claude/recorder/captures/ organized by project and session.
Cross-Window Support
Any window can start the proxy; others auto-discover it via ~/.claude/recorder/proxy.lock
If the proxy owner window closes, another window takes over automatically
Each window's status bar shows the live call count (polled every 1 second)
Remote SSH
The extension runs on the remote server via extensionKind: ["workspace"]. Local and remote captures are fully independent — each machine has its own proxy and storage.