Alejandro AI for All

Claude Code workflow · Bug Hunter Loop for Claude Code

An exploratory QA loop that finds bugs in your web app with Claude Code

Claude Code opens your running web app in a real browser and tries to break it, cycle after cycle: steps out of order, bad data, two tabs at once, keyboard only. A finding counts only if it reproduces 2 of 2, and each one becomes a Playwright test marked test.fail().

Cover of Bug Hunter Loop for Claude Code

The result

Before

You test your app by hand and bugs slip through.

After

Claude walks through it in a real browser, cycle after cycle, and reports only what reproduces 2 of 2, each with a Playwright test.

The problem it solves

Unit tests check what you thought of. The bugs users hit come from what you didn't: a double submit, a stale tab, a strange file. Manual exploratory testing finds them but takes hours you don't have. This loop does that exploration with Claude Code and leaves evidence you can act on.

Who it's for

  • Developers shipping a web app without a QA team
  • Projects that already use Playwright with TypeScript
  • Teams who want reproducible bug reports, not guesses
  • Anyone hardening an app before launch

Needs: Claude Code, Playwright with TypeScript, a disposable test database

See it in 20 seconds.

A short video of what the kit does for you, with sound.

What's inside

Claude Code explores your app in a real browser, cycle after cycle; every bug reproduced 2 of 2 becomes a red Playwright test.

Prompts, templates and Playwright helpers that make Claude Code explore your running web app in a real browser, cycle after cycle: out of order, with bad data, in two tabs, keyboard only.

A finding counts only if it reproduces 2 of 2; each gets a severity, a register entry and a Playwright test marked test.fail().

What you get:

  • The qa-explorer subagent: six tactics, a four-level severity rubric, a fixed report.
  • The /loop prompt: liveness check, dead-cycle recovery, and rules for picking the next module and tactic.
  • One per-project config file, with a filled-in example.
  • TypeScript helpers, 12 harmless hostile-file fixtures and an example red test.
  • Tracking templates, a calibration protocol and docs.

What you customize:

  • Your app: start and stop commands, ports and test accounts, in one config file.
  • The project adapter in the helpers (sign-up, session check, sign-out).
  • A disposable test database, with its reset and safety guard.
  • Your modules in the coverage matrix.

From the private project it came from (its results, not a promise of yours): the agent found both planted defects in calibration, and the register holds 26 defects reproduced 2 of 2 (11 high, 13 medium, 2 low).

Good to know: it is prompts and templates, not software. One cycle costs on the order of hundreds of thousands of tokens. Requires Claude Code (subagents, /loop, worktrees), Playwright with TypeScript and Playwright MCP. Use it only on your own app, locally or in a test environment.

Questions about this kit

Does it fix the bugs?

No. It finds and documents them: a severity, a register entry and a red Playwright test for each one. Fixing them is up to you or your usual Claude Code workflow.

How much does a cycle cost?

On the order of hundreds of thousands of tokens per cycle. It runs as a /loop, so you decide how many cycles to run.

Can I run it against production?

No. Use it only on your own app, locally or in a test environment, with a disposable test database. The kit includes a reset with a safety guard.

What do I need?

Claude Code with subagents, /loop and worktrees, Playwright with TypeScript, and Playwright MCP.

Bug Hunter Loop for Claude Code

An exploratory-QA agent loop that turns every reproduced bug into a red E2E test