Libretto PR Agents

Libretto PR Agents

Automatically investigate failing Playwright tests and open pull requests with fixes

Free
4.6 (8 reviews)

Gallery

About Libretto PR Agents

Libretto PR Agents watches your Playwright tests and, when one fails, investigates the live page to figure out what changed. It then opens a GitHub pull request with proposed code fixes. The goal is to automate the tedious maintenance work that comes with browser automation scripts, especially when upstream UIs change without warning.

The problem it tackles is familiar to anyone maintaining end-to-end tests. A button gets renamed, a selector path shifts, a form adds a new field, and your test suite breaks. You get a failure notification, dig through logs, compare the current page to what the test expected, write the fix, and push a PR. Libretto automates that entire chain. When a test fails, the agent examines the actual page state, figures out the discrepancy, and proposes a correction without you having to investigate manually.

It integrates with your existing Playwright setup without requiring changes to fixtures, retries, logging, or deployment. You add the libretto-playwright-debugger package, and the agent activates only at the failure boundary. Your existing error handling still governs the current run, meaning the agent doesn't try to recover mid-test. It just handles the aftermath by creating a PR for review.

The tool works with local browsers, self-hosted infrastructure, and cloud browser providers. You bring your own LLM provider API keys, so the AI analysis runs through whatever model you prefer. Libretto itself doesn't charge for the PR agent, though your model provider and browser infrastructure have their own costs.

The target audience is QA teams and developers who maintain Playwright-based browser automations at scale. If you have dozens or hundreds of tests that break occasionally due to UI changes, the manual triage adds up. Libretto shifts that burden to an automated agent that can handle the investigation and propose fixes while you review the PRs.

The Playwright debugger package is open source under MIT license. Documentation, the npm package, and a Discord community are available for support. Currently, Libretto focuses exclusively on Playwright. Adapters for Selenium and Puppeteer are not yet available.

Where Libretto differs from other test maintenance tools is the action it takes. Many tools help you debug failures or rerun flaky tests. Libretto goes further by creating the fix as a pull request, reducing the loop from diagnosis to correction to review. You still approve the change, but the grunt work of investigating and writing the patch is done.

Key Features

  • Automatic failure investigation on live pages
  • GitHub pull request generation with fixes
  • Works with existing Playwright setup
  • Bring-your-own LLM provider keys
  • Local and cloud browser support
  • Open source Playwright debugger under MIT

Pros & Cons

What we like

  • Automates the full loop from failure to fix PR
  • No changes required to existing test fixtures or retries
  • Works with any browser provider, local or cloud
  • Open source core package under MIT license

Room for improvement

  • Playwright only, no Selenium or Puppeteer yet
  • LLM provider and browser infrastructure costs are yours
  • Proposed fixes still need human review
  • Newer product with smaller community

Frequently Asked Questions

What is Libretto PR Agents?
Libretto PR Agents automatically investigates failing Playwright tests by examining the live page, then opens a GitHub pull request with proposed code fixes. It automates the maintenance work when browser automation scripts break due to UI changes.
Is Libretto PR Agents free?
Libretto itself is free to use. However, you pay your own LLM provider for model usage and your browser infrastructure if using cloud providers. The Playwright debugger package is open source under MIT.
Does it work with Selenium or Puppeteer?
Not yet. Libretto currently supports Playwright exclusively. Adapters for Selenium and Puppeteer are not available at this time.
Does it change my existing test setup?
No. You add the libretto-playwright-debugger package and the agent activates only when a test fails. Your existing fixtures, retries, logging, and error handling stay intact. The agent handles investigation and PR creation separately.

Best For

Fixing broken Playwright selectors after UI changesReducing manual triage time on test failuresKeeping large test suites current with evolving UIsAutomating test maintenance for QA teams

Featured in

Alternatives to Libretto PR Agents

View all

Reviews (8)

M
Mia Fischer

Genuinely impressed

Libretto PR Agents solves a real problem for me without making a fuss about it. The core workflow is smooth once you are set up. Easy yes for anyone weighing the same trade offs.

6/18/2026 15 found this helpful
F
Freya Thomas Verified

Exactly what I needed

Hadn't planned on switching, but Libretto PR Agents was hard to ignore. Got real value out of open source core package under mit license. The interface stays out of my way, which I appreciate. Found it works best for fixing broken playwright selectors after ui changes.

7/1/2026 14 found this helpful
M
Marco Romano Verified

Recommended without reservation

Libretto PR Agents solves a real problem for me without making a fuss about it. Where it really wins is no changes required to existing test fixtures or retries. The core workflow is smooth once you are set up. Hard to imagine going back to my old setup.

6/12/2026 10 found this helpful
C
Chen Oliveira

Solid daily driver

Came to Libretto PR Agents after getting frustrated with what I had before. Their take on works with any browser provider, local or cloud is genuinely good. Hard to imagine going back to my old setup.

3/22/2026 8 found this helpful
D
Diego Choi

Genuinely impressed

Libretto PR Agents solves a real problem for me without making a fuss about it. Where it really wins is automates the full loop from failure to fix pr.

7/1/2026 6 found this helpful
C
Chioma Leroy Verified

Pulled its weight from week one

Picked Libretto PR Agents for the price, stayed for the quality. It just works, day after day, without surprises. It earns its place in my stack.

4/12/2026 4 found this helpful
K
Krishna Russo Verified

Two months in, no regrets

Libretto PR Agents has quietly become part of my daily flow. Got real value out of open source core package under mit license. Found it works best for keeping large test suites current with evolving uis.

5/17/2026 3 found this helpful
A
Amara Ferrari Verified

Recommended without reservation

Hadn't planned on switching, but Libretto PR Agents was hard to ignore. The local and cloud browser support is more useful than I expected. Found it works best for automating test maintenance for qa teams. Recommending it to people in a similar spot.

5/31/2026 2 found this helpful