Repository navigation
Open
Labels
enhancementNew feature or request
Description
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
- User opens a workspace with
runs/latest/run.json - Sidebar shows: trace metadata → steps (expandable) → tool calls
- Each step has a "Replay" button
- Clicking Replay →
infini replay --step s3 --json→ opens source file at the relevant line - "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)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity