跪拜 Guibai
← All articles
AI · Testing · Open Source

From Playwright to LLM Agents: 8 Open-Source AI Automation Tools for Browsers, Phones, and Code

By 狂师 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

AI automation has moved beyond toy demos into production-ready open-source tooling, but the cost and reliability of every inference step still dominate design choices, so teams need a clear pick based on whether they're debugging, running flows, testing on real devices, or reviewing code.

Summary

The shift in test automation from rigid selectors to natural-language-driven agents is now concrete enough that a single article can catalog eight credible open-source options. Three work in browsers: chrome-devtools-mcp (Google's official MCP server that gives AI agents direct access to DevTools debugging data), Skyvern (a YC-backed agent that parses the live DOM and screenshots at each step and lets an LLM pick numbered elements instead of hardcoded selectors), and Stagehand (Browserbase's TypeScript-first framework that separates act, observe, and extract, with deterministic replay after the first inference to cut token costs).

On the mobile side, ARTEMIS is Google's real-device Android agent with a native MCP server, three-path control locating that handles Canvas/Flutter via OCR, and Flash/Pro tiers. Mika is an individual developer's on-device agent that pairs over wireless debugging and runs on a separate screen, using only locally installed apps and sending data only to a self-configured model backend. phone-harness connects real iPhones and Androids to coding agents like Claude Code via Mac mirroring/Vision OCR or adb accessibility trees, exposing around 50 Python helpers.

For code and API layers, Alibaba's OpenCodeReview splits deterministic parts (file/line positioning) from model judgment, achieving a 33.9% precision that positions it as pre-commit screening, while Keploy records real traffic via eBPF to generate replayable regression tests and mocks without standing up dependencies. The shared design pattern across all eight: minimize model calls by keeping deterministic execution in code, reserving inference for judgment calls.

Takeaways
— chrome-devtools-mcp has 57k stars and packages DevTools debugging (network, console, performance, accessibility) into an MCP server, enabling agents to run Lighthouse audits and reproduce frontend bugs from real browser state.
— Skyvern avoids hardcoded selectors by numbering interactive elements on each page snapshot and letting an LLM choose; 23k stars, YC-incubated.
— Stagehand offers act, observe, and extract APIs with deterministic replay after the first inference, cutting model calls; 26k stars, TypeScript/Python/Go SDKs.
— ARTEMIS uses a native MCP server for real Android devices; it falls back to OCR and vision models for Canvas/Flutter pages, and reports over 99% completion on Google's AndroidWorld benchmark (Google grades its own test).
— Mika runs on-device on Android with no root, no PC, and uses a separate background screen; it has built-in knowledge for 36 common apps and sends data only to your chosen model provider; 8.7K+ stars in three weeks.
— phone-harness connects iPhones/Androids to coding agents via Mac mirroring/Vision OCR or adb accessibility trees, with Python helper functions like tap_text and wait_for_text; it cannot handle unlock screens, icons, or multi-touch.
— OpenCodeReview (Alibaba) reads git diffs and reports issues with file/line ranges; on its own benchmark it doubles F1 for Claude Opus while spending a fraction of tokens, but precision is 33.9% so human review is still required.
— Keploy records real API traffic with eBPF and generates replayable tests and mocks for databases, caches, and queues; it is in the CNCF Landscape and works offline in CI.
— Across all eight tools, the pattern is to put deterministic execution (selectors, line numbers, replay) in code and reserve model inference for judgment calls, because tokens are the dominant cost.
— The comparison table recommends chrome-devtools-mcp for debugging, Skyvern for cross-site workflow runs, Stagehand for TypeScript teams, ARTEMIS for mobile testing with CI, Mika for personal phone chores, phone-harness for agent workflows needing real-phone steps, and OpenCodeReview/Keploy for code review and regression.
Conclusions

The most revealing design choice among these tools is the universal effort to minimize model calls: even AI-native automators treat inference as an expensive resource, which flips the old assumption that more AI is always better.

Stagehand's credential isolation — passwords filled by engineering code, not the model — points to a wider tension: agents that can see and do anything on a page also expose sensitive data, so the ones that survive production will wall off secrets from the model context.

Alibaba's OpenCodeReview precision of 33.9% is a blunt admission that LLM code review is still a pre-filter, not a final verdict; teams adopting these tools should expect to keep human review as the quality gate.

The rise of on-device agents like Mika and phone-harness suggests a split market: large-platform agents run in the cloud for enterprise testing, while individual developers are gravitating to privacy-preserving local tools that reuse their existing apps and logins.

Concepts & terms
MCP (Model Context Protocol)
An open protocol that standardizes how AI agents connect to external tools and data sources. An MCP server exposes capabilities (like browser debugging or phone control) in a uniform way, so an agent such as Claude Code can invoke them through a single interface.
Accessibility hierarchy / accessibility tree
A structured representation of UI elements that assistive technologies use. In Android, the accessibility tree exposes buttons, text fields, and other interactive controls, which automation agents can read to understand the screen layout instead of relying on pixel coordinates.
eBPF
Extended Berkeley Packet Filter, a Linux kernel technology that allows programs to run safely in response to system events without modifying kernel source. Keploy uses it to intercept and record network traffic at the kernel level, generating test data from real request/response flows.
Deterministic replay
A technique where an AI action, once executed successfully, is recorded and re-executed as a fixed script without invoking the model again. This cuts token costs and improves reliability for repetitive operations; Stagehand applies it after the first model inference.
Wireless debugging
An Android developer feature that lets you connect to a device over the network (ADB over Wi-Fi) without a USB cable. Mika uses it to obtain the accessibility permission needed to operate the phone without requiring root access.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗