Better HN
topnewbestaskshowjobs
Log inSign up

wittydeveloper

209 karma · joined Jul 12, 2012 (14y ago) · 53 submissions

Submissions

comment 2mo ago · link · parent

Nope, you can also deploy and manage your own browsers as soon as they accept custom extensions.

comment 2mo ago · link · parent

Does "agent-based" here mean a CLI/Coding agent or software-level agents you built? I'd say that Stagehand is subtly faster for local use cases (batching, in-extension design) while covering both CLI (via https://browse.sh) and framework-level use, whereas agent-browser is CLI-only.

comment 2mo ago · link · parent

The cache serves as a managed server-side layer in the Stagehand API, keyed to instruction, page content, and the options you provide. Model configuration is intentionally excluded from the cache, so switching models does not invalidate it. If the page structure changes, the call does not result in a cache hit, and we revert to full inference. Additionally, any cached selector that no longer resolves will also revert, with self-healing disabled during replay.

Regarding the local file issue: currently, caching keys are based on a Browserbase session. This means that with a purely local browser, the cache option has no effect, and there’s nothing to verify. Each call returns metadata (including status, miss reason, threshold, count, and tokens saved) so you can observe churn rather than make guesses about it.

comment 2mo ago · link · parent

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)

comment 2mo ago · link · parent

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.

comment 2mo ago · link · parent

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

comment 2mo ago · link · parent

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

comment 2mo ago · link · parent

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.

comment 2mo ago · link · parent

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!

10.

We made Playwright 2x faster and 80% more token efficient(github.com ↗)

155 points · by wittydeveloper · 2mo ago · 41 comments

comment 12mo ago · link · parent

You can see durable execution as a combination of persistent state and queues (simplified example). With regular queues, the state is spread across many places from messages, runtime and external storages where the primary value is the reliability of the message processing and simple error management. Durable brings more advanced error management and end to end reliability with persistent state.

comment 1y ago · link · parent

Yup, I definitely faced multiple loops or "blocked" scenarios when iterating on the prompt and tools. The most obvious one is when the Agent generates a terminal command that requires some interactivity (ex: "confirm to ..."). This causes the Agent to build all files from scratch adding a 5x more steps than necessary.

I'm planning to try to make terminal STDIO work as a "human in the loop" pattern or even better as an "Agent in the loop" one.

comment 1y ago · link · parent

E2B does support Python, AgentKit is only available in TypeScript for now

comment 1y ago · link · parent

Not the version featured in the blog post, but adding a MCP server like Stagehand could enable it to search on the web!

comment 1y ago · link · parent

Claude Code is a complete tool that is ready to be used locally, focusing on Anthropic API features, while this coding agent is for educational purposes (like OpenAI's Swarm) and works with any LLM provider. Thought this Coding Agent could also be used in a real setting as a Pull Request or GitHub Coding Agent!

16.

Replicating Cursor's Agent Mode with E2B and AgentKit(e2b.dev ↗)

36 points · by wittydeveloper · 1y ago · 11 comments

17.

Sharding high-throughput Redis without downtime(inngest.com ↗)

18 points · by wittydeveloper · 2y ago · 4 comments

comment 3y ago · link · parent

1. Yes, we currently provide a simple approach to retries but are already working on providing features for idempotency.

2. All sensitive data (tokens, env vars) are encrypted on our side, however, we don't prevent users to print their values in the logs yet - it's planned in our next releases.

comment 3y ago · link · parent

It is actually comparable to both.

We aim to provide a similar feature set as Sidekiq (throttling, unique jobs) but with a complete hosted solution.

While Defer and Temporal can both be used for writing background jobs, workflows, and CRONs, there are some core design differences.

Temporal has been created as the Kubernetes of highly distributed systems, enabling developers to write code that runs on multiple regions without worrying about possible termination of the program and interruption of workflows spanning across multiple steps.

While Temporal can be used for background jobs, workflows, and CRONs, its main goal is to ensure that highly distributed tasks will reliably be executed. That's the main reason why Temporal API is so verbose, with many concepts to deal with.

Defer, on the other hand, provides comparable reliability while focusing on the developer experience.

You can write workflows, CRONs, and jobs that run for hours without worrying about them being terminated.

All this, with a simple API that enables you to write some workflows (background functions calling other background functions) in plain TypeScript, with no mental model to fit in.

comment 3y ago · link · parent

You're right! We will update them soon.

comment 3y ago · link · parent

Thank you for your feedback! Can't wait to onboard you on Defer

comment 3y ago · link · parent

Thank you!

comment 3y ago · link · parent

Thank you! Join our community so we can help you onboard and get updates on the upcoming features (more is coming soon): https://discord.gg/x2v84Vqsk6
12