r/ClaudeCode • u/Cylicium • 4d 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
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

