r/AgentsOfAI • • Oct 23 '26

I Made This 🤖 I built a DevTools-style protocol for inspecting native iOS and Android UIs from AI coding agents

I've been building Agent-DDP, an open-source DevTools-style protocol for inspecting and validating native iOS and Android UIs from AI coding agents.

The idea is to give coding agents the same kind of developer-tooling capabilities available through the Chrome DevTools Protocol (CDP) for browsers: the ability to inspect an application programmatically, query its internal state, and investigate rendering details rather than relying exclusively on screenshots.

Agent-DDP instruments the app in a Debug build and exposes information about its native view and rendering layers, including:

  • Visual properties: fills, borders, corner radii, opacity, clipping, and text styling.
  • Geometry and occlusion: element bounds, overlaps, and which layers cover others.
  • Animation behavior: inspect property changes frame by frame and track their evolution over time.
  • Automated validation: checks for rendering issues, animation behavior, accessibility, cross-platform UI parity, and regressions against saved baselines.
  • Runtime diagnostics: a rolling 15-minute history of UI activity to help investigate intermittent issues.

The goal is to let coding agents inspect the native UI in detail, understand how its properties evolve over time, and verify whether it satisfies defined constraints.

It supports SwiftUI and UIKit on iOS, and Jetpack Compose and Android Views on Android.

Install: npm i -g agent-ddp

I'd appreciate feedback, especially from people working on native mobile development, UI automation, or coding-agent infrastructure

1 Upvotes

5 comments sorted by

1

u/LynxInformal5305 Oct 24 '26

I'd test a button that's visible but can't actually be tapped. Correct bounds alone wouldn't convince me the agent can use it.

0

u/Smart-Peach-287 Oct 24 '26

Thanks, I will add a CDP way solution in the next release

0

u/Smart-Peach-287 Oct 24 '26

i just published the new release, your comment was helpful, found other issues related, thanks! https://github.com/bandada-labs/agent-ddp/blob/HEAD/CHANGELOG.md

1

u/AutoModerator Oct 23 '26

Thank you for your submission! To keep our community healthy, please ensure you've followed our rules.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.