frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Libretto – Making AI browser automations deterministic

https://github.com/saffron-health/libretto
40•muchael•3h ago
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 you can inspect, run, and debug”.

Here’s a demo: https://www.youtube.com/watch?v=0cDpIntmHAM. Docs start at https://libretto.sh/docs/get-started/introduction.

We spent a year building and maintaining browser automations for EHR and payer portal integrations at our healthcare startup. Building these automations and debugging failed ones was incredibly time-consuming.

There’s lots of tools that use runtime AI like Browseruse and Stagehand which we tried, but (1) they’re reliant on custom DOM parsing that's unreliable on older and complicated websites (including all of healthcare). Using a website’s internal network calls is faster and more reliable when possible. (2) They can be expensive since they rely on lots of AI calls and for workflows with complicated logic you can’t always rely on caching actions to make sure it will work. (3) They’re at runtime so it’s not interpretable what the agent is going to do. You kind of hope you prompted it correctly to do the right thing, but legacy workflows are often unintuitive and inconsistent across sites so you can’t trust an agent to just figure it out at runtime. (4) They don’t really help you generate new automations or help you debug automation failures.

We wanted a way to reliably generate and maintain browser automations in messy, high-stakes environments, without relying on fragile runtime agents.

Libretto is different because instead of runtime agents it uses “development-time AI”: scripts are generated ahead of time as actual code you can read and control, not opaque agent behavior at runtime. Instead of a black box, you own the code and can inspect, modify, version, and debug everything.

Rather than relying on runtime DOM parsing, Libretto takes a hybrid approach combining Playwright UI automation with direct network/API requests within the browser session for better reliability and bot detection evasion.

It records manual user actions to help agents generate and update scripts, supports step-through debugging, has an optional read-only mode to prevent agents from accidentally submitting or modifying data, and generates code that follows all the abstractions and conventions you have already in your coding repo.

Would love to hear how others are building and maintaining browser automations in practice, and any feedback on the approach we’ve taken here.

Comments

devstatic•1h ago
this is interesting
messh•1h ago
how does it differ from playwright-cli?
muchael•52m ago
At its core, libretto generates, validates, and helps with debugging RPA scripts. As far as I understand tools like playwright CLI are more focused on letting your agent use playwright to perform one-off automations.

The implementation is also pretty different:

- libretto gives your agent a single exec tool (instead of different tools for each action) so it can write arbitrary playwright/javascript and is more context efficient

- Also we gave libretto instructions on bot detection avoidance so that it will prefer using network requests for automation (something that other tools don’t support), but will fall back to playwright if it identifies network requests as too risky

seagull•1h ago
I've wanted something like this for ages, excited to try this out!
surgical_fire•1h ago
For a moment I throught it was something about libretro. As an avid RetroArch user the headline picked my interest.

Then I clicked and realized it's just some other AI shit.

gbibas•58m ago
Cool. Thank you for sharing. While AI tools are extremely powerful, packages like this help create some good standards and stepping stones for connectivity that the models haven’t gotten around to yet. Thanks again.
arpadav•51m ago
this looks awesome
etwigg•47m ago
Thanks for this! We have clear answers for things that are 100% and 0% automated, but it’s always that 80%-99% automated slice where the frontier is, great idea.

Show HN: Libretto – Making AI browser automations deterministic

https://github.com/saffron-health/libretto
40•muchael•3h ago•8 comments

Show HN: GNU Grep as a PHP Extension

https://github.com/hparadiz/ext-gnu-grep
13•hparadiz•5d ago•0 comments

Show HN: Every CEO and CFO change at US public companies, live from SEC

https://tracksuccession.com/explore
152•porsche959•6h ago•60 comments

Show HN: Monadic Networking Library for Go

https://github.com/philip-peterson/fp-go-net
2•ironmagma•58m ago•0 comments

Show HN: Fakecloud – Free, open-source AWS emulator

https://github.com/faiscadev/fakecloud
2•lucas_vieira•1h ago•1 comments

Show HN: Tier – Adaptive tool routing that makes small LLMs 10pt more accurate

https://github.com/yantrikos/tier
2•pranabsarkar•1h ago•4 comments

Show HN: Tine – Drive Wayland Around with Agents

https://github.com/smythp/tine
4•tarboreus•2h ago•4 comments

Show HN: Dependicus, a dashboard for your monorepo's dependencies

https://descriptinc.github.io/dependicus/
6•irskep•2h ago•0 comments

Show HN: Cush – curl your shell, an HTTP tunnel for AI agents

https://github.com/statespace-tech/cush
2•esafranchik•3h ago•0 comments

Show HN: MCP server gives your agent a budget (save tokens, get smarter results)

https://l6e.ai
3•bennettdixon•3h ago•0 comments

Show HN: Avec – iOS email app that lets you handle your Gmail inbox in seconds

https://apps.apple.com/us/app/avec-email-app-for-gmail/id6742199038
14•jnnnthnn•3h ago•1 comments

Show HN: CD-Deluxe for the Command Line

https://github.com/m6z/cd-deluxe
2•m6z•3h ago•1 comments

Show HN: Compile English specs into 22 MB neural functions that run locally

7•yuntian•4h ago•0 comments

Show HN: Pseudonymizing sensitive data for LLMs without losing context

https://atticsecurity.com/en/blog/why-llms-hate-fake-data-token-proxy/
4•n00pn00p•6h ago•3 comments

Show HN: Scope-structured arena memory for C, O(1) cleanup, no GC/borrow checker

https://github.com/hollow-arena/ariandel
3•theperezident•4h ago•0 comments

Show HN: Plain – The full-stack Python framework designed for humans and agents

https://github.com/dropseed/plain
89•focom•1d ago•49 comments

Show HN: LangAlpha – what if Claude Code was built for Wall Street?

https://github.com/ginlix-ai/langalpha
143•zc2610•1d ago•51 comments

Show HN: Skillgrab – scan any project, auto-install matching AI skills

https://briascoi.github.io/skillgrab/
4•ismaelb•7h ago•1 comments

Show HN: SynapseKit – Async-native Python framework for LLM pipelines and agents

https://github.com/SynapseKit/SynapseKit
4•aminau•7h ago•2 comments

Show HN: Xit – a Git-compatible VCS written in Zig

https://github.com/xit-vcs/xit
9•xeubie•7h ago•1 comments

Show HN: Kelet – Root Cause Analysis agent for your LLM apps

https://kelet.ai/
47•almogbaku•1d ago•23 comments

Show HN: Ithihāsas – a character explorer for Hindu epics, built in a few hours

https://www.ithihasas.in
174•cvrajeesh•1d ago•44 comments

Show HN: StegoForge – Open-source suite for steganography and ML forensics

https://github.com/Nour833/StegoForge
3•nour833•8h ago•0 comments

Show HN: Helix – open-source self-healing back end for production crashes

https://88hours.github.io/helix-community/
2•NomiJ•9h ago•3 comments

Show HN: Run GUIs as Scripts

https://github.com/skinnyjames/hokusai-pocket
22•zero-st4rs•5d ago•7 comments

Show HN: boringBar – a taskbar-style dock replacement for macOS

https://boringbar.app/
515•a-ve•3d ago•298 comments

Show HN: My favorite local-feeling remotely accessible Claude Code setup

https://gist.github.com/Reebz/99db98ad4d3c45ebed84989a13710788
4•Reebz•13h ago•1 comments

Show HN: Astrial – Spherical Go on a Snub Dodecahedron

https://astrial.app
3•mingli_yuan•14h ago•1 comments

Show HN: Why Rotating Vectors Makes Compression Beautiful

https://demos.connectai.blog/quantization_blog.html
3•linux_devil•14h ago•0 comments

Show HN: Uninum – All elementary functions from a single operator, in Python

https://github.com/Brumbelow/uninum
5•brumbelow•21h ago•1 comments