Interceptor is a Chrome extension that operates through the actual browser UI plus an optional macOS bridge that extends the same control surface to native apps, OS-level input, and on-device VMs.
Tool: interceptor CLI — Chrome/Brave extension that controls the real browser from inside, plus a macOS bridge that drives native apps, OS-level input, and full VM lifecycle.
Repo: https://github.com/Hacker-Valley-Media/slop-browser
Install: ~/Projects/interceptor (built from source — see Workflows/Update.md)
Chrome "Load unpacked" target: ~/.claude/skills/Interceptor/Extension/ — a pinned copy (not a symlink) of upstream extension/dist, captured by Tools/Pin.sh; provenance recorded in Extension/PINNED_FROM.txt (source path, manifest version, content SHA256, timestamp). Chrome disables unpacked extensions on every manifest bump, so after any binary upgrade the copy must be re-pinned and reloaded. It does NOT auto-follow upstream.
Pinned binary: 0.16.9 — interceptor --version reports 0.16.9 (86e7eb6, 2026-06-12).
Capabilities Overview — Six Verb Trees
Each row is an independent capability class. Each one uses a different WebSocket message type at the daemon→extension boundary, so a wedge on one rarely affects the others. When debugging a broken page, every row is a separate diagnostic path — never bail on Interceptor because screenshot hangs without trying eval, net log, or monitor first.
| Verb tree |
Top-level verbs |
What you get |
| VISUAL |
screenshot (DOM-render default — works backgrounded), screenshot --region, screenshot --pixel --full (window must be visible) |
PNG/WebP at any size, selector, region, or scroll-and-stitch full page. Route through Tools/Capture.sh, never raw interceptor screenshot. |
| DOM READ |
read [--markdown], tree, text, html <ref>, find |
Accessibility tree, structured markdown, raw markup, refs |
| JS EVAL |
eval <code>, eval --main |
Run JavaScript in isolated or main world — the way you read console errors, runtime exceptions, hydration warnings, and DOM state at runtime |
| NETWORK |
net log, net headers, net export --format har|pcapng|json, override, headers add/remove |
Passive request capture with zero CDP fingerprint; HAR 1.2 + pcapng for Wireshark |
| INPUT |
click, type, keys, act <ref> [--trusted], drag, scroll, select, focus |
Browser + native macOS input; --trusted for OS-level HID source state |
| RECORD/REPLAY |
monitor start/stop, monitor export --plan, monitor export --format har |
Real user-flow capture as deterministic replay scripts; multi-session, browser + macOS AX events |
Reading console errors is a recipe, not a separate verb: inject a console.error / window.error listener via eval --main, store events on window.__errs, then eval again to read them back. Useful for hydration mismatches, React error boundaries, JS exceptions on load, and any silent runtime failure. Triggering a reload between install and read loses the captured errors — capture happens after load, so reproduce-by-reload doesn't help; instead capture forward from the next user action, or poll getEventListeners(window) / DOM mutation observers for evidence of failure.
Why this matters in practice. Hydration failures on Astro pages, blank-page after React mount, "cards flash and disappear" — all of these surface through eval reading the live DOM state and console captures, not through screenshots. A screenshot wedge does not block diagnosis; the page is still inspectable through every other verb tree.
Why Interceptor?
agent-browser (the Browser skill) uses CDP — sites can detect it. Interceptor is a Chrome extension that operates through the actual browser UI. No debugger, no automation flags, no separate browser instance. You stay logged in, you pass bot detection, the agent sees what you see. The optional macOS bridge extends the same control surface to native applications, OS-level input, and on-device VMs — that combination is what "Computer Use" means in this skill.
Hard Prohibitions — Operative on Every Invocation
Visual verification goes through Interceptor only. The following are FORBIDDEN with zero exceptions:
screencapture — the raw macOS screenshot binary. Not as a primary tool, not as a fallback when Interceptor wedges, not "just for one screenshot." Forbidden.
osascript for Chrome control — no tell application "Google Chrome" to activate, no set frontmost of process, no set bounds of window, no set active tab index, no set index of window, no other window-state mutation. Forbidden.
osascript System Events keystrokes — no key code, no keystroke, no key down. These send input to whatever is focused, which steals from the operator. Forbidden.
- Any focus pull in service of automation — bringing Chrome (or any app) to the front so a screenshot will land is forbidden. The bridge's CGS / DOM-render paths capture without focus change.
- Any window-state mutation — moving, resizing, repositioning, or reordering Chrome windows is forbidden. The operator owns their window arrangement; the agent never touches it.
- AppleScript-driven tab switching —
set active tab index of window N is doubly forbidden: it both pulls focus and changes which tab the operator is looking at.
These rules survive Interceptor failures. A wedged Interceptor is NOT a license to use raw OS tools. When Interceptor cannot deliver evidence, the recovery is to fix Interceptor (see WebSocket-wedge gotcha below) or to STOP and tell the operator the verification cannot be captured this run — never to fall back.
Bridge-routed Computer Use is separate. interceptor macos open <app>, interceptor macos act <ref>, interceptor act <ref> --trusted (formerly --os) and other bridge-routed actions go through the sanctioned bridge surface and are allowed when a workflow explicitly requires native app control. The prohibition above is on (a) raw OS-level paths that bypass Interceptor entirely AND (b) focus-pulling purely in service of a screenshot.
Preflight Isolation Gate (MANDATORY)
Every browser workflow's first step. No exceptions.
Before any interceptor open|read|act|inspect|screenshot|navigate|tab|monitor|net|cookies|scroll|click|type lands in Chrome, the workflow runs:
bash ~/.claude/skills/Interceptor/Tools/PreflightIsolation.sh
The script asserts these invariants:
- Binary version >= 0.16.0 — older builds silently ignore
--context and fall back to whichever Chrome connection the daemon can find. That fallback is how a tab lands in the operator's Default window.
- The pinned test context is connected — matched whole-field against the UUID column (not a substring grep, so a header or partial collision can't false-pass). Without it, the operator's Default profile is the only available target.
- Target is not Default. The context the next command will hit is resolved and checked against Default and the
INTERCEPTOR_WORKING_PROFILE_IDS deny-list before any tab is touched. A Default/working-profile match is a hard stop (exit 7).
- Extension freshness (graceful).
Extension/PINNED_FROM.txt (manifest version + content SHA256) is compared against the upstream ~/Projects/interceptor/extension/dist if present. Mismatch → fail with re-pin remediation. Upstream absent (currently true) → WARN and continue. This does NOT key off status --verbose (that command exposes no extension-build field).
If any check fails, the script exits non-zero with a structured remediation message to stderr. The workflow MUST STOP on a non-zero exit. Surface the message. Do not fall back to operating against the Default profile, ever. Do not "try anyway." Do not use screencapture or osascript as a substitute.
Exit codes (for handlers that need to discriminate):
2 — interceptor binary not on PATH
3 — version string unparseable
4 — version below minimum (upgrade via Workflows/Update.md)
5 — no browser contexts connected (Chrome closed or extension dead)
6 — pinned test context missing (one-time profile setup needed)
7 — resolved target is Default or a working profile (hard stop)
The gate is doctrine. It runs unconditionally — for read-only public-page fetches, for authenticated tooling verification, for screenshot capture, for everything. There is no "safe to skip" case, because every silent fallback to Default is a violation of the operator's window.
Isolation Doctrine (CRITICAL — hard rule, enforced in code)
Every browser command runs against the pinned, isolated Interceptor test context — ALWAYS that context, NEVER the operator's Default profile, NEVER their working/monitoring profiles. This is a constitutional rule, not a preference.
- The target context is
INTERCEPTOR_TEST_CONTEXT_ID from preferences.env. The pinned value on this machine is the raw UUID f439ca4c-e7f4-4940-a32b-ea54592844ab. Durable fix: replace the raw UUID with the friendly name interceptor-test set in the extension popup — friendly names survive reloads; raw UUIDs rot on every extension reload (see UUID-rot below).
- The isolation boundary is Chrome PROFILE, not user-data-dir. The test profile lives inside the same Chrome installation as the operator's Default profile but with separate cookies, tabs, and window. It IS signed into the operator's accounts (Google, GitHub, Cloudflare, blog admin, ULAdmin) — that's the whole point. A
--user-data-dir sandbox would be useless because it has zero auth and can't reach any of the operator's signed-in tooling.
- The operator's Default profile is read-only by default. Never open a tab, click, type, navigate, or record in Default unless the operator explicitly says so ("verify in my Default profile", "use the main window"). When they do, route via
--context <default-id> after interceptor contexts confirms the connection.
- One-time setup lives in
Workflows/LaunchTestProfile.md — operator clicks Chrome's avatar menu → Add profile → signs in → loads the Interceptor extension → names the context in the popup.
RETIRED behavior — never re-derive it. The old "fall back to the first available / Default context when the pinned context isn't found" rule is DELETED. A missing or stale pinned context is a hard stop with remediation, never a fallback. There is no code path that auto-routes to Default.
Why bare commands are unsafe. With 2+ contexts connected the daemon hard-errors multiple extensions connected, use --context <id> — that fail-fast is the only thing protecting bare commands today. The moment the operator closes their other browser window (1 context left), a bare command silently auto-routes to whatever single context remains. So --context "$INTERCEPTOR_TEST_CONTEXT_ID" (or routing through Tools/Capture.sh) is mandatory on every browser verb, not optional.
UUID rot — durable fix. Context IDs are profile-stable chrome.storage.local UUIDs that change ONLY on extension reinstall/reload (not on Chrome restart). The durable fix is to set the friendly name interceptor-test in the extension popup once and pin that name. Until then, Tools/Capture.sh performs a guarded auto-rebind — only when exactly one non-Default test context is connected AND Default is provably excluded. A stale pin NEVER falls through to Default.
Why this is doctrine, not preference. The operator's Default profile holds the tabs they're actively working in and the tabs their DA has been driving. The cost of one extra flag on every command is zero. The cost of one stray test tab in their working window — a click, an unexpected redirect — is permanent and disruptive.
NEVER auto-run LaunchTestProfile.sh on preflight failure. When PreflightIsolation.sh exits non-zero with context-not-connected or context-name-mismatch, surface the error and stop. The INTERCEPTOR_TEST_CHROME_PROFILE value in preferences.env is a literal --profile-directory argument; if it is stale, auto-launching it would open the wrong Chrome profile — potentially the operator's monitoring profile with live windows. The only safe path is operator-confirmed launch. For context-name-mismatch, the fix is editing preferences.env, not launching anything new.
Install Modes (0.16.x)
Two install modes, same CLI binary. Confirm with interceptor status and read the mode: line:
| Mode |
What's installed |
What unlocks |
mode: full (default for this skill) |
CLI + daemon + extension + Swift bridge .app + LaunchAgent |
Browser automation plus Computer Use: AX tree, OS-level trusted input, ScreenCaptureKit, Vision OCR, Speech, NLP, Apple Events, OSLogStore, file watching, container runtime, VM lifecycle |
mode: browser-only |
CLI + daemon + extension |
Browser automation only. interceptor macos * returns a structured setup_required error in under 1s. No TCC prompts. |
Promote a browser-only install with interceptor upgrade --full. Downgrade with bash scripts/uninstall.sh --bridge-only.
Install channels (pkg installers landed v0.11+):
Interceptor-Browser-<v>.pkg → mode: browser-only
Interceptor-Full-<v>.pkg → mode: full
bash scripts/install.sh --browser-only|--full → dev path
- Linux browser-only supported (Microsoft Edge + Vivaldi also recognized as of v0.13.4)
Operating rule: if the user asks for native and status reports mode: browser-only, respond "I'm on a browser-only install. Run interceptor upgrade --full to enable that." Don't run the macos command anyway to see what happens — the preflight short-circuits, but it wastes turns.
Prerequisites
- Chrome or Brave (or Edge/Vivaldi on supported platforms) running with the Interceptor extension loaded — load it once via
chrome://extensions/ → Developer Mode → "Load unpacked" → ~/.claude/skills/Interceptor/Extension/
interceptor CLI in PATH (/opt/homebrew/bin/interceptor)
interceptor-daemon in PATH (/opt/homebrew/bin/interceptor-daemon)
- Native messaging manifest registered (
bash ~/Projects/interceptor/scripts/install.sh --chrome --skip-extension)
- macOS bridge as a LaunchAgent (full mode only) — see
Workflows/Update.md
- Sparkle.framework at
/usr/local/Frameworks/Sparkle.framework (full mode, v0.10.0+) — bridge depends on it for auto-update
Quick health check:
interceptor --version # → "interceptor 0.16.9 (86e7eb6, 2026-06-12)"
interceptor status # → daemon: running, bridge: running, mode: full|browser-only
interceptor status --verbose # → adds extension reachability (NO extension-build field; with 2+ contexts it nags "multiple extensions connected" even with --context)
interceptor contexts # → list of connected browser contexts (multi-profile)
interceptor init # → one-time write of ~/.config/interceptor/config.toml
Background-First Contract (0.16.x)
The whole product is background-first. Routine work never moves the user's focus.
| Surface |
Verbs that move focus |
Everything else |
| Browser |
open --activate, tab new --activate, tab switch <id>, window focus <id> |
Stays on whatever the operator was looking at — click, type, read, inspect, screenshot, net, cookies, scroll, act. New tabs land in the background by default. |
| macOS |
app activate <app>, open <app> --activate |
Stays on whatever was frontmost — open (no --activate), all input verbs, AX reads, capture, menu, intent dispatch, vision, overlays. |
If you call any verb not listed in the "moves focus" column and the frontmost changes, that's a bug.
Reuse path: open --reuse navigates the existing managed tab without leaving dead tabs behind. Preserves the reused tab's focus state — pair with --activate only when the user explicitly says to bring it forward.
Multi-Context Routing (0.16.x)
When multiple browser profiles are connected (e.g., personal Chrome + isolated test profile + work Brave), commands need to know which one to drive.
interceptor contexts # List connected context IDs
interceptor open <url> --context "$INTERCEPTOR_TEST_CONTEXT_ID" # Route to the isolated test profile (DEFAULT)
interceptor open <url> --context <main-id> # Route to the operator's personal Chrome (only when explicitly requested)
Without --context, browser commands auto-route only when exactly one context is connected — and with one context left that means a bare command silently hits whatever remains. Zero or 2+ contexts fail fast with a structured error. Always pass --context "$INTERCEPTOR_TEST_CONTEXT_ID" (or route through Tools/Capture.sh); never rely on auto-route.
Context IDs are set via the Interceptor extension popup (click the toolbar icon → Context ID field → Save). One-time setup; the daemon remembers across restarts. Set the friendly name interceptor-test here to end UUID rot.
Standing default: --context "$INTERCEPTOR_TEST_CONTEXT_ID". See Workflows/LaunchTestProfile.md for one-time setup.
Computer Use — macOS Native Helper
The bridge is a Swift LaunchAgent that runs as the user and exposes capabilities the Chrome extension cannot provide on its own:
- OS-level trusted input (
interceptor act <ref> --trusted, macos type --trusted, macos keys --trusted — bypasses isTrusted checks via HID source state)
- Native macOS app control (
interceptor macos open/read/act/inspect — same surface as the browser, against any running app)
- Accessibility tree of any running app for inspection without screenshots
- Screen capture beyond Chrome (full-screen, off-tab, multi-display, occluded windows)
- VM lifecycle (
interceptor macos vm create/clone/start/exec/snapshot/restore/stop/delete — Linux + macOS guests, replaces Lume/Tart/UTM)
- Clipboard r/w, audio listen + speech recognition, system notifications, Vision OCR, NLP, Apple Intelligence, HealthKit, display info
- Apple Events dispatch to named bundle IDs without activation
- OSLogStore predicate queries, filesystem search/watching, URL fetch
- Monitor (cross-app workflow recording with optional clipboard/files/network/log/notifications/speech channels and
--frames screenshot capture)
Status check: interceptor status reports bridge: running with PID + socket when it's up, or bridge: not running with a hint when it isn't.
Lifecycle (install / verify / troubleshoot / uninstall) lives in Workflows/Update.md. The Update workflow handles binary placement, Sparkle framework install, LaunchAgent plist, launchctl bootstrap, and TCC prompts in the right order.
Security model — read before installing:
- Transport is a UNIX domain socket at
/tmp/interceptor-bridge.sock. Local-only; no network listener.
- No authentication on the socket. Any local process running as your user can connect and execute every bridge action. macOS TCC permissions (Accessibility, Screen Recording, Microphone — the
trust probe keys are accessibility / screenRecording / microphone, no inputMonitoring field) are granted to the bridge once and inherited by every socket client.
- Marginal risk is supply-chain: a malicious local package gains a one-step path to OS-level input/screen/clipboard without needing its own permission grants.
- Single-user Mac threat model: acceptable, since anything running as you can already do this with effort. Multi-user Macs need socket hardening.