frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Browser Tools SDK – an optimal browser harness for agents

https://libretto.sh/browser-tools
7•tanishqkanc•2h ago
We’re open-sourcing Browser Tools SDK: a small TypeScript package to give any AI agent a reliable way to control a real browser. With just a few lines of code, you can give any agent a production-ready browser harness

  import { createAiSdkBrowserTools } from "libretto-browser-tools/ai-sdk";
  import { LocalBrowserProvider } from "libretto-browser-tools";

  const { tools } = createAiSdkBrowserTools(new LocalBrowserProvider());

  const result = await generateText({
    model: anthropic("claude-sonnet-4-5"),
    tools,
    prompt: "Go to Hacker News and tell me the top story",
  });
We built the Browser Tools SDK because access to a browser is one of the most important tools of a productive agent, but we found many of the existing tools lacking. Using the insights we gained building Libretto, we were able to build the SDK so that it’s significantly more context and cost-efficient than other tools:

We compared Browser Tools SDK against agent-browser, playwright-cli, and dev-browser on 26 live-site tasks with GPT 5.6 Sol (best results from 3 runs). Browser Tools tied for the best pass rate at 24/26 and came in about 55% cheaper per successful task than the next alternative ($0.106 vs $0.235) while also using far fewer tokens (1.45M vs 2.29M+). Benchmark methodology is in the repo.

The Browser Tools SDK only exposes 6 tools, of which only 2 are really important: `browser_snapshot` and `browser_exec`. The snapshot tool was designed from the ground up to be extremely context-efficient and provide agents the overview they need to know what to try next. The exec tool takes and executes raw Playwright code, of which the models have been trained on heaps of, and know how to use without much direction.

Works with AI SDK and Pi out of the box, plus a custom path for anything else. More frameworks are coming soon. You can also use any browser infra provider (Libretto Cloud, Kernel, Browserbase, etc.) or use `LocalBrowserProvider` to run Chromium locally (although that will have less anti-bot protections).

MIT licensed. Check out the docs: https://libretto.sh/docs/browser-tools/quickstart and join the Discord: https://discord.gg/NYrG56hVDt.

We’d love any and all feedback.

Comments

opwizardx•1h ago
What make browser tools sdk more efficient than just using playwright-cli? With playwright-cli agent typically executes code written with playwright too.

Where do your sdk’s efficiency boosts come from?

Show HN: Justif – Knuth-Plass justification and microtypography for the web

https://justif.lyall.co/
64•lyall•4d ago•11 comments

Show HN: Read the Tape – Wordle for daytrading, five blind S&P 500 charts a day

https://readthetape.cc/
37•will_asouka•1d ago•28 comments

Show HN: A self-running space economy SIM in Rust and Bevy

https://github.com/Kalcode/spaceprojectsim
74•kalcode•5h ago•24 comments

Show HN: Computable – Buy, sell, and redeem GPU for the exact weeks you want

https://www.getcomputable.com/
9•yuansong98•1h ago•5 comments

Show HN: CodeAlmanac – Karpathy-style codebase wiki from your conversations

https://github.com/AlmanacCode/codealmanac/
42•divitsheth•6h ago•15 comments

Show HN: Browser Tools SDK – an optimal browser harness for agents

https://libretto.sh/browser-tools
7•tanishqkanc•2h ago•1 comments

Show HN: Imagin Raw – A 9MB Open-Source Alternative to Adobe Bridge for Mac

https://github.com/cristibaluta/Imagin-Raw
51•cristi_baluta•6h ago•20 comments

Show HN: Superserve – Firecracker microVM sandboxes for long-running AI agents

https://www.superserve.ai/
3•pavitrabhalla•31m ago•0 comments

Show HN: Orate – On-device neural text-to-speech queue for Mac

https://orate.to/
9•bherms•2h ago•6 comments

Show HN: Word in Web – Near MS Word Parity Docx Editor in Web

https://word-in-web.com/
21•theRealestAEP•6h ago•3 comments

Show HN: Anypost – transactional and broadcast email API, 8¢ per 1k

https://anypost.com
10•dancablam•9h ago•2 comments

Show HN: Language Model Builder (an app to learn about and build models)

https://languagemodelbuilder.com/
11•felixrieseberg•5h ago•2 comments

Show HN: OSS Cross-Harness self hosted registry and analytics for AI Agents

https://github.com/Observal/Observal
19•haz3-jolt•6h ago•1 comments

Show HN: Faceblind – In-browser only video face blurring

https://kmcheung12.github.io/faceblind/
2•a_c•1h ago•0 comments

Show HN: Designing a Static Site Generator for iPhone

https://hypertemplates.net/blog/designing-an-ssg-for-iphone/
8•calebhailey•4h ago•0 comments

Show HN: Explore 6048 YC companies as an interactive galaxy

https://artifacta.io/a/pg_x9pombpdybx90q2s16eu
34•jnakano89•2d ago•18 comments

Show HN: In Meeting – A native macOS Mic/Cam observer for home automation

https://github.com/fellowgeek/in-meeting
7•pcbmaker20•5h ago•0 comments

Show HN: RootBadger – a modern Usenet-style discussion platfor

https://rootbadger.com
3•yodabytz•2h ago•0 comments

Show HN: Meltbox – where your agents send you briefs

https://meltbox.ai/
2•flysonic10•2h ago•0 comments

Show HN: Chalk: a Mac app for technical diagrams with a built-in MCP for Claude

https://chalk.appkit.studio
4•davideweaver•2h ago•0 comments

Show HN: DocCharm – The help center that keeps itself up to date

https://doccharm.com/
6•yakshaving_jgt•5h ago•2 comments

Show HN: TunD. Make friends' PCs appear on the same VLAN

https://github.com/danterolle/tund
3•danterolle•3h ago•0 comments

Show HN: SciStudio: organize chaos data analysis pipelines with workflow runtime

https://scistudio.io/
2•jiazhenz•3h ago•1 comments

Show HN: Edky, a CLI to convert Ed25519 public keys from one encoding to another

https://github.com/artob/edky
6•arto•5h ago•3 comments

Show HN: Datalevin – a simple, fast, and versatile Datalog database

https://github.com/datalevin/datalevin
4•huahaiy•3h ago•0 comments

Show HN: Web-based Jujutsu revset explorer and debugger

https://juju.bi/tools/revset
3•pksunkara•5h ago•0 comments

Show HN: TokenPath – token-level citations for LLM output, read from attention

https://tokenpath.ai
4•apoorvumang•3h ago•0 comments

Show HN: Observability for Coding Agents and LLM Applications

https://telemetry.dev/
2•ephraimduncan•3h ago•0 comments

Show HN: Posecode, a text language and renderer for human movement

https://www.posecode.org/play
5•brnbrn•4h ago•0 comments

Show HN: Immersive Gaussian Splat tour of grace cathedral, San Francisco

https://vincentwoo.com/3d/grace_cathedral/
257•akanet•1d ago•56 comments