Skip to content

VS Code Extension: Time-Travel Trace Debugger #4

Open

Description

@NickAltstein

Summary

Build a VS Code extension that turns run.json traces into an interactive, clickable debugging experience. Tree view in the sidebar, replay buttons on each step, source code highlighting at the exact line.

Motivation

Traces are currently static JSON files. Developers must run infini replay --step s3 in the terminal and cross-reference file paths manually. A VS Code extension makes time-travel debugging visual and intuitive — the fastest path to making INFINI indispensable for daily development.

Architecture

extensions/vscode-infini/
├── package.json
├── src/
│   ├── extension.ts         # Activation, commands, tree view registration
│   ├── traceProvider.ts     # Tree data provider (parses run.json into a sidebar tree)
│   ├── replay.ts            # Replay command (calls `infini replay --step --json`, opens file at line)
│   ├── codeMapper.ts        # Maps step IDs to source code locations
│   └── diffView.ts          # Side-by-side trace diff (optional, Phase 2)
└── README.md

Key interactions

  1. User opens a workspace with runs/latest/run.json
  2. Sidebar shows: trace metadata → steps (expandable) → tool calls
  3. Each step has a "Replay" button
  4. Clicking Replay → infini replay --step s3 --json → opens source file at the relevant line
  5. "Step Forward" / "Step Backward" navigate through the trace

Implementation Phases

Phase Effort Deliverable
Phase 0 2 days Basic tree view + parse run.json
Phase 1 2 days Replay command + highlight source code
Phase 2 2 days Step navigation + diff view
Phase 3 1 day Polish, auto-detect traces in workspace

Dependencies

  • INFINI CLI must be installed (checked at activation)
  • TypeScript + VS Code Extension API
  • Scaffold available at extensions/vscode-infini/ (created, needs implementation)

Activity

  1. added
    enhancement
    on Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions