steipete/sweetlink — reverse-engineered prompt
Reverse engineered prompt
Build me a small TypeScript tool called SweetLink that lets my coding agent connect to my web app through the browser tab I already have open, instead of setting up a separate headless test browser. I want a simple command line app plus a local background service that can launch or reuse a Chrome window with devtools access, keep me signed in by reusing cookies, and let the agent open pages, capture screenshots, inspect selectors, and read console and network activity.
It should feel good for everyday local dev. I want to be able to see active sessions, reconnect after reloads, run quick smoke checks across a few routes like dashboard, search, billing, and settings, and get useful diagnostics when a page fails to load or register. If the app is a Next app, surface the devtools error summary too.
Please make the local connection secure, with the basic trust setup handled clearly, and keep the browser session alive between commands. Look up current docs online if you need to.
Want more depth? Deep Reverse