{
  "id": 20905994,
  "title": "Stop AI Agents From Hijacking Your Chrome Window: Fork Live Sessions into Headless Playwright MCP",
  "url": "https://urgent.news/2026/11/20/stop-ai-agents-from-hijacking-your-chrome-window-fork-live-sessions",
  "topic": "ai",
  "section": "AI",
  "published": "2026-11-20T14:05:58.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/wasabi_hu_d2b4b4d9b9f6bda/stop-ai-agents-from-hijacking-your-chrome-window-fork-live-sessions-into-headless-playwright-mcp-336g"
  },
  "original_language": "en",
  "account": "\"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.\n\n.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.\n\n.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.\n\nCompared 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.",
  "summary": "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…",
  "key_points": [
    "sessfork tool decouples UI from browser auth state.",
    "Silent headless Playwright MCP server handles snapshots.",
    "Zero-restart hot reload integrates with AI coding agents."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}