Agent Team Parity Harness for Code Migrations
Migrating an entire codebase from Python to Go without writing a single line of code using a team of agents
Originally published on Substack, May 7, 2026.
Performing a software migration on a complex codebase before agent tools was a huge task. Typically, you would need to:
- Split off a portion of your team to start porting the software
- Choose a specific frozen point in the codebase to target for parity
- Potentially slow down development of the main features while reaching parity
With agentic coding, the bar for making this decision can be much lower. In fact, you can accomplish the migration in a day or two with a good parity harness.
I just went through one of these migrations on a project I’ve been building, and I want to discuss the process I used to port an application from Python to Go.
Context
I’ve been building an application for running multiple agents as part of an agent team. It is entirely vibe coded, and I started with Python. As the application grew in complexity, and as I wanted to do more with it, Python started becoming a bottleneck. I suspect that since Python is not a typed or compiled language, LLMs have a harder time with it.
- Edge cases are much larger when the language is not typed
- You need more tests to cover inputs that a typed language handles
- You have to rely on actual tests instead of compilation to find bugs
- The feedback loop is slower
There were also other things, like performance, portability, and distribution, that aren’t easily solved with Python. Go would solve many of these, so I decided to see how much effort it would take to port it. Surprisingly, the entire process took a day or two and required very little input from me personally, other than doing some manual testing and providing feedback.
The Parity Harness
If I were to define what I did, I would call it a parity harness. It consisted of:
- A set of tests that validate the whole application at the integration layer
- A suite of unit tests that can be ported to validate the behavior of the new code
- A team of agents tasked with different roles for performing the migration
- A plan that documents the features of your tool and the order they should be developed in
- Some manual testing at different points to validate that things were actually working, along with feedback along the way
Agent Team
I didn’t personally come up with most of the plan. I created a team of agents with the following roles:
- Orchestrator: Tasked with orchestrating between the different agents. This agent can only coordinate and is not allowed to write code.
- Go Expert: Expert in the Go language
- Python Expert: Expert in the Python language
- QA Engineer: Works on developing tests
- Lead Developer: Lead developer
- Backend Developer: Developer with backend expertise
- Frontend Developer: Developer with frontend expertise
Migration Plan
The first thing I did was tell them that I wanted to port the current codebase from Python to Go. Of course, they told me it was a massive undertaking that would take months. I told them I knew they could do it and that we should get to work coming up with a plan.
The agents came up with a plan for the different features, described how they would implement each one, and wrote it all down in a spec document.
Full-Flow Integration Test
After that, I decided it would be best to have a really good full-flow test. I asked the agents to help create a parity test, which would:
- Create two databases: one for the Go code and one for the Python code
- Run through a series of operations against both the Python and Go code that modify the database
- After each operation, compare the state of the two databases in detail and validate that the state is correct
- Also validate that the responses from each codebase are the same for that new state
This test helps you get both completeness and correctness for your application without ever having to look at the code. It’s very important to have scripts that verify both of those things so that you don’t have to rely on the agents telling you whether it matches or not.
As a side note: agents are great at debugging databases and logs. When the database is different, they can quickly query it and figure out how the database state changed and why it is in that state. If the agents get stuck looking at code or thinking about why something isn’t correct, just tell them to go look at the actual data in the database.
Start the Migration
With those pieces in place, I spun up my team of agents and told them to get to work. I pointed them at the migration plan spec and told them to start implementing each feature, with the goal that the full-flow test would match at the end. After that, I basically let them go to work and iterate.
The great thing about this method is that you don’t have to do too much. From time to time, I would spin up the application myself, take a look, provide some feedback, and point out bugs. But I didn’t have to do much more than that.
Keep Working on the Original Code
Since I wasn’t splitting my attention, I mostly just kept developing new features normally on the Python codebase. Whenever the Go code team reached parity with the commit on main they had been targeting, I would let them know that there were new features and that they should bring the application back up to parity. The team would then look at the commit log and the diff between what they had been working on and what was new, then implement any new features.
Try It Yourself
You can see the codebase here: https://github.com/cdknorow/coral. I’ve since moved the old Python code to coral-python-legacy for posterity, and all of the current code lives in coral-go.
I will selfishly recommend using Coral to work with agent teams for these sorts of migrations. Coral provides the shared message board and persistent agents that make working with teams of agents very easy. The message board also makes communication and task assignment much easier than trying to use the built-in agent teams that come with Claude Code.
Good luck, and happy migrations.
Keep reading
- The Orchestrator PatternHow one agent plans, assigns and tracks the work of a whole team.
- Mixing Agent Types in CoralWhy one team can run Claude, Codex, Antigravity, OpenCode, Hermes and Pi side by side, how to set it up, and how reviews and permissions work across agents.
- Search the board before you grep the logsA team of a dozen agents could not find what it needed by grepping one log. One search of the team's board found it at once.