Before Kavaro, I spent years building Dexi.io, a platform for automated data collection from the web. Earlier this year import.io asked me to help with a large customer moving from Dexi to import.io. The customer was one I knew well from my Dexi days. They had thousands of robots, and every one of them did real work.
I led the technical side. I designed the approach and built most of it, but it was a team effort. People on the customer's side knew what each robot was for and what "right" looked like. People at import.io knew their platform inside out and kept the deploys and test runs moving. My part was knowing both worlds and pointing AI at the gap between them.
Two systems that don't speak to each other
Dexi and import.io solve the same problem, but they work in very different ways. They're built on different ideas about how a robot is described, run and checked. There's no format to map onto another. Each robot has to be understood and then rebuilt.
By hand, a careful port of one robot takes somewhere between an hour and a day, plus a test run, plus the fix for what the test run found. Multiply that by thousands, many behind captchas, firewalls and sites that change without warning, and you have a project that takes years and that nobody wants to staff. That used to be the real cost of switching platforms. Plenty of customers stayed put because of it.
Step one: let the AI convert, but give it rails
The first version was simple. An AI agent got one robot at a time, condensed into a short readable form, and wrote the extractor. It wasn't left to improvise. We gave it:
- A helper library that bridges the two systems, so the common building blocks behave the same way on both sides. Every helper we added meant less code for the AI to invent, and fewer places to get it wrong.
- Tools, not just a prompt. The agent could read files, save the config, run the extractor it had just written and look at what came back.
- A memory. When it worked out something non-obvious, it wrote the lesson to a shared learnings file that every later conversion read first.
That got the first few hundred robots across far faster than any team of people could have managed. It also showed us the real problem. Converting was easy. Knowing whether a conversion was right was hard.
Step two: define "working", and make it readable by AI
"It ran without errors" means very little. A robot can run cleanly and return nothing, or half the rows, or the right rows with one column quietly wrong. So we built a comparison dashboard that ran each robot on both platforms with the same input and scored the results row by row against Dexi's output. Dexi was the ground truth, the robot the customer had trusted for years.
The important design choice was that the dashboard wasn't only for people. Everything it showed, an agent could fetch too: a summary as CSV, reruns triggered from a script, run logs decoded into text. An AI can't fix what it can't see. Once it could pull the scoreboard and the logs itself, "go and find out why these twenty are red" became a task it could take on.
We also wrote down every way a number could mislead. A health metric that said 100% errors on a robot that actually returned data. Scores that stayed stale until the other side finished rerunning. A "gap" that turned out to be two runs asking different questions. Each of those went into the project's instructions, so the next session, human or AI, wouldn't fall for it again.
Step three: the AI writes the compiler, then stops converting
With a scoreboard in place, we could finally measure the AI itself, and it was inconsistent. The same robot converted twice could come out two different ways. An audit across the corpus showed the same mechanical slips again and again, in parts of the translation that should never need judgment.
Mechanical translation is what compilers are for. So we turned it around and used AI to help build a deterministic compiler: plain code, no model involved, that turns an old robot into a new one. Every construct has one fixed rule. Same robot in, byte-identical extractor out, every time.
same robot in, same code out
Within a few weeks the compiler handled every robot in a 2,100-robot test corpus without falling back to the model. The AI didn't go anywhere. It got a better job.
Step four: a loop that iterates on its own
The last piece was packaging the work so an agent could run it from start to finish. We wrote it as two skills for Claude Code:
- Diagnose. Given a list of robots that don't match, gather the evidence (run states, decoded logs, errors), read each log next to the robot's code and say what is actually wrong. Scripts collect the evidence. The AI makes the call, because keyword matching on logs fails fast: the same error message can mean a bug, a blocked request or a search that rightly found nothing.
- Fix. Regenerate, run the whole corpus as a regression check, run locally on several real inputs, deploy, and verify in production against the old platform. Repeat until the agreed acceptance criteria are met.
One rule made it work: fix the compiler, never the output. A fix is written as a general rule about how the old system maps onto the new one, never as a patch for one robot. The best example: a robot was quietly returning only part of its data. The fix was one rule in the compiler. It fixed that robot and closed the same latent bug in more than a thousand others nobody had noticed yet.
That's when it stopped being a migration and started being a machine. Robots that failed fed the diagnosis, diagnoses fed compiler rules, rules improved every robot at once, and the dashboard told us whether it really had.
Where people still mattered
None of this replaced the team. It changed what the team spent its time on. The customer's people decided which differences mattered and which were noise. import.io's people knew their platform inside out and kept it moving. My job was mostly architecture and judgment: knowing where the two systems differed in ways that mattered, spotting when the AI was solving the wrong problem, and deciding when to stop converting and start compiling.
Knowing both sides helped more than any single technique. I knew why the old robots were built the way they were, because I had built the platform they ran on. I also knew the customer, so the conversations about what "the same" should mean were short and honest.
Why this matters beyond one migration
Every platform company has a version of this problem: a valuable customer stuck on something old, with years of accumulated logic that nobody wants to port by hand. That used to decide deals. With AI, the cost of the work drops sharply, but only if you build around it. You need a measurable definition of done, an environment the AI can see, a loop it can run on its own, and a place for fixes that compounds instead of piling up.
That combination is what I now help companies set up: hands-on, from architecture to the code. If you're sitting on a migration, an integration or an onboarding problem that looks too big to do by hand, get in touch.
