Stop Browser Agent Tab Leaks and Session Context Bloat

    1

    The hook templates make deterministic decisions from visible command strings, configured limits, and transcript structure, with a dry-run mode before strict blocking.

    $25

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Stop Browser Agent Tab Leaks and Session Context Bloat

    Example session with this skill installed

    Run a hygiene audit on the last browser task and export the results as a Markdown table. Check for orphaned tabs and screenshot budget usage.

    • Read your context and instructions
    • Compiled the stop browser agent

    Summary

    The audit read the saved browser transcript, a ps snapshot and the hygiene policy, and reported hygiene alerts: two full-DOM dumps, one parent tab closed before its child, a screenshot budget exceeded, two unclosed tabs and two orphan browser processes.

    Report (real output of python3 scripts/browser_session_audit.py --transcript examples/sample_browser_transcript.jsonl --ps-file examples/sample_ps_output.txt --policy examples/sample_hygiene_policy.json --format text)

    Browser session audit
    Status: HYGIENE_ALERTS
    Transcript lines: 22 (22 valid, 0 malformed)
    Screenshots: 4 (10400 base64 bytes)
    Full DOM dumps: 2 (8192 bytes)
    Tabs opened: 3
    Tabs closed: 1
    Unclosed tabs: 2
      Remaining: tab-102, tab-103
    Parent closed before child: 1
    Orphan browser processes: 2
    Findings: 7
    - full-dom-dump-detected: source=sample_browser_transcript.jsonl, line=5, bytes=4096
    - full-dom-dump-detected: source=sample_browser_transcript.jsonl, line=13, bytes=4096
    - parent-tab-closed-before-child: source=sample_browser_transcript.jsonl, line=21, tab=tab-101
    - screenshot-budget-exceeded: source=sample_browser_transcript.jsonl, count=4, bytes=10400
    - unclosed-browser-tabs: source=sample_browser_transcript.jsonl, count=2, tabs=['tab-102', 'tab-103']
    - orphan-browser-process: line=11 chromium --remote-debugging-port=9229 --user-data-dir=/tmp/orphan-one
    - orphan-browser-process: line=12 playwright chromium headless orphan
    

    Next steps

    • Close tab-102 and tab-103, child tabs before the parent tab.
    • Replace the full-DOM dumps at lines 5 and 13 with targeted reads.
    • Check the two orphan browser processes yourself; the audit reports them but does not terminate anything.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    For engineers running AI browser agents on web portals and dashboards: stop session context bloat from full-DOM dumps and screenshot storms, eliminate tab-group leaks with child-first close order, and block runaway local browser launches.

    Ships four operational guides, two zero-dependency Python CLIs across five input mouths, hook templates, and policy examples.

    The audit CLI reads saved JSONL transcripts, process text, and media-folder snapshots, and reports evidence: context budgets from DOM/screenshot volume, tabs opened versus tabs left unclosed per tab group, orphan browser processes, and leftover temporary media. The hook templates make deterministic decisions from visible command strings, configured limits, and transcript structure, with a dry-run mode before strict blocking.

    Limits: it reports evidence but does not terminate running browser processes or control hidden extension tab state; a person or the active session must resolve those findings. The hooks cannot reliably detect an obfuscated shell variable or wrapper that launches a browser, or a browser launched by another application outside the session.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.

    The audit CLI reads saved JSONL, process text, and media-folder snapshots. It does not terminate running browser processes or control hidden extension tab state; a person or the active session must resolve those findings. The hook templates make deterministic decisions from visible command strings, configured limits, and transcript structure, and cannot reliably detect an obfuscated shell variable or wrapper that launches a browser, or a browser launched by another application outside the session.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed today

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listedtoday

    What's inside

    Frequently Asked Questions

    This skill prevents 'zombie tabs' and memory leaks by enforcing parent-child closure rules and setting strict limits on DOM snapshots and screenshots, ensuring your browser agent remains fast and cost-efficient.

    It is designed for any automation environment that handles Tab Context results, such as Playwright or Puppeteer-based agents, and works across standard LLM frameworks that support tool-calling.

    You receive the executable skill logic, pre-configured resource budget templates, and the session auditing module for standard and strict modes.

    Yes, you can define specific screenshot and data output limits during the pre-task setup phase to ensure the agent doesn't exceed your storage or token budget.

    The Session Auditing feature reviews transcripts and snapshots post-execution, allowing you to identify and redact sensitive information or redundant data before it is saved to your permanent logs.

    The 'Three-Strike' failure detection identifies when an agent is stuck in an identical repetitive loop and forces a halt, saving you from excessive API costs and browser hangs.

    New in Workflow Automation