r/ClaudeCode • • 1d ago

Built with Claude Build an ECR adapter with Claude Code: a small contract with a conformance kit that tells you when you're done

Post image

I'm the author. This is an invitation more than an announcement.

mobile-agent-testers started as Claude Code agents playing personas on mobile apps in CI. It passed 2,400 GitHub stars in its first ten days. The problem was that an agent's path to a bug only survived as prose in its report. So I wrote a contract to keep it: Explore-Compile-Replay (ECR). The agent explores once, its run becomes a typed trace, and the trace compiles to a plain test that replays in CI with no model.

Most of ECR was written with Claude Code, under my direction, and I reviewed the code and the claims. That's why I think it's a good size for a Claude Code session: a trace format, an adapter interface, seven laws, and a conformance kit. You point `ecr conformance` at your adapter and it tells you which law fails. The mobile adapter, which compiles to Maestro flows, is 298 lines. On LocalSend, an open-source app I didn't write, 137 of 140 replays gave the recorded result.

What I'd like to see next: a web adapter (there's an open issue for it), command line tools, HTTP APIs, games, accessibility checks. If your project passes `ecr validate` (and `ecr conformance` for an adapter), replays in CI with no model, and shows the badge, I'll feature it in the README under "Built with ECR" with your name, and in the next release notes.

If you try it with Claude Code, I'd like to know where the agent got stuck on the contract. That tells me what the spec explains badly.

Start here: https://github.com/pierridotite/explore-compile-replay#build-with-ecr

Paper (preprint): https://doi.org/10.5281/zenodo.24565285

1 Upvotes

6 comments sorted by

•

u/AutoModerator 1d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

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

2

u/Radiant_Hippo_2067 1d ago

the conformance kit should validate image metadata too, I had a bot fail silently because the ecr tag didn't include the expected digest.

1

u/Cylicium 1d ago

I think that's Amazon ECR, the registry. Different thing, same letters.

2

u/Typical-Age3744 1d ago

the conformance kit's output format for failed laws could use a clearer breakdown of what's actually violated, right now it's just a pass/fail per law, which makes debugging tricky if you're building from scratch.

1

u/Cylicium 1d ago

Fair, the details are all on one line right now. I'll split them, thanks.

1

u/Cylicium 1d ago

For context, the first project built on it: https://github.com/pierridotite/mobile-agent-testers (2,400+ stars). The next listed one could be yours.