What problem does it solve?
Giving an AI agent raw browser or shell access risks prompt-injection attacks and uncontrolled navigation to untrusted sites. This Skill generates a constrained browser agent whose only capability is a safe_browser tool that enforces a domain allowlist at the network layer via CDP Fetch interception.
Core Features & Use Cases
- CDP-Gated Navigation: Every request passes through
Fetch.requestPaused; off-allowlist hosts are blocked with Fetch.failRequest before reaching the network.
- Constrained Tool Surface: The runtime agent gets only structured actions (
goto, extract_front_page, extract_comments, current_url, audit_log) with no raw CDP passthrough or shell access.
- Verifiable Demo: The included Hacker News template proves containment by extracting stories, visiting an internal comments page, attempting an off-domain URL, and asserting the block in an audit log.
- Use Case: Demonstrate prompt-injection containment by letting an agent scrape Hacker News while proving it cannot follow an external link, with artifacts (audit log, tool log, screenshot) as evidence.
Quick Start
Use the safe-browser skill to build a constrained Hacker News scraping agent that stays on news.ycombinator.com and run the demo to show the blocked off-domain navigation.