Show HN: Fully automated codebase migrations and upgrades using AI
Here’s a demo video: https://www.youtube.com/watch?v=d5IldYeCPBY.
We believe that most developers want to spend their time innovating and creating new software. A lot of time at large companies is spent on basic codebase maintenance instead. Not all of this is automatable, but some is! And the technology to support it is developing rapidly.
Unlike generic AI agents, our AI agents specialize in codebase migrations and upgrades. The agents run modules which include a procedural plan of attack, and execute prompts using RAG (Retrieval-Augmented Generation) to utilize the most up-to-date context to do the job, including documentation and code examples, crawled with LangChain and stored in vector DBs. Our agents also reshape directory structures, resolve dependencies, and update build systems. The agents can run in our Second Cloud, in your own AWS or Azure VPC, or they can run fully on-premise with open source LLMs.
Today, we specialize in Angular → React, CRA → Next, JS → TS, and Upgrade Next. We’re building new modules every week, and we plan to open up an SDK to enable the Second community to build their own modules too.
You can try Second for free on codebases up to 2MB. For larger codebases, we charge $10/MB for the first module run, and then after that you can run it as many times as you like for free.
Please try it out and let us know what you think. We are obsessed with codebase migrations and upgrades, so please let us know how we can help!
20 comments
[ 2.5 ms ] story [ 44.1 ms ] threadNext 12 to 13 (with app router) is a struggle for even seasoned teams. Not looking forward to AI handing off a 162833292 line PR.
In combination with our RAG approach, you will find that if you run the same module multiple times, the generated results are incredibly similar with very little variation. Give it a go for yourself! You can try it for free on codebases up to 2MB, or use any of our example repos.
These kinds of migrations are unbelievably tedious on large codebases, and when lots of teams are involved they can turn very high-friction. Being able to build a module to conduct a one-off migration over a huge codebase would be a massive force-multiplier for a lot of teams.
One thing that is nice about human teams doing migrations is the opportunities to redirect, optimize, and discuss.
1. Are these migrations purely A -> B or is it A -> Optimized B? 2. Are there any opportunities for the AI to be interactive to request feedback or have a discussion with the process as it is going?
Do you have learnings on for which kind of project setups the migration works well and for which it struggles?