ToolsThe story, in brief

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.

Paper-cut illustration of a coral software window opening into a three-dimensional drafting space.
New tools for building and creating with AI.AI illustration by KeyNews
The KeyNews take

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 know
  1. Product: Libretto – CLI + Skill for deterministic browser automation

  2. Core innovation: Development-time code generation vs. runtime agents

  3. Use case origin: Healthcare EHR and payer portal integrations

  4. Hybrid approach: Playwright UI automation + network/API requests within browser session

  5. Features: Manual action recording, step-through debugging, read-only mode, repo-native code generation

  6. Positioning against: Browseruse, Stagehand (runtime AI agents)

  7. Problem solved: Reliability on legacy/complex websites, cost reduction, interpretability, debuggability

  8. Published: April 15, 2026 (Show HN post)

  9. GitHub: saffron-health/libretto

  10. Hacker News engagement: 78 points, 23 comments

  11. Libretto uses development-time AI code generation instead of runtime agents

  12. Combines Playwright UI automation with direct network/API requests for reliability

  13. Includes step-through debugging and read-only mode to prevent accidental data modification

  14. Built by healthcare startup after year of EHR and payer portal integrations

  15. Open source (GitHub: saffron-health/libretto)

  16. 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…
Read original report
Back to today's editionMore tools news

Keep reading

Related stories

More from Tools