Dev open-sources Traffic Engine: DOM playbook cache makes repeat browser agent sessions cost $0 tokens
ystudio3d · reddit · 2026-11-19
Reddit user ystudio3d released Traffic Engine (MIT, Node.js + Playwright/Crawlee) to fix the cost problem of running an LLM on every browser agent click.
Architecture:
- Route playbook cache + 4 agent roles: on run #1 the agent maps the page and caches a compact DOM action plan per route (25-min TTL, 80-entry cap). Repeat sessions replay human-jittered variations in pure Playwright at $0 tokens; the LLM only wakes as a route healer after 2 consecutive failed steps.
- Decision vs. chat routing: worker decisions use compact numeric IDs (the LLM never sees raw CSS selectors); commander and recovery roles use reasoning models.
- Safety & visibility: rrweb DOM streaming dashboard on :4310, maskAllInputs, FIFO secret redaction (500 in-memory), read-only target preflight, no CAPTCHA solving, live inbox OTP verification.
- BYOK or hosted mode: works with Ollama Cloud / UncensoredLLM keys, offline deterministic fallback.
Limitations: no CAPTCHA solving; React apps with zero stable attributes trigger a recovery re-cache pass.
More from coding & agent
- Qwen3.8-27B coding-agent-adapted model trends on Hugging Face — harness-hub · 2026-11-19
- Agno's agent compaction: summary as index, originals stay searchable — pritisinghhhh · 2026-11-19
- "Copy your AGENTS.md if AI coding left you zero problems to solve" — burny_tech · 2026-11-19
- Hugging Face team preps docs to build, package and distribute Helion kernels on the Hub — ariG23498 · 2026-11-19
- Developer Adds a Dynamic Island to His App in 30 Minutes With Just 3 Prompts, No Swift Needed — PrajwalTomar_ · 2026-11-19
- Ditching agent frameworks made my agents noticeably better: eval and side-effect checks are the real work — Rbovzz · 2026-11-19