Libretto PR agents
Automatically fix failing playwright scripts
Details
- External ID
- 48939710
- Source
- HN
- Company
- —
- Product
- Libretto PR agents
- Website domain
- libretto.sh
- Launched
- July 16, 2026
- Cohort
- —
- Upvotes
- 22
- Upvotes percentile
- 0.7353643966547192
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
Libretto PR agents is a free TypeScript library for maintaining Playwright browser automations. Add one line of code to your existing Playwright scripts and it lets an agent automatically open GitHub PRs fixing the script when it fails.A few months ago we released Libretto, a CLI + coding-agent skill for building deterministic browser automations. The idea was that for many browser workflows, especially repetitive business workflows, you don’t need an AI agent making decisions at runtime. You want deterministic Playwright scripts that are inspectable, faster to run, and much cheaper than repeatedly calling an AI browser agent.That helped us generate Playwright and network-request-based scripts, but websites can often change which breaks deterministic scripts. So maintaining a variety of scripts at scale is a headache. If you already have a bunch of functioning Playwright scripts, the last thing you want is to rewrite everything around a new runtime AI framework like browser-use or stagehand just to make maintenance easier.The Libretto PR Agent pulls your code from GitHub and connects via CDP to the browser session that just failed. It has an exec tool for injecting Playwright and javascript into the page, and once its inspected the failure, it opens a PR to your repo with a proposed code fix.You use it like this: try { await automationLogic(page); } catch (error) { await playwrightDebugger.debugFailure(error, page); throw error; } The agent is completely free and open source, lets you bring your own LLM provider API keys, and works with any browser provider (including self hosted).The source code is here: https://github.com/saffron-health/libretto/tree/main/package...We think this makes browser integrations much easier to maintain, especially for teams that already have Playwright browser automation scripts in production and don’t want a full migration to get AI-assisted debugging and repair.If you’re maintaining browser automations in production, would love to know what your debugging flow is currently and any feedback on this approach.
Enrichment
- Theme
- browser automation and scraping for AI
- Vertical
- —
- Function
- Agent / copilot
- Audience
- Developer
- AI stance
- AI-native
- Project type
- Commercial product
- Normalized one-liner
- ai agent to fix failing playwright tests
- Manually corrected
- False
Could you build this?
Yes It is an error-handling wrapper around Playwright that captures failure states and DOM snapshots, feeds them to an LLM, and submits PRs using the standard GitHub API.
Discussion
5 comments analyzed.
Competitors mentioned: Brainspack - AI tooling for browser automation
Concerns raised: Unclear value proposition vs. rolling own solution with prompt, Feels like solution looking for problem
Competitors
Other products that read as similar to this one — 155 launches clear the similarity bar, closest 8 shown.
Attention rank: #53 of 156 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 245 days after the earliest competitor.
- Libretto · hn · 2026-04-15 · 134 upvotes · similarity 0.75
- Browser Tools SDK · hn · 2026-07-21 · 11 upvotes · similarity 0.63
- Browser4 · hn · 2025-12-13 · 7 upvotes · similarity 0.60
- Playwright Best Practices AI SKill · hn · 2026-02-05 · 7 upvotes · similarity 0.50
- I spent 3 months making desktop automation stop lying to AI agents · hn · 2026-08-15 · 6 upvotes · similarity 0.49
- Open-source browser for AI agents · hn · 2026-03-11 · 155 upvotes · similarity 0.49
- 127 PRs to Prod this wknd with 18 AI agents: metaswarm. MIT licensed · hn · 2026-02-03 · 5 upvotes · similarity 0.44
- ProofShot · hn · 2026-03-24 · 161 upvotes · similarity 0.41
Other launches for this product
- No other launches for this product.