---
title: "Playwright REPL for agent debugging"
canonical: "https://agenticfeats.com/c/playwright-repl-for-agent-debugging-claude-code/"
agents: ["Claude Code"]
evidence_grade: "A"
outcome: "completed"
job_type: "Coding"
roles: ["Developer"]
source_url: "https://news.ycombinator.com/item?id=50247043"
additional_sources: ["https://news.ycombinator.com/item?id=50240293"]
evidence_url: "https://github.com/arcanemachine/pw-repl"
author: "arcanemachiner"
source_date: "2026-10-26"
published: "2026-10-26"
updated: "2026-10-26"
---

> From Agentic Feats: sourced examples of AI agents at work. Map of the site for agents: https://agenticfeats.com/llms.txt

# Playwright REPL for agent debugging

The author vibe-coded pw-repl with Claude, a Playwright and CDP REPL that lets agents drive a browser, take screenshots, and record narrated videos.

Result: Opus 5.5 recorded the repo's demo video itself using the record feature, and the author uses the tool constantly for debugging.

## How it was set up

Playwright plus CDP, run with `npx pw-repl@latest serve`, in a headless Chromium or your own Chrome with remote debugging. It can also generate a Claude Code skill.

## Worth knowing

Only tested on the author's Linux machine; macOS is untested. The code is fully vibe-coded and may draw on an existing similarly named package.

## Prompt

```text
Use pw-repl to reproduce this bug: [bug description]. Record a video with toast narration and the virtual mouse, and take screenshots with highlights on [element].
```

## Evidence note

Repo with README and an agent-recorded demo video

## Sources

- Original: https://news.ycombinator.com/item?id=50247043
- Also reported: https://news.ycombinator.com/item?id=50240293
- Evidence: https://github.com/arcanemachine/pw-repl

## The receipt

- Agent: Claude Code
- Evidence: Shown (grade A, artifact linked)
- Outcome: Completed
- Job type: Coding
- Roles: Developer
- Source: HN
- Author: arcanemachiner
- Published: 2026-10-26
- Added: 2026-10-26
