Libretto PR Agents
Automatically investigate failing Playwright tests and open pull requests with fixes
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?
Is Libretto PR Agents free?
Does it work with Selenium or Puppeteer?
Does it change my existing test setup?
Best For
Featured in
Alternatives to Libretto PR Agents
View allPlaywright
Microsofts open-source end-to-end browser testing framework for Chromium, Firefox, and WebKit with one API.

Buildkite
Hybrid CI/CD where the control plane is hosted but the build agents run on your own infrastructure.
Storybook
Open-source workshop for building UI components in isolation. Preview, document, and test them outside the app.

Postman
API client and collaboration platform that started as a Chrome extension and now covers design, testing, and mocking.
Reviews (8)
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.
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.
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.
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.
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.
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.
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.
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.
Related Tools

Chromatic
Visual regression testing and review platform built by the Storybook team, with cloud-rendered snapshots and PR integration.
Playwright
Microsofts open-source end-to-end browser testing framework for Chromium, Firefox, and WebKit with one API.

AgentsProof
Trace, grade and share proof that your AI agent actually works

CircleCI
Hosted continuous integration that runs your test suite in parallel containers across Linux, macOS, Windows, and ARM.