Urgent.News

What's breaking now, across thousands of outlets.

AI

Stop AI Agents From Hijacking Your Chrome Window: Fork Live Sessions into Headless Playwright MCP

Whenever I ask an AI coding agent ( Claude Code , Cursor , or Google Antigravity ) to check an authenticated web page — a GitHub PR, a Linear sprint board, a Notion doc, or an internal dashboard — browser automation usually leaves me with two frustrating options: Launch a fresh headless browser -> hit login walls, SSO, and 2FA every single session. Attach directly to my live Chrome window -> the…

"Stop AI Agents From Hijacking Your Chrome Window: Fork Live Sessions into Headless Playwright MCP" is an article explaining a new solution to the issue of AI coding agents hijacking your browser when interacting with authenticated web pages. The author, Wasabihu, has developed a Python CLI tool called sessfork that allows users to decouple their foreground UI viewport from browser authentication state.

.sessfork works by taking snapshots of only the authentication state needed, and providing it to a silent background headless Playwright MCP server. This allows for lock-free snapshots of live Chrome sessions, reading Chromium's cookies database and LevelDB Local Storage without any locking or closing of the running browser. The tool also supports decryption of cookies and LevelDB MVCC sequence reconciliation to carry over modern SPA bearer tokens cleanly.

.sessfork ensures domain-scoped isolation by strictly filtering by an explicit domain allowlist, and atomically writes a standard Playwright storageState JSON file with 0600 permissions. The tool offers zero-restart hot reload, automatically wiring sessfork-browser into AI coding agents like Claude Code, Cursor, and Antigravity. Once installed, users can simply talk to their AI agents without needing to remember any CLI flags.

Compared to dedicated AI browsers such as ego-lite, sessfork offers a lightweight and clean solution that keeps the user's native browser untouched, providing only specific domains to a silent headless agent. The security guardrails ensure no silent all-domain dumps, with keychain prompts for Chrome Safe Storage on macOS and easy cleanup options. For more information, users can check out the repo and interactive architecture walkthrough.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

More from Friday 20 November →