Why it matters
This tool significantly reduces the latency of Android device interactions, making it more feasible for AI agents to perform complex tasks. Developers gain a faster, more efficient way to script and automate Android device operations.

What changed

The Handsets CLI, developed in Rust, provides a high-performance interface for driving Android devices directly from the shell. It aims for millisecond-level command execution, a substantial improvement over traditional methods like adb shell which can take hundreds of milliseconds. Handsets achieves this by using a custom wire protocol over adb forward, employing length-prefixed binary frames for communication between the host and the device daemon. The daemon itself is a single, small JAR file that runs on the device without requiring root access or a separate app installation.

Key features include:

  • Low Latency: Single-call latency is reported between 2-7 ms, compared to 40-700 ms for adb shell and 30-100 ms for uiautomator2.
  • On-Device Daemon: A minimal, single-jar (~few hundred KB) daemon simplifies deployment.
  • Flexible Control: Commands can be executed from any language by calling the hs binary as a subprocess, with JSON output available for programmatic parsing. Python bindings are also provided via pip install handsets.
  • Advanced Selectors: A CSS-like selector syntax, inspired by Playwright, allows for precise targeting of UI elements based on attributes, text content, and relative positioning.
  • hs tui: A new terminal user interface that streams the device's interactive elements in real-time. This allows users to navigate and interact with the device using keyboard shortcuts, with actions mirroring the scripting commands for easy transition from interactive use to automation.
  • Efficient Imaging: Supports JPEG screenshots (default 768px long-edge) and WebP for compact lossy exports, with PNG reserved for debug purposes.

Handsets differentiates itself from tools like uiautomator2 and Appium by focusing on lean CLI operation and minimal per-call overhead, eschewing features like recorders, HTML reports, or iOS support in favor of speed and simplicity for tap-heavy automation.

Why it matters for builders

For AI agents and developers building them, Handsets offers a critical reduction in the feedback loop for Android automation. The millisecond-level latency means agents can react to screen changes and execute commands much faster, enabling more complex and responsive interactions. This efficiency is crucial for tasks requiring rapid decision-making or precise timing, such as UI testing, automated workflows, or even game automation.

Practical impact

Builders can integrate Handsets into their automation pipelines by installing it via a curl script or using the Python package. The CLI's hs use command initiates the on-device daemon, after which commands like hs tap "Continue" or hs wait "Welcome" can be executed. For more complex interactions, the hs ui command provides a table of tappable nodes, which can be piped into AI models to determine the next action. The new hs tui command offers an interactive way to explore and script flows, with the displayed commands directly usable in automation scripts. Developers can experiment with the CSS-like selectors for precise element targeting and leverage the JSON output for robust scripting in various programming languages.

Caveats and source limits

The project is described as a "fresh release" and is pre-1.0, indicating potential for API changes. While benchmarks are provided comparing Handsets to adb shell, uiautomator2, and Appium, these are self-reported and not independently verified. The source does not specify pricing, as it is an open-source project. Support for platforms beyond macOS and Linux is not detailed. The provided metadata indicates 67 stars and 4 forks on GitHub, suggesting a nascent but growing community interest.

Sources

Written with AI assistance from the linked sources; every claim below was checked against them automatically. How we produce articles.

Claim check: 7/7 supported claims - 7 evidence links - 100% avg confidence
  • Handsets is a high-performance Android control CLI built for agents and humans.supported - github.com
  • Handsets offers millisecond-level command execution for Android devices.supported - github.com
  • Handsets operates with a single JAR file on the device, requiring no app installation or root access.supported - github.com
  • Handsets provides a terminal UI (`hs tui`) for interactive control of Android apps.supported - github.com
  • Handsets uses a CSS-like selector syntax for targeting UI elements.supported - github.com
  • Handsets is built using Rust.supported - github.com
  • Python bindings are available for Handsets via `pip install handsets`.supported - github.com

Caveats

  • Described as a 'fresh release'.
  • Benchmark data is self-reported.
  • Single-source caution: verify critical details at the linked source.
Radar score 78/100 - how it was calculated
Reliability82
Freshness8
Novelty77
Technical85
Developer96
Ecosystem72
Confidence96
  • Reliability 82: GitHub metadata supports source trust
  • Freshness 8: Fresh GitHub release date
  • Novelty 77: Fresh GitHub release
  • Technical 85: Repository technical metadata
  • Developer 96: Developer tooling signals
  • Ecosystem 72: Fresh GitHub release
  • Confidence 96: Claims have reliable evidence
Share
XLinkedInHacker News

Discussion

Loading comments...

Related articles

Agents - Nov 25, 2026iPhone CLI: AI Agents Control Apps via AccessibilityiPhone CLI is a Rust-based command-line tool that enables AI agents to interact with any application on a real iPhone. It leverages the accessibility tree for operation, bypassing the need for XCUITest, WebDriverAgent, or Xcode signing.AI Tools - Nov 19, 2026Moli: Rust-based Headless Browser for AI AgentsMoli is a production-ready, Rust-built headless browser designed for AI agents, offering a lightweight footprint with on-demand rendering. It supports CLI, CDP, and WebDriver protocols, running on Linux, macOS, and Windows.AI Coding - Nov 20, 2026iPhone CLI: AI Agents Control Real iPhones via Accessibility TreeThe iphone-cli tool allows AI agents to interact with real iPhones using the accessibility tree, bypassing the need for Xcode, WebDriverAgent, or on-device app installations. This Rust-based CLI tool supports iOS 27+ and operates directly from the terminal on macOS and Windows.Agents - Nov 10, 2026Poki: AI Agents Control Real iPhones LocallyPoki enables AI agents to operate a real iPhone using a local Model-Context Protocol (MCP) server and agent. This project requires no jailbreaking or extra hardware, offering a direct way to automate iOS devices.Agents - Nov 25, 2026OpenGUI Android Agent Framework Latest ReleaseOpenGUI, an Android GUI agent framework, has released its latest version, opengui-workbuddy-v0.4.2. This framework enables AI to perceive, strategize, and interact with mobile applications via their graphical user interfaces.Agents - Nov 25, 2026Mika: On-Device AI Agent for Android App and Web AutomationMika is an open-source, on-device AI agent for Android that automates tasks across apps and the web. It operates on a hidden background screen, allowing users to continue using their phone while Mika performs actions like sending messages, browsing, or making purchases.