Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 31 Mar 16:43
· 88 commits to main since this release
9e3b088

Major Changes

  • #591 e234a0f Thanks @miguelg719! - Announcing Stagehand 2.0! 🎉

    We're thrilled to announce the release of Stagehand 2.0, bringing significant improvements to make browser automation more powerful, faster, and easier to use than ever before.

    🚀 New Features

    • Introducing stagehand.agent: A powerful new way to integrate SOTA Computer use models or Browserbase's Open Operator into Stagehand with one line of code! Perfect for multi-step workflows and complex interactions. Learn more
    • Lightning-fast act and extract: Major performance improvements to make your automations run significantly faster.
    • Enhanced Logging: Better visibility into what's happening during automation with improved logging and debugging capabilities.
    • Comprehensive Documentation: A completely revamped documentation site with better examples, guides, and best practices.
    • Improved Error Handling: More descriptive errors and better error recovery to help you debug issues faster.

    🛠️ Developer Experience

    • Better TypeScript Support: Enhanced type definitions and better IDE integration
    • Better Error Messages: Clearer, more actionable error messages to help you debug faster
    • Improved Caching: More reliable action caching for better performance

    We're excited to see what you build with Stagehand 2.0! For questions or support, join our Slack community.

    For more details, check out our documentation.

Minor Changes

  • #588 ba9efc5 Thanks @sameelarif! - Added support for offloading agent tasks to the API.

  • #600 11e015d Thanks @sameelarif! - Added a stagehand.history array which stores an array of act, extract, observe, and goto calls made. Since this history array is stored on the StagehandPage level, it will capture methods even if indirectly called by an agent.

  • #601 1d22604 Thanks @seanmcguire12! - add custom error classes

  • #599 75d8fb3 Thanks @miguelg719! - cleaner logging with pino

  • #609 c92295d Thanks @kamath! - Removed deprecated fields and methods from Stagehand constructor and added cdpUrl to localBrowserLaunchOptions for custom CDP URLs support.

  • #571 73d6736 Thanks @miguelg719! - You can now use Computer Using Agents (CUA) natively in Stagehand for both Anthropic and OpenAI models! This unlocks a brand new frontier of applications for Stagehand users 🤘

  • #619 7b0b996 Thanks @sameelarif! - add disablePino flag to stagehand constructor params

  • #620 566e587 Thanks @kamath! - You can now pass in an OpenAI instance as an llmClient to the Stagehand constructor! This allows you to use Stagehand with any OpenAI-compatible model, like Ollama, Gemini, etc., as well as OpenAI wrappers like Braintrust.

  • #586 c57dc19 Thanks @sameelarif! - Added native Stagehand agentic loop functionality. This allows you to build agentic workflows with a single prompt without using a computer-use model. To try it out, create a stagehand.agent without passing in a provider.

Patch Changes