VS Code prompt-to-edit replay for AI-assisted code review
Engineering teams adopting Copilot, Cursor, Claude Code, or similar tools should add a lightweight trace layer to pilot projects: capture chat prompts, fine-grained edits, file saves, and shadow commits, then replay them alongside diffs during review or retro. The review pain is provenance. A pull request can show the final patch, but it usually cannot show which prompt caused a risky edit, which AI suggestion was discarded, or whether a developer spent a long session cycling through the same error.
RECAP gives a concrete implementation path. Its VS Code extension records Copilot chat JSON and shadow git changes, links text edit groups to diffs within a five-minute window, and labels edits as Copilot, human, partial match, unmatched, or likely external source. In a course deployment, it captured 2,034 prompts and 8,239 shadow-git commits across 406 work sessions. The useful first test for a software team is small: run this kind of capture on one AI-assisted project for two weeks, then inspect repeated error loops, AI edit share by session, and review comments tied to generated code.