pr-video-receipts
Agentic Video Receipts on PRs
Record a .webm of an agent-driven browser test via Playwright's page.screencast API, convert to .mp4 for inline playback, upload as a GitHub draft release asset, embed the URL in a PR comment, and garbage-collect the draft on PR close. The result is a short video artifact that reviewers can watch instead of mentally simulating a diff.
Terminology: Playwright 1.59 coined "agentic video receipts". Cursor Cloud Agents (Feb 2026) shipped the same idea under "Cloud Agents with Computer Use".
Two phases
When the user invokes one of the trigger phrases, run the Per-repo setup below. When a smoke-test skill is actually recording, follow Per-smoke-test usage.
Per-repo setup
Three changes. All idempotent.
1. .mcp.json — enable the devtools capability
Edit the repo's .mcp.json (or ~/.mcp.json) and append --caps=devtools to the args of whichever Playwright MCP server the smoke test uses. Without this flag, browser_start_video / browser_stop_video are not registered as tools.
Example (headed under xvfb):