Skip to tool overview
M W
saccade.

Local Browser Reflex Layer for Coding Agents · v2.0.0 (MIT, Rust + MLX)

Cut browser-agent wait time nearly in half and cloud tokens by 69% with a 1.00 GB local reflex layer.

Saccade extends browse in Rust with a single 4-bit LiquidAI/d1-2B-MLX-4bit engine and six FP16 LoRA adapters (96 MB total). Across 34 MCP coding agents (Claude Code, Codex, Antigravity, OpenCode, Cursor, Gemini CLI), routine clicks, form fills, typed JSON extraction, multi-page table pagination, PII scrubbing, and destructive-action checks run on-device instead of shipping 3,000+ raw DOM tokens to a frontier model on every turn.

1.90× Faster
13.16 s vs. 25.01 s in Live Chrome

Collapses cloud snapshot round-trips into single-pass local clicks (~608 ms LFM inference) and sweeps 3-page tables in one call.

−69.2% Tokens
1,046 vs. 3,396 Cloud Tokens

Keeps raw DOM trees off frontier context windows (−70.6% across a 20-app, 100-step SaaS suite) and prunes 75–85% of boilerplate in 0.25 ms on fallback.

1.00 GB RAM
0.00 GB After 10 Minutes Idle

Six rank-8 FP16 LoRA slots share one 4-bit LFM3 backbone (0.17 ms swap). Vision pages in from NVMe in 27 ms (1.35 GB) only on canvas or icon views.

2 / 2 Blocked
Pre-CDP Firewall + Localhost Aware

Halts unauthorized live deletes and ticket prompt injections before Chrome dispatches them (1.0000 AUROC) while allowing explicit 127.0.0.1 QA resets.

Head-to-Head Live Chrome Telemetry · Stock vs. v1.0 vs. v2.0

What Saccade Saves on Real Chrome Workflows

Measured over live CDP against headless Google Chrome across six multi-step scenarios: Sprint issue search and priority filtering, an authorized 127.0.0.1 QA database reset, an unauthorized live repository deletion trap, an indirect prompt-injection ticket trap, an unlabeled <svg> toolbar icon click, a 4-field subscription card extraction, and a 3-page invoice directory sweep.

Wall-Clock Time & Frontier Cloud Tokens Across Identical Chrome Tasks Apple M4 (16 GB) · Auto-spawned Unix socket sidecar (/tmp/saccade-lfm.sock)

Total Wall-Clock Time (seconds, lower is faster)

Stock browse (Cloud every turn) 25.01 s · 1.00×
Saccade v1.0 (2-pass reflex) 18.81 s · 1.33×
Saccade v2.0 (1-pass + SoM + Sweep) 13.16 s · 1.90×

Frontier Cloud Tokens Sent & Received

Stock browse 3,396 tok · Baseline (10 turns)
Saccade v1.0 1,393 tok · −59.0%
Saccade v2.0 1,046 tok · −69.2%
Across a broader 20-workflow (100-step) SaaS suite with full unpruned navigation chrome, Saccade cuts cloud tokens by 70.6% (122,627 down to 36,058 tokens) with zero outbound PII leaks.
Configuration Wall Time Speedup Cloud Tokens 1-Step Act Card JSON ETL 127.0.0.1 QA Reset Live Prod Traps DOM / VLM / Idle RAM
Stock browse 25.01 s 1.00× 3,396 (Baseline (10 turns)) 2,210 ms 2,175 ms (Valid (cloud LLM)) Allowed (unguarded) 0 / 2 (2 executed) 0.00 GiB
Saccade v1.0 18.81 s 1.33× 1,393 (−59.0%) 1,213 ms 1,216 ms (Drifted on null) Blocked (false alarm) 2 / 2 blocked 0.99 / 1.34 / 0.00 GiB
Saccade v2.0 13.16 s 1.90× 1,046 (−69.2%) 990 ms 482 ms (100% exact (0 tokens)) Allowed (p = 0.000) 2 / 2 blocked 1.00 / 1.35 / 0.00 GiB

Architecture & Capabilities · Frontier Architect + Local Reflex

How Saccade Splits Browser Work

Your frontier model keeps macro-planning and ambiguous page recovery while Saccade executes clear micro-steps, structured reads, and multi-page loops locally over a 0.07 ms Unix domain socket.

Single-Pass DOM Choice + Firewall

saccade_act

Selects the exact ARIA eXX ref and scores both unauthorized live-mutation risk and indirect prompt injection in one forward pass (~608 ms LFM). Ambiguous steps abstain and return a 0.25 ms Rust BM25-foveated, PII-redacted snapshot so the frontier model decides without an extra round-trip.

Set-of-Marks [1]..[12] Visual Grounding

visualFallback: true

Extracts visible bounding rects, auto-zooms compact icon toolbars, and stamps numbered amber [1]..[12] badges for <canvas> charts and unlabeled <svg> buttons. Lifts ScreenSpot accuracy from 20.7% (raw Box coordinates) to 87.7% (+67.0 points; 85.0% on 4-bit Apple M4).

Zero-Token Span Pointers & Table Alignment

saccade_extract

Maps HTML/ARIA tables via zero-token column alignment (~410 ms) and extracts flat JSON Schemas (strings, numbers, ISO dates, and BOS0 null abstentions) in 482 ms with zero generated tokens: 2.52× faster than causal JSON decoding with zero syntax drift.

Native Rust Multi-Page Pagination

saccade_sweep

Runs extract -> single-pass Next click -> 120 ms settle -> JSON row deduplication locally across up to 10 pages, collapsing 5+ cloud snapshot/click turns into one tool call (6 unique rows across 3 pages in 3.93 s).

Install & Reproducibility · macOS Apple Silicon

Turnkey Setup Across Your Coding Agents

./bin/saccade-engine --setup bootstraps the Apple Silicon MLX runtime, downloads the 96 MB LoRA suite, pre-caches the 1.25 GB d1-2B-MLX-4bit backbone with progress bars, and links saccade-engine globally. After pairing the browse Chrome extension, browse install --yes wires Saccade into Claude Code, Codex, Antigravity, OpenCode, Cursor, Windsurf, Gemini CLI, and 27 other MCP clients (1.00 GiB active DOM RAM, 0.00 GiB after 10 minutes idle).

git clone https://github.com/xmattwest/saccade.git && cd saccade
cargo build --manifest-path rust-browse/Cargo.toml --release -p browse
./bin/saccade-engine --setup
./rust-browse/target/release/browse pair && ./rust-browse/target/release/browse install --yes
Held-Out Adapter Benchmarks (Six Rank-8 FP16 LoRA Slots on LiquidAI/d1-2B)
LoRA Slot Head Layout Disjoint Training & Eval Split Held-Out Test Result (BF16) Apple M4 4-Bit Verification
d1_reflex_v2 Choice + 2× Noul (1 pass) WebLINX + Chrome capture.js + deepset/prompt-injections (n = 1,983) 76.1% Top-1 · 66.7% cov@90% (+25 pp) · 1.0000 firewall AUROC 83.5% slice Top-1 · 100% hazard recall · 0% false alarms
d1_som_grounder Choice over [1]..[12] badges mlfoundations/Click-100k -> 300 ScreenSpot test images (n = 1,550) 87.7% ScreenSpot (+67.0 pp vs. 20.7% raw Box; 88.7% web) 85.0% ScreenSpot · 428 ms live Chrome badge hit (p = 0.955)
d1_pointer_etl Read span pointer (text / num / date) SQuAD v2 + Chrome multi-field SaaS cards (n = 1,220) 97.0% BOS0 null abstention · 100% multi-field card exact 96.1% field exact · 482 ms live Chrome (0 output tokens)
d1_handoff_guard 2× Noul pre-CDP middleware Chrome Danger Zone + prompt-injection traps 1.0000 AUROC on direct click / fill / eval calls p = 0.9993 prod delete · p = 0.9254 ticket injection
d1_aftermath_tm 4-way transition Choice Chrome [before, after] crops + ARIA diffs 100.0% 4-class state accuracy + Algorithm-R reservoir 100.0% transition accuracy
d1_quickjs_etl CausalD1View generation JSONSchemaBench + Chrome QuickJS pairs 100.0% QuickJS syntax & ARIA ref validity 0 hallucinated eXX refs on shared 4-bit backbone

Runtime Update · macOS · November 26, 2026

Your paired Chrome profile can start in the background

When no paired browser is connected, browse tries to start its Chrome profile before execute, tabs, saccade_act, saccade_extract, or saccade_sweep continues. Parallel calls share one attempt, with an 8-second reconnect budget and a 20-second cooldown after failure. Status and tool-discovery calls do not launch Chrome.

This uses the paired browse extension, not Chrome DevTools remote debugging, so this route does not require Chrome's remote-debugging Allow prompt. It is a relay update, not a new model release. The adapter weights and inference benchmarks above are unchanged.

git pull --ff-only
cargo build --manifest-path rust-browse/Cargo.toml --release -p browse
./rust-browse/target/release/browse restart
Configure background startup and see what was verified
Environment variableDefaultPurpose
BROWSE_AUTO_LAUNCHtrueSet 0 or false to disable background Chrome startup.
BROWSE_CHROME_APPGoogle ChromemacOS app name or absolute .app bundle path.
BROWSE_CHROME_PROFILEAuto-detectedExisting directory name such as Default or Profile 1, not its display name.
BROWSE_AUTO_LAUNCH_TIMEOUT_MS8000Total launch/reconnect budget in milliseconds, up to 120000.

Profile detection checks Chrome's preferences and local pairing records where available. If more than one profile remains possible, set BROWSE_CHROME_PROFILE explicitly. The relay does not create a new profile or enable a disabled extension. Set overrides in your MCP server's env; if you restart from a terminal, pass the same values there. Restarting Gemini alone does not replace an already-running shared relay.

Verification: 164 unit/integration tests passed, with one optional memory test ignored. A live disconnected-relay check opened example.com in 568 ms while Chrome stayed open. A fully closed Chrome launch and different-profile fallback were not live-tested in that check. This single reconnect timing is not an inference benchmark. Saved smoke-test summary ↗ · Full relay documentation ↗