CodebuffAI/stagehand — reverse-engineered prompt
Reverse engineered prompt
Build me a simple TypeScript library for AI powered browser automation, similar to a friendly wrapper around Playwright.
I want developers to be able to open a web page like normal, then use plain English commands to click things, fill forms, observe what actions are possible, and extract structured information from the page. The main idea is that automation should feel simple and reliable, not like a full unpredictable agent. Keep the actions small and repeatable.
Please include clear examples showing how someone can go to a website, click a link using a natural language instruction, and pull out a typed result from the page. It should work in Node.js, use environment variables for AI and browser service credentials, and have a quickstart style example people can run locally.
Make the project clean, documented, and easy to extend. If you need details on Playwright or current docs, look them up online.
Want more depth? Deep Reverse