Show HN: Libretto – Making AI browser automations deterministic
Not a black box. Libretto generates readable, debuggable browser automation code instead of hiding agent logic at runtime—critical for healthcare workflows where you can't afford runtime hallucinations.

Why it matters
A new developer tool that shifts AI-powered browser automation from opaque runtime agents to inspectable, version-controlled code—solving a real pain point in regulated industries like healthcare where determinism and auditability matter more than speed.
The key facts
16 to knowProduct: Libretto – CLI + Skill for deterministic browser automation
Core innovation: Development-time code generation vs. runtime agents
Use case origin: Healthcare EHR and payer portal integrations
Hybrid approach: Playwright UI automation + network/API requests within browser session
Features: Manual action recording, step-through debugging, read-only mode, repo-native code generation
Positioning against: Browseruse, Stagehand (runtime AI agents)
Problem solved: Reliability on legacy/complex websites, cost reduction, interpretability, debuggability
Published: April 15, 2026 (Show HN post)
GitHub: saffron-health/libretto
Hacker News engagement: 78 points, 23 comments
Libretto uses development-time AI code generation instead of runtime agents
Combines Playwright UI automation with direct network/API requests for reliability
Includes step-through debugging and read-only mode to prevent accidental data modification
Built by healthcare startup after year of EHR and payer portal integrations
Open source (GitHub: saffron-health/libretto)
Addresses limitations of runtime tools like Browseruse and Stagehand: DOM parsing fragility, cost, opacity, and debugging gaps
Go to the source
Hacker Newsgithub.com
Publisher excerpt: Libretto (https://libretto.sh) is a Skill+CLI that makes it easy for your coding agent to generate deterministic browser automations and debug existing ones. Key shift is going from “give an agent a prompt at runtime and hope it figures things out” to: “Use coding agents to generate real scripts…