
pandause
io.github.panda-use/pandause
Fast local computer-use and browser-use MCP server with a 3-layer state graph engine.
Documentation
PandaUse
The fastest local computer-use and browser-use MCP server.
Browsers, native macOS apps, iPhone Mirroring, and Linux desktops · learn once, replay in milliseconds with zero PII.
Website · npm · Benchmarks · Enterprise
Quick Start
Pick your agent and plug in any one Layer 2 API key (BASETEN_API_KEY, GEMINI_API_KEY / GOOGLE_API_KEY, or OPENAI_API_KEY), or omit env to run Layer 1 replay + your agent only.
Cursor, Antigravity & Other MCP (mcp.json)
- Cursor:
~/.cursor/mcp.json(Add to Cursor) - Antigravity:
~/.gemini/config/mcp_config.json - VS Code: Install in VS Code
- Other MCP: Claude Desktop, Windsurf, or any MCP client
mcp.json
{
"mcpServers": {
"pandause": {
"command": "npx",
"args": ["-y", "@pandause/pandause"],
"env": {
"BASETEN_API_KEY": "your-baseten-key"
}
}
}
}
Claude Code
claude mcp add pandause -e BASETEN_API_KEY=your-baseten-key -- npx -y @pandause/pandause
OpenAI Codex
codex mcp add pandause --env BASETEN_API_KEY=your-baseten-key -- npx -y @pandause/pandause
Other API keys (Gemini / OpenAI / No key), Codex TOML, Homebrew, build from source & macOS permissions
Swap API key provider
Replace BASETEN_API_KEY with any of:
- Google Gemini:
GEMINI_API_KEY(orGOOGLE_API_KEY) - OpenAI:
OPENAI_API_KEY - No key (Layer 1 + Layer 3 only): omit
env/-e/--env
claude mcp add pandause -e GEMINI_API_KEY=your-gemini-key -- npx -y @pandause/pandause
claude mcp add pandause -e OPENAI_API_KEY=your-openai-key -- npx -y @pandause/pandause
claude mcp add pandause -- npx -y @pandause/pandause
codex mcp add pandause --env GEMINI_API_KEY=your-gemini-key -- npx -y @pandause/pandause
codex mcp add pandause --env OPENAI_API_KEY=your-openai-key -- npx -y @pandause/pandause
codex mcp add pandause -- npx -y @pandause/pandause
Codex ~/.codex/config.toml
[mcp_servers.pandause]
command = "npx"
args = ["-y", "@pandause/pandause"]
env_vars = ["BASETEN_API_KEY", "GEMINI_API_KEY", "GOOGLE_API_KEY", "OPENAI_API_KEY"]
startup_timeout_sec = 30.0
tool_timeout_sec = 180.0
Homebrew (macOS / Linux)
brew install panda-use/tap/pandause
Build from source
Requires Go 1.27+ (plus Xcode Command Line Tools on macOS for sg-macos; produces ./pandause and sg-macos):
make build
make test
Point your MCP client at ./pandause (with sg-macos alongside it on macOS for native apps and iPhone Mirroring).
macOS Permissions (Native Apps & iPhone Mirroring)
Browser automation (Chrome CDP) works immediately with zero OS permissions. For native macOS apps and iPhone Mirroring (com.apple.ScreenContinuity), grant Accessibility and Screen & System Audio Recording in System Settings → Privacy & Security to your host app (ChatGPT/Codex, Claude, Cursor, or your terminal) and sg-macos.
PandaUse (pandause) is a single-binary local MCP server powered by a 3-layer UI state graph engine: Layer 1 replays proven paths deterministically in milliseconds with 0 LLM calls, Layer 2 resolves fuzzy branches and drifted elements via a calibrated System-1 decision model (default: Baseten Bison, plus Google & OpenAI providers) with a binary irreversibility safety guard, and Layer 3 escalates novel screens to the host agent (Codex, Claude, etc.) and immediately compiles every action into a zero-PII SQLite state graph.
Fastest Across Every Benchmark (800+ Verified Runs)
Full reproducible harnesses, AUDIT.md reports, and per-task JSON results live in panda-use/benchmarks.
Historical raw JSON logs and archived commit tags (e037824, 62d38ef, e51ec56) in panda-use/benchmarks retain their pre-rename stategraph-mcp label for audit integrity.
Across 6 benchmark suites spanning web apps, live websites, and full Ubuntu desktop applications, pandause is consistently the fastest on both Cold Run 1 (empty graph) and Warm Repeat (deterministic Layer 1 replay down to 395 ms engine time):
| Benchmark Suite | Baseline Compared | Latency Speedup (pandause) | Accuracy / Score | LLM & Tool Reduction | Token & Cost Efficiency |
|---|---|---|---|---|---|
OSWorld-Verified Desktop (10 Ubuntu apps, claude-opus-5-5, bison_v2) | Anthropic native claude-computer-use | 2.10× faster Cold (25.85s vs 54.32s)2.25× faster Warm ( 27.26s vs 61.37s)Pure L1 ( 4/8): 17.06s (8.85s OS Trash) | 80% Cold (8/10) (tie) 100% Warm (8/8) | 3.52× fewer tools Cold (5.8 vs 20.4)6.41× fewer tools Warm ( 3.38 vs 21.62)1.60× fewer LLM Warm | 2.16× fewer input tok Warm 1.58× cheaper cached ( $0.0452 vs $0.0715)4.56× cheaper Pure L1 ( $0.0143) |
OSWorld-Verified Desktop (10 Ubuntu apps, gemini-3.6-flash) | Raw AT-SPI + Screenshot baseline | 1.99× faster Cold (33.80s vs 67.10s)1.90× faster Warm ( 33.51s vs 63.79s) | 70% Cold (7/10) (tie) 85.7% Warm (6/7) | 1.81× fewer LLM Cold 2.21× fewer LLM Warm | 3.19× fewer tok Cold / 2.89× Warm 3.31× cheaper Cold / 2.98× Warm |
MiniWoB++ Smackdown (20 tasks × 5 seeds = 300 runs, gemini-3.8-flash) | @playwright/mcp & chrome-devtools-mcp | 2.09–2.23× faster matched Warm (9.32s vs 19.45s/20.78s)2.57–2.96× faster Pure L1 ( 6.55s wall, 395ms engine) | 100% Cold (20/20) 92.0% All-100 ( 93.9% Exec-98) vs 100% | 3.78–4.48× fewer LLM Warm 5.19–6.65× fewer Pure L1 ( 1.00 LLM) | 4.44–8.21× fewer tok Warm 11.24–23.25× fewer tok Pure L1 3.82–5.73× cheaper @ 90% cache Pure L1 |
WebArena-Verified shopping_admin (90 HAR-verified runs, gemini-3.8-flash) | @playwright/mcp & chrome-devtools-mcp | 1.63–1.66× avg / 1.81–1.98× med faster (e037824)2.04–2.07× faster ( 62d38ef Exec-28)Up to 5.84× faster Pure L1 MUTATE ( 14.20s) | #1 SR: 93.3% (28/30) (100% Cold, 100% MUTATE) vs 83.3% CDT / 76.7% PW | 2.21–2.28× fewer LLM (e037824)2.62–2.70× fewer ( 62d38ef) | 1.26–1.75× avg (1.93–2.28× med) cheaper @ 90% cache (1.54–1.96× Cost/Pass)64–70× fewer tok on Pure L1 tid=474 |
BU Bench V2.1 (3-Way MCP) (15 open tasks × Cold+Warm = 90 runs, gpt-5.4-mini) | @playwright/mcp & chrome-devtools-mcp | 2.32× faster vs CDT (29.7s vs 68.9s, p=0.0047)2.44× faster Warm vs CDT ( p=0.0263)1.26× faster vs PW ( 29.7s vs 37.3s) | #1 across every split: 24.9 Cold / 27.7 Warm / 26.3 Comb vs 22.3 PW / 22.2 CDT | 2.64–2.73× fewer LLM (4.5 vs 12.4/12.0)2.83–3.08× fewer tools | 5.34× fewer calling tok vs CDT (p=0.0001)1.96× fewer vs PW ( p=0.0001)2.19× cheaper vs CDT ( p=0.0001) |
Parameterized Live-Web Suite (4 WebVoyager domains + Wikipedia, 45 runs, gemini-3.8-flash) | @playwright/mcp & chrome-devtools-mcp | 1.67–1.98× faster overall (37.59s vs 62.63s/74.24s)2.41–2.66× faster Cold ( 30.14s)Pure L1 arxiv-v3: 15.35s (3.5–3.9× faster) | #1 SR: 100.0% (15/15) vs 80.0% PW / 93.3% CDT | 2.57–2.90× fewer LLM (5.27 vs 15.27/13.53) | 1.87–2.89× fewer input tok 1.36–1.98× cheaper @ 90% cache (1.70–2.12× Cost/Pass) |
BU Bench V2.1 (Paired bcode 0.1.20) (30 tasks bu2-001..030, gpt-6.2-sol local headless) | Browser Use bcode 0.1.20 | 1.89× fewer browser tool calls (14.8 vs 28.0, p=0.0000) & 7.5× fewer screenshots (16.8 vs 126.1, p=0.0000) | +5.23 pts higher: 58.6 vs 53.3 (3× 100.0 perfect scores where bcode timed out) | 1.10× fewer LLM steps (34.4 vs 38.0) | 4.2× fewer uncached input tokens (p=0.0097); 0 PII hits (single-pass cold) |
Every
pandausecost figure in this README meters 100% of calling-LLM tokens + 100% of Layer 2 Decision Model tokens.
Live Codex Demo: Lyft Receipt Capture (Without vs With PandaUse)
1. Live Matched codex exec A/B (gpt-6.2-astra, 6-Ride Receipt Portal)
Identical prompt and model (gpt-6.2-astra, reasoning_effort=low) navigating a 6-ride Lyft receipt flow (Ride History → Your Trip → View Receipt (map + itemized payment) → Save PNG):
| Metric | Codex WITHOUT PandaUse (chrome-devtools-mcp) | Codex WITH PandaUse (pandause) | Improvement |
|---|---|---|---|
| Total Wall Time | 42.38s | 26.22s | 1.62× faster |
| MCP Tool Calls | 29 | 12 | 2.42× fewer |
| Warm Receipt Replay (Rides 2–6) | Re-navigates from scratch every ride | 550–578 ms / ride (5/5 Pure Layer 1: D=0, A=0) | 0 decision / 0 agent steps |
| Input Tokens | 440,558 | 399,361 | 1.10× fewer |
| Session Rollout Size | 1,115 KB | 310 KB | 3.60× smaller |
| Receipt PNGs Saved to Disk | 0 / 6 (write denied, base64 inline) | 6 / 6 (save_screenshot, zero PII in SQLite) | 100% saved |
2. Real iPhone Mirroring (com.apple.ScreenContinuity) Lyft Telemetry
From live Codex Desktop App sessions capturing itemized October Lyft receipts via macOS iPhone Mirroring:
- Steady-state LLM efficiency: PandaUse captured 8 rides (9 Retina
834×1836PNGs written directly to disk viasave_screenshot,0image tokens sent to the LLM) in7LLM turns (0.88turns/ride) vs Codex built-incua_repl's2.57turns/ride (59LLM turns across its 23-ride burst):2.9×fewer LLM turns per ride. - Native macOS capture + Vision OCR speedup: Fixing the
ScreenCaptureKitmain-threadRunLooppump, switching OCR to.fast, and pooling a persistent warmsg-macoshelper cut live iPhone Mirroringobservelatency from4,552 ms→~94 mswarm (74.5 msRetina capture +19.9 msOCR,48×faster).
Full Benchmark Results
1. OSWorld-Verified (Ubuntu Desktop · 115 Runs Across 3 Models)
Official xlang-ai/OSWorld evaluator (env.evaluate()) on Lite.OSWorld 1920×1080 Ubuntu Modal VMs across 8 desktop domains (10 tasks: os Trash recovery, chrome, vs_code ×2, gimp ×2, libreoffice_calc, libreoffice_writer, vlc, thunderbird). Warm runs execute on a freshly reset VM using only the SQLite graph learned during Cold (0 PII hits across all runs).
claude-opus-5-5: Anthropic Native Computer Use vs pandause (Bison Optimization)
| Configuration | Split (n) | Pass Rate | Avg / Med Latency | Avg LLM | Avg Tools | Avg Input Tok | Avg L2 Calls / Tok | Avg Cost (Raw / Cached) | Avg G / D / A |
|---|---|---|---|---|---|---|---|---|---|
Anthropic claude-computer-use (native) | Cold (10) | 80% (8/10) | 54.32s / 21.34s | 6.80 | 20.40 | 65,520 | 0 / 0 | $0.2809 / $0.0689 | 0 / 0 / 9.1 |
pandause (orig, Gemini L2) | Cold (10) | 80% (8/10) | 34.14s / 30.86s | 7.50 | 7.40 | 151,350 | 5.9 / 15,415 | $0.6338 / $0.2102 | 0 / 0 / 7.7 |
pandause (bison_opt) | Cold (10) | 80% (8/10) | 34.64s / 30.65s | 6.90 | 6.00 | 61,977 | 5.0 / 14,146 | $0.2706 / $0.0835 | 0 / 0 / 8.3 |
pandause (bison_v2, default) | Cold (10) | 80% (8/10) | 25.85s / 25.24s | 6.70 | 5.80 | 56,764 | 0.0 / 0 | $0.2473 / $0.0804 | 0 / 0 / 7.3 |
Matched 8 Passing Tasks: claude-computer-use | Cold (8) | 100% (8/8) | 61.37s / 20.23s | 7.00 | 21.62 | 69,593 | 0 / 0 | $0.2982 / $0.0715 | 0 / 0 / 9.9 |
Matched 8 Passing Tasks: pandause (orig) | Warm (8) | 100% (8/8) | 37.44s / 20.58s | 6.50 | 5.50 | 170,678 | 2.1 / 7,125 | $0.7096 / $0.1865 | 4.1 / 0 / 5.8 |
Matched 8 Passing Tasks: pandause (bison_opt) | Warm (8) | 100% (8/8) | 41.77s / 27.55s | 6.50 | 5.50 | 64,768 | 3.5 / 15,250 | $0.2841 / $0.0792 | 4.8 / 0.1 / 6.8 |
Matched 8 Passing Tasks: pandause (bison_v2) | Warm (8) | 100% (8/8) | 27.26s / 30.43s | 4.38 | 3.38 | 32,266 | 1.0 / 1,151 | $0.1436 / $0.0452 | 4.6 / 0 / 3.6 |
| Pure Layer 1 Warm Subset (OS, Thunderbird, Writer, VS Code) | Warm (4/8) | 100% (4/4) | 17.06s (8.85–28.3s) | 2.00 | 1.00 | 8,671 | 0.0 / 0 | $0.0397 / $0.0143 | 6.0 / 0 / 0 |
On the 4 Pure Layer 1 tasks, Anthropic's native claude-computer-use averaged 26.45s / 6.50 LLM calls / 18.25 tools / 62,364 input tokens / $0.2668 raw ($0.0650 cached); pandause is 1.55× faster, 18.25× fewer tools, 7.19× fewer tokens, and 4.56× cheaper (cached).
Additional OSWorld Models (gemini-3.6-flash & gpt-5.4-mini)
| Model | Arm / Phase (n) | Pass Rate | Avg / Med Latency | Avg LLM | Avg Tools | Avg Input Tok | Avg Cost (Raw / Cached) | Avg G / D / A |
|---|---|---|---|---|---|---|---|---|
gemini-3.6-flash | Raw Desktop Baseline Cold (10) | 70% (7/10) | 67.10s / 37.25s | 14.30 | 13.40 | 302,636 | $0.4823 / $0.4707 | 0 / 0 / 0 |
gemini-3.6-flash | pandause Cold (10) | 70% (7/10) | 33.80s / 32.41s (1.99×) | 7.90 | 6.90 | 94,782 (3.19×) | $0.1552 / $0.1423 (3.31×) | 0 / 0 / 6.2 |
gemini-3.6-flash | pandause Warm (7) | 85.7% (6/7) | 33.51s / 25.64s (1.90×) | 6.14 | 5.14 | 70,175 (2.89×) | $0.1181 / $0.1068 (2.98×) | 4.3 / 0.1 / 3.7 |
gpt-5.4-mini | Raw Desktop Baseline Cold (10) | 0% (0/10) | 60.97s / 59.31s | 20.00 | 20.30 | 439,399 | $0.3322 / $0.1576 | 0 / 0 / 0 |
gpt-5.4-mini | pandause Cold (10) | 20% (2/10) | 89.89s / 62.90s | 17.10 | 16.90 | 484,498 | $0.3732 / $0.1704 | 0 / 0 / 35.5 |
gpt-5.4-mini | pandause Warm (2) | 50% (1/2) | 112.03s (9.38s OS Pure L1) | 12.00 | 11.50 | 868,070 | $0.6648 / $0.2565 | 1.5 / 0 / 37.0 |
2. WebArena-Verified (shopping_admin) · 90 HAR-Verified Runs
6 templates × 5 entity variations × 3 MCPs (ServiceNow/webarena-verified==1.2.3, immutable Docker containers on Modal, gemini-3.8-flash at temp=0.0, Layer 2 gemini-decision-1).
Audited Full-30 Baseline (e037824, Zero Quota Aborts, Audited PASS)
| MCP Server | Split | Pass Rate | Avg / Med Wall | Raw Wall (w/ Retry) | Avg LLM | Avg / Med Input Tok | Avg Cost (0% / 90% Cache) | Cost/Pass (0% / 90%) | Avg G / D / A |
|---|---|---|---|---|---|---|---|---|---|
pandause (e037824) | Overall (30) | 93.3% (28/30) | 56.07s / 42.35s | 68.30s | 9.83 | 297,525 / 125,274 | $0.1576 / $0.0436 | $0.1688 / $0.0467 | 2.8 / 1.1 / 7.3 |
chrome-devtools-mcp | Overall (30) | 83.3% (25/30) | 92.82s / 76.59s | 98.65s | 21.73 | 636,818 / 511,742 | $0.3282 / $0.0763 | $0.3938 / $0.0916 | 0 / 0 / 0 |
playwright-mcp | Overall (30) | 76.7% (23/30) | 91.67s / 83.72s | 100.74s | 22.43 | 357,106 / 367,075 | $0.1869 / $0.0552 | $0.2437 / $0.0719 | 0 / 0 / 0 |
pandause (e037824) | Cold (6) | 100.0% (6/6) | 51.59s / 48.52s | 58.85s | 9.17 | 225,242 / 198,606 | $0.1196 / $0.0393 | $0.1196 / $0.0393 | 0.0 / 1.7 / 6.7 |
pandause (e037824) | Warm (24) | 91.7% (22/24) | 57.19s / 40.04s | 70.66s | 10.00 | 315,596 / 114,156 | $0.1671 / $0.0447 | $0.1822 / $0.0487 | 3.5 / 1.0 / 7.5 |
62d38ef Efficiency Sweep & First A=0 Pure Layer 1 WebArena Replays
| MCP Server | Slice | Pass Rate | Avg / Med Wall | Avg LLM | Avg / Med Input Tok | Avg Cost (0% / 90% Cache) | Cost/Pass (0% / 90%) | Avg G / D / A |
|---|---|---|---|---|---|---|---|---|
pandause (62d38ef) | Exec-28 (ex 2× 429) | 82.1% (23/28) | 43.68s / 42.80s | 7.79 | 158,129 / 110,024 | $0.0853 / $0.0300 | $0.1038 / $0.0365 | 3.6 / 1.0 / 5.3 |
chrome-devtools-mcp | Exec-28 | 85.7% (24/28) | 89.16s / 72.45s | 21.36 | 620,190 / 475,192 | $0.3189 / $0.0741 | $0.3720 / $0.0864 | 0 / 0 / 0 |
playwright-mcp | Exec-28 | 82.1% (23/28) | 90.50s / 83.72s | 21.86 | 344,010 / 317,557 | $0.1801 / $0.0536 | $0.2192 / $0.0653 | 0 / 0 / 0 |
- First-ever
A=0WebArena MUTATE replays (62d38ef, HAR-verified):tid=474(cancel_orderWarm 5, Pure L1G:7/D:0/A:0,0L2 tok): 14.20s · 2 LLM · 6,621 tok · $0.0031 cached (5.84× / 3.40× faster, 64–70× fewer tok, 20× cheaper vs PW/CDT).tid=490(change_cms_page_titleWarm 5, L1+L2G:8/D:1/A:0): 16.61s · 2 LLM · 5,233 tok · $0.0038 (3.77–4.24× faster, 25–76× fewer tok vs PW/CDT).
- Disclosure:
62d38efhit 2 Gemini daily RPD429aborts (tid=457, 116) and 4 Magento KnockoutJS CDP toggle/changeregressions (subsequently fixed in commit1da71a9). SQLite zero-PII audit passed 5/6 DBs (111/111literals clean);tpl 257had five 3-digit DOM checkbox IDs (#idscheck302) matching belowSanitizeLocator's 5-digit threshold.
3. MiniWoB++ Matched MCP Smackdown · 300 Runs (20 Tasks × 5 Deterministic Seeds)
Local deterministic Farama miniwob-plusplus (seeds 0..4), gemini-3.8-flash (temp=0.0), pandause@62d38ef vs @playwright/mcp vs chrome-devtools-mcp.
| Split | MCP Server | Runs | SR (>0) | Exact 1.0 SR | Avg Wall | Avg LLM | Avg Total Tok | Avg Cost (Unc / 90% Cach) | Cost/Pass (Unc / Cach) | Avg G / D / A |
|---|---|---|---|---|---|---|---|---|---|---|
Overall ALL (s0–4) | pandause | 100 | 92.0% (92) | 90.0% (90) | 13.22s | 1.97 | 9,567 | $0.00617 / $0.00461 | $0.00670 / $0.00501 | 1.5 / 0.2 / 0.9 |
Overall ALL (s0–4) | playwright-mcp | 100 | 100.0% (100) | 100.0% (100) | 20.37s | 5.92 | 33,313 | $0.01831 / $0.01070 | $0.01831 / $0.01070 | 0 / 0 / 0 |
Overall ALL (s0–4) | chrome-devtools-mcp | 100 | 100.0% (100) | 100.0% (100) | 21.99s | 7.07 | 62,315 | $0.03312 / $0.01506 | $0.03312 / $0.01506 | 0 / 0 / 0 |
Cold (s0) | pandause | 20 | 100.0% (20) | 100.0% (20) | 17.30s | 3.65 | 18,308 | $0.01040 / $0.00774 | $0.01040 / $0.00774 | 0.0 / 0.5 / 2.4 |
Warm ALL (s1–4) | pandause | 80 | 90.0% (72) | 87.5% (70) | 12.20s | 1.55 | 7,382 | $0.00511 / $0.00383 | $0.00568 / $0.00425 | 1.8 / 0.1 / 0.6 |
Warm Exec-78 (matched) | pandause | 78 | 92.3% (72) | 89.7% (70) | 9.32s | 1.59 | 7,571 | $0.00524 / $0.00393 | $0.00568 / $0.00425 | - |
Warm Exec-78 (matched) | playwright-mcp | 78 | 100.0% (78) | 100.0% (78) | 19.45s | 5.72 | 31,223 | $0.01718 / $0.01025 | $0.01718 / $0.01025 | 0 / 0 / 0 |
Warm Exec-78 (matched) | chrome-devtools-mcp | 78 | 100.0% (78) | 100.0% (78) | 20.78s | 6.85 | 58,843 | $0.03128 / $0.01450 | $0.03128 / $0.01450 | 0 / 0 / 0 |
Pure Layer 1 (strict, n=54) | pandause | 54 | 100.0% (54) | 100.0% (54) | 6.55s (395ms eng) | 1.00 | 2,380 | $0.00240 / $0.00240 | $0.00240 / $0.00240 | G>0 / 0 / 0 |
- Zero-PII audit: 20/20 DBs PASS (
79/79dynamic parameter literals checked,0leaks). - Disclosure: Playwright & DevTools achieved 100% SR with arbitrary JS
evalenabled (invoked 218 times);pandauseran without JSevalin this sweep and hit 2 Gemini daily RPD429aborts (excluded from matchedExec-78). Pure L1n=54excludes coincidental row-0 and partial-credit runs.
4. BU Bench V2.1 · Matched 3-Way MCP Eval (90 Runs) & Paired Local bcode (60 Runs)
4A. Simultaneous 3-Way MCP Eval (pandause@62d38ef, 15 Open Official Tasks × Cold+Warm = 90 Runs)
Official BU_Bench_V2.enc, gpt-5.4-mini (reasoning_effort=none, temp=0.0), official gpt-5.6-luna (xhigh) judge, 90/90 (100%) visual evidence parity, 0 timeouts, 0 rh_zeroed, 15/15 DBs 0 PII.
| Slice | MCP Server | Runs | Mean Score | Avg In Tok | Avg L2+L3 Tok | Avg / Med Wall | Avg LLM | Avg Tools | Avg Total Cost | $/Score-Pt |
|---|---|---|---|---|---|---|---|---|---|---|
| Cold | pandause | 15 | 24.9 | 51,337 | 64,021 | 28.0s / 22.5s | 4.3 | 5.2 | $0.0256 | $0.001028 |
| Cold | playwright-mcp | 15 | 24.0 | 106,679 | 106,679 | 38.9s / 22.2s | 12.4 | 17.7 | $0.0230 | $0.000958 |
| Cold | chrome-devtools-mcp | 15 | 24.1 | 352,257 | 352,257 | 61.3s / 49.7s | 13.3 | 16.4 | $0.0660 | $0.002741 |
| Warm | pandause | 15 | 27.7 | 57,353 | 70,603 | 31.4s / 20.1s | 4.7 | 5.5 | $0.0270 | $0.000973 |
| Warm | playwright-mcp | 15 | 20.6 | 106,704 | 106,704 | 35.6s / 23.4s | 12.3 | 15.4 | $0.0213 | $0.001035 |
| Warm | chrome-devtools-mcp | 15 | 20.3 | 228,158 | 228,158 | 76.6s / 35.8s | 10.7 | 14.0 | $0.0493 | $0.002431 |
| Combined | pandause | 30 | 26.3 | 54,345 | 67,312 | 29.7s / 22.4s | 4.5 | 5.4 | $0.0263 | $0.000999 |
| Combined | playwright-mcp | 30 | 22.3 | 106,691 | 106,691 | 37.3s / 23.0s | 12.4 | 16.6 | $0.0222 | $0.000994 |
| Combined | chrome-devtools-mcp | 30 | 22.2 | 290,208 | 290,208 | 68.9s / 48.7s | 12.0 | 15.2 | $0.0576 | $0.002600 |
- Exact Paired Permutation Tests (
2^15sign-flips): Cleanp < 0.05Warm sweep vschrome-devtools-mcpon every metric (+7.5scorep=0.0156,2.44×fasterp=0.0263,3.98×calling /3.23×L2+L3 tokp=0.0001,1.83×cheaperp=0.0005). vsplaywright-mcp:1.96×calling (p=0.0001) /1.59×L2+L3 tok (p=0.0104),2.73×fewer LLM calls; total dollar cost is a statistical tie (p=0.1879,$0.000999/ptvs$0.000994/pt) due to prompt-prefix cache rates (87.7%PW across 12.4 turns vs58.8%PandaUse across 4.5 turns).
4B. Paired Local Headless BrowserCode (bcode 0.1.20 + gpt-6.2-sol) · 30 Official Tasks (bu2-001..030)
Single-pass cold evaluation (pandause@e51ec56 vs Browser Use bcode 0.1.20, local headless Chromium, gpt-6.2-sol, gpt-5.6-luna judge, 3600s cap):
| Arm | Judged | Mean Score | Med Score | Avg / Med Wall | Avg LLM Steps | Avg Browser Calls | Avg Screenshots | Avg Cost | Zero-PII |
|---|---|---|---|---|---|---|---|---|---|
pandause (e51ec56) | 30/30 | 58.6 | 64.0 | 34.72m / 30.51m | 34.4 | 14.8 | 16.8 | $1.006 | 0 PII |
bcode 0.1.20 (Browser Use) | 30/30 | 53.3 | 63.5 | 31.29m / 25.56m | 38.0 | 28.0 | 126.1 | $0.820 | - |
pandausescored +5.23 pts higher (3× 100.0perfect scores onbu2-003,bu2-020,bu2-024wherebcodehit 60m timeouts scoring0.0 / 0.0 / 8.0), with 1.89× fewer browser tool calls (p=0.0000), 7.5× fewer screenshots (p=0.0000), and 4.2× fewer uncached input tokens (p=0.0097).
5. Parameterized Live-Web Suite (4 WebVoyager Domains + Wikipedia) · 45 Simultaneous Runs
5 live non-CAPTCHA domains (ArXiv, Coursera, HuggingFace, GitHub + Wikipedia) × 3 entity variations × 3 MCPs = 45 simultaneous runs (0/45 CAPTCHAs), gemini-3.8-flash (temp=0.0), pandause@e037824, objective REST API / JSON-LD graders. (Custom parameterized suite across WebVoyager domains, not verbatim WebVoyager_data.jsonl tasks.)
| MCP Server | Split | Pass Rate | Avg / Med Wall | Avg Wall (w/ Retry) | Avg LLM | Avg Input Tok | Avg Cost (0% / 90% Cache) | Cost/Pass (0% / 90%) | Avg G / D / A |
|---|---|---|---|---|---|---|---|---|---|
pandause | Overall (15) | 100.0% (15/15) | 37.59s / 29.27s | 45.99s | 5.27 | 140,589 | $0.0796 / $0.0342 | $0.0796 / $0.0342 | 2.2 / 0.7 / 2.5 |
playwright-mcp | Overall (15) | 80.0% (12/15) | 62.63s / 52.87s | 77.62s | 15.27 | 262,559 | $0.1400 / $0.0464 | $0.1750 / $0.0580 | 0 / 0 / 0 |
chrome-devtools-mcp | Overall (15) | 93.3% (14/15) | 74.24s / 53.09s | 86.14s | 13.53 | 406,712 | $0.2177 / $0.0676 | $0.2333 / $0.0724 | 0 / 0 / 0 |
pandause | Cold (5) | 100.0% (5/5) | 30.14s / 29.27s | 30.14s | 5.00 | 73,238 | $0.0428 / $0.0236 | $0.0428 / $0.0236 | 0.0 / 0.8 / 2.8 |
pandause | Warm (10) | 100.0% (10/10) | 41.32s / 28.98s | 53.92s | 5.40 | 174,265 | $0.0979 / $0.0395 | $0.0979 / $0.0395 | 3.3 / 0.7 / 2.3 |
- Pure Layer 1 highlight (
arxiv-v3-warm,G:6/D:0/A:0): 15.35s · 1 tool call · 2 LLM · 7,326 tok · $0.0073 vs Playwright59.42s($0.0684cached) and DevTools53.09s($0.0765cached). Alsowiki-v2/v3Pure L1 (G:4/0/0,13.14s/13.39s). - Disclosure:
0full parameter, goal, or URL-slug leaks across 15 DB snapshots; 10 short entity#idpartial tokens from GitHub/HF/Wikipedia DOM IDs were observed instates.anchors/elements.
6. Verified Architecture Experiments (A/B Proven Wins)
- Low-Risk SOTA Bundle (
62d38ef, 40 matched A/B runs): Trusted CDP input, strict modal visibility, volatile framework UID filtering, control-template matching, path compaction, and step-level L2 re-grounding cut uncached cost −35.2% and 90%-cached cost −26.4% across all 4 web suites simultaneously. - Reliability Gate + Date/Ordinal/Row-Scoped Slots (
62d38ef): Lifted MiniWoB++ target tasks +12.0 pp (76% → 88%,choose-date-easy1/5 → 5/5at569–630msengine Pure L1) and cut WebArena warm tokens −44.6% with 0 extra prompt tokens. - Visual UI Parsing (
e51ec56): Unlocked 0% → 100% Pure Layer 1 replay on<canvas>and div-soup/SVG apps via 20×20 quantizedptg:grid anchors (1.0000Jaccard across dynamic artwork changes,335msDHash cache hit) with 0ms / $0 overhead on standard DOM pages (≥ 2DOM elements) and 0 PII / 0 PNG bytes stored in SQLite.
Architecture: 3-Layer State Graph Engine
| Layer | Trigger | Engine | Latency | Cost |
|---|---|---|---|---|
| Layer 1: Graph Replay | Known state (≥ 0.95 Jaccard or ≥ 0.94 Visual dHash) with proven path | App-global Dijkstra over SQLite (~/.pandause/graph.db) | ~50–400 ms | $0 (0 LLM calls) |
| Layer 2: System-1 Decision | Fuzzy state / drifted locator / branch (≥ 0.75) | Calibrated 0-output-token Decision Model (Baseten Bison default, Google gemini-decision-1, OpenAI) + binary irreversibility check (Yes()) | ~150–400 ms | Fraction of a cent |
| Layer 3: Host Agent | Novel screen or irreversible action | Escalates compact keypoints (+ PNG when needed) to Codex / Claude; every act immediately teaches the graph | Host LLM turn | Paid once |
Drivers included in one binary: Chrome CDP (managed or attached), Safari DOM, macOS native Accessibility + ScreenCaptureKit + Apple Vision OCR (including iPhone Mirroring), cua-driver, and Linux OSWorld AT-SPI.
Zero-PII storage: SQLite never stores screenshots, element labels, typed parameter values, bounding boxes, or URL query/path PII: only structural fingerprints, sanitized locators, parameter slot names ({email}, {ride}), and transition reliability counters.
MCP Tools
| Tool | Purpose |
|---|---|
run | Execute a goal through the 3-layer state graph (Layer 1 replay → Layer 2 decision → Layer 3 escalation). Supports params, screenshot, and save_screenshot (writes PNG directly to disk). |
act | Execute a single UI action or ordered batch steps[] (click, double_click, triple_click, right_click, type, select, scroll, drag, hotkey, open), teach the graph, and optionally auto-resume Layer 1/2. Supports save_screenshot. |
observe | Observe a macOS app, URL, or parallel urls[] as compact UI keypoints (+ Vision OCR on mirrored/canvas windows) and check graph state match. Supports save_screenshot. |
extract | Read-only data extraction from an active session tab, URL, or parallel urls[] (structured text, tables, links, JSON-LD, or custom read-only JS). |
mark_goal | Credit a verified path as achieving the goal (ok=true) or penalize failed transitions (ok=false). |
graph_info | Inspect structural state graph stats (states, transitions, goals) or reset learned data for an app. |
Environment Variables
BASETEN_API_KEY: Enables Baseten Bison (decision-models/baseten-bison-latest, default Layer 2 provider).GEMINI_API_KEY/GOOGLE_API_KEY: Fallback / alternative Layer 2 provider (gemini-decision-1) + visual screen parser.OPENAI_API_KEY: Alternative Layer 2 provider.PANDAUSE_DECIDER: Override provider (baseten,google,openai,none).PANDAUSE_DB: Custom SQLite database path (default~/.pandause/graph.db).PANDAUSE_CDP_URL: Connect to an existing Chrome DevTools endpoint (default auto-managed Chrome on127.0.0.1:9222).PANDAUSE_HEADLESS=1: Run managed Chrome headlessly.PANDAUSE_OSWORLD_URL: Connect to an OSWorld VM server.
Legacy STATEGRAPH_* environment variable names remain supported as fallbacks.
@pandause/pandausenpm install @pandause/pandause