How to reverse-engineer almost any app with AI — and why you’d want to try it
Splitting a dinner bill is easy until two people share an appetizer, one person orders a second drink and someone says, “Let’s just divide it by four.” If you ordered a sandwich and a soda, that’s how you end up paying $38 for lunch. We've all been there.
A bill-splitting app already gives you the basic idea. You enter what everyone owes and it does the math. But for a restaurant check, it would be easier to start with what everyone ordered. Tap the names of the people who shared the fries, enter the tax and tip once and let the app work out what each person owes.
That’s a small example of what it means to reverse-engineer an app with AI. You figure out what goes in, what comes out and what rules connect the two. Then you give an AI coding tool like Claude Codex or ChatGPT Work those rules and ask it to build a version that works the way you want.
Work backward from the result you want
(Image credit: Anthropic ) In the situation above, just picture the screen you’d want to see when the check comes. You need a total next to each person’s name, and those totals should add up to what the restaurant charged. Work backward from there. Each menu item goes to the person who ordered it, shared dishes are divided among the people who ate them, and tax and tip are split based on each person’s share of the food and drinks.
It helps to write out one example before you touch a prompt. If three people split a $12 appetizer, each should owe $4 for it. When you add a fourth person to the table, their share should change only if you assign them to that dish. Tiny rules like that are easy to skip. They’re also what make the tool work the way you expect.
Give Claude a real example to build around
(Image credit: Future) Claude can preview small interactive tools as Artifacts , so you can try this in a chat and see how the calculator behaves as you use it.
An example prompt could be: Build a restaurant bill splitter as an interactive Artifact. Let me add people by name, enter each me




Comments
No comments yet. Be the first to share your thoughts.