Palahepitiya Gamage Amila · Weekly Learnings
How an AI agent mapped a twelve-year-old app without the source code
· Palahepitiya Gamage Amila

On 10 November I watched Claude use a client's twelve-year-old app the way a customer would. It drove the website in a browser and the phone app on a real Android phone, one screen at a time. By the end of the day we had an interactive mind map of the product and its user flows, and nobody had opened the source code.
The short answer. You can map an old product from the outside. Point an AI agent at the live website and a real phone, and have it take a screenshot, tap or type, then look again. Before you plan new work on an old product, get a map of what it actually does.
Some context. I work as a fractional CTO, and I run AI agents on real client work. This client is rebuilding the same app, with the same features, on a new tech stack, so we needed to know exactly what the current one does first.
Why did a twelve-year-old product need a map?
Because nobody had ever made one. The founder said it best:
"We've been running this product for twelve years and we still don't have a feature mind map and a predictable, consistent user flow diagram. Now we just connected it to Claude, got Claude to run it, and it created an interactive mind map and a user flow that outlines the standard flows for the industry."
When a product grows for twelve years, what it does lives in the app and in people's heads. If you plan new work without a picture of it, you find the missing pieces late.
How can an AI agent use an app without the source code?
It uses the same front doors a customer uses. For the website, it drove a real browser. For the phone app, it drove a real Android phone over ADB (Android Debug Bridge, the developer connection that lets a computer control a phone).
Every step on the phone followed the same loop. Take a screenshot and read the list of buttons and fields on screen. Tap or type. Then look again to see what happened. That loop needs no access to the app's code, so we didn't need the source code, database access or the vendor's documentation.
What came out of one day?
From our run notes for 10 November:
- 312 phone screenshots
- 334 website screenshots
- about an hour and a half on the phone, across two runs (13:03 to 13:53 and 14:44 to 15:24 UK time)
- an offline test in flight mode, lasting 4 minutes 12 seconds
The screenshots became inventories of the screens and what you can do on each one. The inventories became the interactive mind map the same day.
What did the map show that nobody had written down?
One clear find was in the back office. The support login, walked read-only, had 42 menu items. The admin login had 18 (run notes, 10 Nov). If we had only mapped the admin view, we would have missed more than half of the menu.
What went wrong?
Three things, all worth knowing before you try this:
- A notification stole a tap. In the first phone run, a notification popped up and the agent's tap opened another app. The second run, with Do Not Disturb on, had none.
- The keyboard moved the layout. When the on-screen keyboard opened, the fields shifted and taps landed in the field above.
- Pinch-zoom was out of reach. Two-finger gestures can't be sent over ADB, so those screens need a person.
How do you map your own old product?
- Use a test login and a phone you control, and turn on Do Not Disturb first.
- Make the agent take a fresh screenshot after every tap, so it checks where it actually is.
- Walk every kind of login you can get, not only the admin one.
- Plan a short manual check for anything that needs two fingers.
Once you have the map, plan the new work against it, not against what people remember the product doing.
Related: The agents weren't the slow part.
Questions this note answers
Do I need the source code to map an old app?
No. We mapped this app from its live website and a real Android phone, with no source code, database access or vendor documentation. The agent only needed to see the screen and tap or type.
How long does it take to map an app with an AI agent?
For this app, one day. The phone runs took about an hour and a half, and the mind map was built the same day (run notes, 10 Nov 2026). A bigger product will take longer.
What can't an AI agent test on a phone over ADB?
Two-finger gestures such as pinch-zoom. Notifications and the on-screen keyboard can also throw its taps off, so turn on Do Not Disturb first.