Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Humanoid Robot Regulations have begun(youtube.com ↗)
    discuss
  2. Turns out that "HDMI 2.1" ports don't need to support HDMI 2.1 features(arstechnica.com ↗)
    discuss
  3. Disney Hires Its First CTO: Karandeep Anand, Former CEO of AI Chatbot Startup(variety.com ↗)
    discuss
  4. Show HN: Keydris, Sudo for AI Agents(youtube.com ↗)
    discuss
  5. Better Than O1 Visa?(uscis.gov ↗)
    discuss
  6. Claude Code Projects(claude.com ↗)
    discuss
  7. US Military had close call after using AI for hallucinated intelligence report(cnn.com ↗)
    discuss
  8. Scam Spotting with ChatGPT(chatgpt.site ↗)
    discuss
  9. Consuming extra Vitamin D is less good than it sounds(economist.com ↗)
    discuss
  10. Show HN: Draw Hola Cloud – A drawing tool for live technical explanations(holacloud.app ↗)
    1comments
  11. Microsoft Confirms October 7 Windows and Surface Event Featuring RTX Spark(gadgetreview.com ↗)
    discuss
  12. A Model for Winning Survivor(victoriaritvo.com ↗)
    discuss
  13. Ask HN: Familiar with California SB-122? (sales and use tax on digital products)
    1comments
  14. Build and deploy long-horizon agent like Devin in 10-mins(cayu.dev ↗)
    discuss
  15. Air-FI: Generating Covert Wi-Fi Signals from Air-Gapped Computers (2020)(arxiv.org ↗)
    discuss
  16. NanoJev(github.com/tianyucodings ↗)
    discuss
  17. VitePress(vitepress.dev ↗)
    discuss
  18. Uber ordered to pay $40M for woman killed after driver left her on highway(bbc.com ↗)
    1comments
  19. Game UI Database(gameuidatabase.com ↗)
    discuss
  20. Cognitive resilience helps to predict Alzheimer's dementia(nature.com ↗)
    discuss
  21. I Hijacked a Real Artist's Spotify with AI Music. It Was Disturbingly Easy(404media.co ↗)
    discuss
  22. Non-Obvious Nix Options(matthewbrunelle.com ↗)
    discuss
  23. Show HN: Timeline, a team project planner with a fast canvas Gantt view(github.com/vakahnke ↗)
    discuss
  24. The Last Lecture (Randy Pausch) [video](youtube.com ↗)
    discuss
  25. Open-weight models take 56% of token volume, Astra doubles Fable 5.1 spend(vercel.com ↗)
    discuss
  26. Meta glasses captured and shared intimate images without consent, lawsuit claims(latimes.com ↗)
    discuss
  27. Tiny-Vedas: a generic accelerator interface for RISC-V, from PyTorch op to GDS(github.com/spzbrnmrc ↗)
    discuss
  28. Adam Tooze on AI Regulation [video](youtube.com ↗)
    discuss
  29. Sea lion found beheaded at San Francisco's Ocean Beach, prompting investigation(abc7news.com ↗)
    discuss
  30. Time To Go – an alarm that shows how long your commute takes(apps.apple.com ↗)
    discuss

We made Playwright 2x faster and 80% more token efficient

11 pointsby 1h agogithub.com
12 comments
1h agoHN ↗

We built Stagehand 2 years ago (24k stars and 4M monthly npm downloads) and recently fixed its biggest flaw: round-trip latency.

Every action performed requires a round trip between your script and the browser (short when running locally but increased when running in the cloud). We also saw multiple posts complaining about the eager token appetite of Playwright MCP.

For this reason, we rebuilt Stagehand from the ground up and shipped v4, where Stagehand controls the browser from an extension automatically loaded upon your browser startup.

Stagehand v4 comes with batch command support, dedicated token-efficient methods `act()` and `extract()`, and a brand new architecture making it 2x faster than Playwright and 80% more token efficient.

You can see for yourself by looking at our benchmarks, comparing its performance across a dozen models (frontier and open weights) and tools (Codex, Claude Code, and more): https://www.stagehand.dev/evals

Ask me anything!

51m agoHN ↗

what did you lose compared to CDP (e.g. cross-origin iframes, downloads running in envs where you can't load extensions)?

49m agoHN ↗

It still uses CDP but communicates from an extension within the browser instead of a script running in a separate runtime or, worse, in a separate region.

32m agoHN ↗

I tried this myself - my conclusion was the overhead of parsing a screenshot, generating an action, and being limited to headful mode is much less efficient than reading accessibility trees & generating CDP commands.

basically, browser automation is a closer-to-the-metal abstraction than computer use, allows more flexibility, and ends up being much cheaper at scale!

31m agoHN ↗

Astra with computer use seems to burn a ton of tokens though. Stagehand seems more token efficient.

45m agoHN ↗

How much does the harness really matter for evals?

37m agoHN ↗

A lot, especially for performance. That's why we built our own benchmarks that account for both the model and the harness. For example, with Claude Opus 5, the accuracy gap can be up to 3% and performance up to 200ms, depending on whether you're using Deep Agents, Eve, or Fx.

More details here: https://www.stagehand.dev/evals

44m agoHN ↗

So for an enterprise with a 1,000 test Playwright suite, does this basically mean ~2x faster CI times? That would be huge.

8m agoHN ↗

Exactly, as Stagehand now runs inside the browser, you'll save on the round trip. Also, enabling batch actions will further accelerate your test suite.

31m agoHN ↗

Do I need to pay for Browserbase to use this?

22m agoHN ↗

Nope, Stagehand is open-source and works with local browsers by default.