browserbase/stagehand ? reverse-engineered prompt

Reverse engineered prompt

I want to build a tool for automating tasks in a web browser, but one that's smarter than the old frameworks. It should let me mix precise code with flexible, natural language commands.

For example, I'd want to write code to navigate to a URL, but then use a simple instruction like "click on the stagehand repo" instead of having to find the exact element ID. It should also have an "agent" that can handle multi-step tasks from a single prompt, like "Get to the latest PR and then extract its title."

The most important thing is that it should be reliable. If a website's layout changes, the tool should be smart enough to use AI to figure it out and heal itself instead of just crashing. It should also be able to extract structured data from a page into a clean object. Let's build this framework using TypeScript.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab