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
22•muchael•1h 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•32m ago
this is interesting
messh•29m ago
how does it differ from playwright-cli?
seagull•13m ago
I've wanted something like this for ages, excited to try this out!

Autoresearch Applied at Shopify

https://shopify.engineering/autoresearch
1•austinbaggio•54s ago•1 comments

I Did My Taxes with Claude

https://doempke.com/taxes-with-claude/
1•robk•1m ago•0 comments

I got my React SPA to 95/100/100/100 on mobile PageSpeed

https://sudorank.com/blog/pagespeed-optimization/
1•iambala•1m ago•0 comments

Gemini 3.1 Flash TTS – with directed prompts

https://simonwillison.net/2026/Apr/15/gemini-31-flash-tts/
1•aanet•3m ago•1 comments

Agents Can Act.Only You Should Authorize

https://github.com/nametaginc/nametag-a2h
1•manish198903•3m ago•0 comments

What it's like to house-hunt in Silicon Valley (2015)

https://www.washingtonpost.com/business/economy/what-its-like-to-house-hunt-in-silicon-valley-the...
1•downbad_•3m ago•1 comments

Attention IS NOT all u need

https://github.com/Elgoghel/hwta-circuits/blob/main/README.md
1•Elgoghel•3m ago•0 comments

Show HN: Hatch: customise agents once, generate all the files

https://github.com/matryer/hatch
1•matryer•4m ago•0 comments

Google Broke Its Promise to Me. Now ICE Has My Data

https://www.eff.org/deeplinks/2026/04/google-broke-its-promise-me-now-ice-has-my-data
2•Brajeshwar•5m ago•0 comments

Spotted a bear lately? You're not alone–why sightings are on the rise

https://cssh.northeastern.edu/spotted-a-bear-lately-youre-not-alone-why-sightings-are-on-the-rise/
1•PaulHoule•5m ago•0 comments

Show HN Deskdrop: An Android Keyboard with Local AI Support (Ollama, LM Studio)

https://github.com/SvReenen/Deskdrop
1•SvReenen•6m ago•0 comments

Snap Is Laying Off 16% of Full-Time Staff as It Embraces A.I

https://www.nytimes.com/2026/04/15/business/snap-layoffs-snapchat.html
3•xnx•6m ago•0 comments

Lyra 2.0: Explorable Generative 3D Worlds

https://arxiv.org/abs/2604.13036
1•aanet•8m ago•1 comments

The Security Decisions Claude Code and Codex Make

https://amplifying.ai/research/ai-security-decisions
1•edwin•9m ago•0 comments

Introducing Cloudflare Mesh

https://developers.cloudflare.com/changelog/post/2026-04-14-cloudflare-mesh/
2•ransom_rs•11m ago•1 comments

Moss-TTS-Nano: Real-Time Voice AI on CPU (Open-Source TTS Stack)

https://firethering.com/moss-tts-nano-open-source-tts/
1•steveharing1•11m ago•0 comments

Ask HN : Vibe coders: does AI keep breaking your auth and webhooks?

https://www.indiehackers.com/post/vibe-coders-does-ai-keep-breaking-your-auth-and-webhooks-b9e869...
2•siddhant-jain•12m ago•1 comments

Watching TV with the Second-Party: A First Look at ACR Tracking in Smart TVs (2024)

https://arxiv.org/abs/2409.06203
2•redbell•12m ago•0 comments

Show HN: Slack killed their OpenAPI spec, so we reverse engineered it

https://github.com/connectstrata/slack-openapi-generator
1•jmclai•13m ago•0 comments

Ask HN: What do founders want from a one person dev studio?

1•Punyakrit•15m ago•1 comments

Ask HN: What's your favourite business oriented movie?

3•wasimsk•15m ago•2 comments

BBC to cut up to 2k jobs in biggest downsize in 15 years

https://www.theguardian.com/media/2026/apr/15/bbc-cut-jobs-downsize-matt-brittin-tim-davie
1•mellosouls•19m ago•0 comments

Trump Killed the One Thing That Made Filing Taxes Easier

https://www.nytimes.com/2026/04/04/opinion/taxes-trump-direct-file-tax-day-april.html
5•mitchbob•20m ago•1 comments

Trust and the Death of the Handshake Deal

https://nickchirls.com/2026/04/15/trust-and-the-death-of-the-handshake-deal/
2•rafaelc•20m ago•0 comments

Close the Book. Recall. Write It Down. (2009)

https://www.chronicle.com/article/close-the-book-recall-write-it-down/
1•downbad_•22m ago•1 comments

Jensen Huang – How Nvidia locked up the semiconductor supply chain [video]

https://www.youtube.com/watch?v=Hrbq66XqtCo
1•tosh•23m ago•0 comments

Dino from Scratch

https://github.com/aldipiroli/dino_from_scratch
1•tgnk2341•23m ago•0 comments

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

https://github.com/yantrikos/tier
2•pranabsarkar•23m ago•0 comments

Bot-AGI-1 – a robotics benchmark for VLMs

https://bot-agi.org/
1•chronolitus•24m ago•0 comments

Cram Less to Fit More: Training Data Pruning Improves Memorization of Facts

https://machinelearning.apple.com/research/cram-less
1•gmays•24m ago•0 comments