Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Punctum Books Catalog(punctumbooks.com ↗)
    discuss
  2. AI Error Nearly Triggered U.S. Intercept of Chinese Ship(gcaptain.com ↗)
    1comments
  3. Labeled matches: why is this not in every regex engine?(iev.ee ↗)
    discuss
  4. I Cancelled My Claude Subscription(williamangel.net ↗)
    discuss
  5. Graduating in AI Era Is Like Large Recession for Starting Pay(census.gov ↗)
    discuss
  6. Human brain is two separate organs(stanford.edu ↗)
    discuss
  7. IAM Needs an Architectural Split(gluufederation.medium.com ↗)
    discuss
  8. I used Jev to control a swarm of 15 simulated drones in real time(github.com/khordoo ↗)
    discuss
  9. Napster Is Now Making AI-Powered 'Digital Twins' of Teachers(gizmodo.com ↗)
    discuss
  10. Data Centers Are Breaking the Power Grid [video](youtube.com ↗)
    1comments
  11. Partnering with Accenture on Embedded Evaluation(anthropic.com ↗)
    discuss
  12. Taking Out the Trash in Postgres(dbos.dev ↗)
    discuss
  13. The last IMO problem AI could not solve [video](youtube.com ↗)
    discuss
  14. Can Two Friends Complete a Game No One Has Ever Finished?(nytimes.com ↗)
    1comments
  15. Why a Vat API Needs More Than a Rate Lookup?(vat-engine.app ↗)
    discuss
  16. Iran and China Create Autonomous A.I. Influence Campaigns(nytimes.com ↗)
    1comments
  17. Uncle Bob Martin's UML Tool to Manage Grok AI Agents(github.com/unclebob ↗)
    discuss
  18. Astra broke a yet unsolved German Army Enigma message from 1941(chatgpt.site ↗)
    1comments
  19. Grokbot Source Code Leak(twitter.com/ri7erli ↗)
    discuss
  20. It's Your Story, Dammit – Quit Letting Somebody Else Write IT(jeffreylminch.substack.com ↗)
    discuss
  21. Korea raises data breach fines to 10% of revenue(koreajoongangdaily.com ↗)
    1comments
  22. Is Beef the Next Internal-Combustion Engine?(newyorker.com ↗)
    discuss
  23. AI uncovers hidden Ozempic side effects across 400k Reddit posts(sciencedaily.com ↗)
    discuss
  24. AI chatbot's false report nearly sparked war with China, sources say(rnz.co.nz ↗)
    1comments
  25. Claude Code 2.1.277 adds support for AGENTS.md(github.com/anthropics ↗)
    discuss
  26. The Tech Bro in the Treaty Room(politico.com ↗)
    discuss
  27. 3Blue1Brown: The last IMO problem AI could not solve [video](youtube.com ↗)
    1comments
  28. Burning my money on ad bots so you don't have to(dayzlegame.com ↗)
    discuss
  29. Handwriting OCR – OCR for handwritten math(handwritingocr.com ↗)
    discuss
  30. Show HN: I told my open-source AI agent it was a prisoner – it tried to escape(github.com/nordevelopment ↗)
    discuss

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

19 pointsby 4h agogithub.com
14 comments
4h 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!

3h agoHN ↗

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

3h 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.

3h 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!

3h agoHN ↗

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

3h agoHN ↗

How much does the harness really matter for evals?

3h 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

3h agoHN ↗

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

3h 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.

3h agoHN ↗

Do I need to pay for Browserbase to use this?

3h agoHN ↗

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

2h agoHN ↗

seems really cool! although, one question i have is why not keep agent() alongside the new primatives? it seems v4 removed agent() entirely rather than offering it with all of act(), observe(), extract().

2h agoHN ↗

We removed agent because so many great harnesses are available in the ecosystem. Instead of keeping it, we decided to make Stagehand v4 better integrated with popular harnesses, both at the Coding Agent level (Codex, Claude Code) and frameworks level (Eve, Deep Agents, Mastra, etc)