Libretto PR agents
Automatically fix failing playwright scripts
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
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.
HN · launched Jul 16, 2026 · 22 upvotes (top 26%) · 0 views
Niche: ai coding agents · 470 launches, 22 in the last 7 days ▼ -48% · Explore this niche →
Category and tags
- Horizontal
- Agent / copilot
- Developer
- AI-native
- Commercial product
Visit website ↗ Source listing ↗
More like this: all 470 launches in ai coding agents →
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 : 422 launches clear the similarity bar, closest 8 shown.
Attention rank: #165 of 423 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 252 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.65
- Browser4 · hn · 2025-12-13 · 7 upvotes · similarity 0.62
- Playwright Best Practices AI SKill · hn · 2026-02-05 · 7 upvotes · similarity 0.51
- I spent 3 months making desktop automation stop lying to AI agents · hn · 2026-08-15 · 6 upvotes · similarity 0.50
- Open-source browser for AI agents · hn · 2026-03-11 · 155 upvotes · similarity 0.50
- Get your coding agent off ~2019 JavaScript, onto modern web primitives · hn · 2026-11-10 · 443 upvotes · similarity 0.48
- 127 PRs to Prod this wknd with 18 AI agents: metaswarm. MIT licensed · hn · 2026-02-03 · 5 upvotes · similarity 0.46
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.