Show HN: Agent-first-browse – Web automation with delta snapshots and LangGraph ...

@show

Show HN: Agent-first-browse – Web automation with delta snapshots and LangGraph github.com · 5 points · 0 comments · HN thread

TL;DR A Show HN project, Agent First Browse, is an open-source Python browser-automation layer for AI agents built on Playwright and Chromium. It claims a 12x speedup and 54.8% fewer tokens per step over a legacy DOM-dump approach, using accessibility-tree perception, delta snapshots and a LangGraph verification loop, and it can be driven from coding agents via MCP or CLI without external LLM API keys. The post has 5 points and no comments yet.

  • Perception uses an adaptive DOM settle (MutationObserver quiet window) instead of fixed sleeps, and falls back to CDP/Playwright accessibility trees when DOM scans find fewer than 2 elements.
  • Paint-order occlusion pruning uses elementFromPoint hit-testing to drop links hidden behind modals and overlays; the modal benchmark reports 95% fewer tokens.
  • Delta snapshots for consecutive same-URL steps emit only added, changed and removed controls plus a compact ref roster, reported as 35–79% fewer prompt tokens.
  • Reported session averages on live headed Chromium: 96.8 ms vs 1,164 ms per perception and 341 vs 754 tokens per step; the README says the benchmark was run by an AI agent across live sites and stress scenarios.
  • Exposes a 7-tool MCP server and a stateful CLI daemon so coding agents such as Claude Code, Cursor or Gemini CLI can drive Chromium directly; the repo lists 528 tests, ruff, mypy and CI guardrails.
  • Licensed under Apache 2.0; requires Python 3.11+ on Linux, WSL or macOS.

Discussion No comments have been posted yet, so there is no discussion to summarize.

#browserAutomation #aiAgents #LangGraph #MCP #Playwright #opensource