Second
p/second-2
AI-Powered Codebase Maintenance
Michael Seibel

Second β€” Automated codebase migrations and upgrades using AI

Featured
66
β€’
Second automates codebase migrations and upgrades for developers using AI agents. For the first time, businesses can now automate their digital transformation journey. You log in, connect Second to your GitHub repo, run a module, and get a pull request.
Replies
Best
Eric Rowell
Maker
πŸ“Œ
πŸ‘‹ Hi folks! I’m Eric Rowell, and I’m really excited to share what our team has been working on: https://www.second.dev. Second automates codebase migrations and upgrades for developers using AI agents and static analysis. You log in, connect Second to your GitHub repo, run a module, and get a pull request. We believe that most developers prefer to focus on making new and exciting software. But at large companies, they often have to spend a lot of time on codebase maintenance instead. Today, we specialize in Angular β†’ React, CRA β†’ Next, JS β†’ TS, Enzyme β†’ React Testing Library, 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 full access to our modules, and you can run them as many times as you like. Please try it out and let us know what you think. We're obsessed with codebase migrations and upgrades, so please let us know how we can help! πŸ™
Alex Li
@ericdrowell Love this β€” excited to see you launch on PH!
Chandan Maruthi
Code migrations are such a pain, As an Engineering Manager at LambdaSchool, I often came across code migrations. No one wanted to work on these projects and they often took too much time to complete. I really like the idea of automating migrations. This is such a common use case. Engineers can focus on user problems that are both fun and challenging to solve. I will check it out. @ericdrowell How does this work behind the scenes? How does Second tackle dependencies? And how long does this a typical migration run?
Eric Rowell
@chandan_maruthi1 Great question! We have a proprietary dependency resolver that collects the right dependencies, and determines the right version numbers to update your package.json file. We also have an import path resolver when files are moved around. Migrations can run anywhere between 10 seconds to several hours depending on how large the codebase is.
Alex@epsifund
Wow, this looks cool. Code migration is certainly something devs can have some help with to simplify the process and ease the pain! Kudos for launching this - will pass on the message to our dev team to check this product out! Best of luck!
Eric Rowell
@alex_epsi Thank you! Let me know if you need help with anything!
Marc Klingen
This is exciting, congrats on the launch Eric! Looking forward to trying Second once we move our Next project from pages to app router
Eric Rowell
@marc_klingen Thanks! Yea you can use our Upgrade Next module for this!
Good luck on the launch today guys! Second looks awesome and using AI to update and migrate codebase is genious!
Eric Rowell
@gusoliveira_ Thank you!
Solomon Shalom Lijo
This is so helpful, I am not even going to lie but this came out in the perfect time for me and my team! Though, it would be nice if a GitHub sign-up / sign-in was given but other than that, this is a gamechanger! Edit: Just tried it out and it does do it fast but when I checked my deployment, it failed but I also realized that it is under Alpha / Beta but honestly - am impressed, because it did create a PR in under a minute! Can't wait to say what else it can do :D P.S. Love the cool animation in the website :D
Eric Rowell
@solomonlijo Awesome! I want to make sure your migration completes correctly – you can you DM me on our Discord server? https://www.discord.gg/ZhYUEjsW3Z
Shane Afsar
Second is a game changer. I had the opportunity to have Second demo on a hobby codebase of mine that was in mixed JS & TS, and the conversion process saved 90% of the time it would have taken me to manually convert everything into TS. Second allows engineers to spend more time on their business logic and less time on routine & time consuming upgrades and migrations. I’m also excited for the use-case of conversions between frameworks β€” this could allow teams to try different frameworks with minimal time investment to see how they might work for their own use case. Super excited to see Eric and Sean working in this problem space!
Will Stith
This looks like it will relieve a huge amount of pain... Definitely using Second the next time I have an intimidating migration!
Eric Rowell
@stithwilliam22 Awesome! Please let me know if you need any help.
Jake Harrison
The idea of automating codebase migrations and upgrades using AI is a game-changer for developers. Second's approach to simplifying this often tedious process is commendable. I'm particularly intrigued by the range of migrations, from Angular β†’ React to JS β†’ TS. How does Second handle potential conflicts or discrepancies that might arise during these migrations, especially when dealing with complex codebases?
Felix HΓ€berle
Congrats on the launch!! How do you train the model?
Eric Rowell
@felixhaberle We found that using RAG (Retrieval augmented generation) is much more effective than fine-tuning in our case. We use base models like GPT-4 or open source models, and then we have vector stores for each module, with context pulled in from LangChain. For example, for our AngularJS -> React module, we have pulled in all of the documentation from AngularJS and React as context.
chand babude
I believe in Eric and his product This is going to save lots of work and efforts Excited to test this Keep it going Eric
Lance
Congrats on the launch - love the seamless nature of the product. How do you ensure that the migration has gone smoothly?
Eric Rowell
@lance1 Thank you, and great question! We do not do this yet, but we will add additional steps that check to make sure the new codebase compiles, runs, and that tests pass as well. We're building out utilities can that auto resolve issues found there.
Jacky Pan
Congratulations on the launch! Your AI agents will undoubtedly help many developers with their codebase migrations and upgrades.
Eric Rowell
@jackypan1989 Thank you!
Hashir Ahmed
Congrats on the successful launch of Second!
Eric Rowell
@hashirahmed thank you!
Naveed Rehman
Congrats on creating an amazing tool. One suggestion would be to incorporate real-time progress updates to ensure a smooth transition. Can't wait to see how Second evolves.
Eric Rowell
@naveed_rehman Thanks! Do you mean on the module job runs? We have jobs broken up into steps, and each step has progress bars
Jonathan
This is great- would love to see SCSS -> Tailwind / TSX
Eric Rowell
Sophia Williams
The integration with GitHub and the ability to instantly get a pull request after running a module is a standout feature of Second. With the rapid evolution of coding frameworks and languages, staying updated is crucial. Are there plans to expand the range of migrations supported, and how does Second ensure the quality and reliability of the migrated code? Additionally, the idea of an SDK for the community to build their own modules is exciting. Any timeline on when this might be available? πŸŒπŸ”„
Eric Rowell
@sophiawms Thank you! Currently we plan to hyper focus on a small number of modules, because quality output is critical (long tail of edge cases and considerations). But we will expand to more modules, and once we open up the SDK, we'll have a pretty robust ecosystem of options. Don't have a date yet for the SDK, but it's around the corner!
aseem gupta
This is amazing, migration takes a ton of engineering time
Eric Rowell
@aseem_gupta Thank you!
MANAS DEWARI
Nice Idea. Congratulations on the launch
Eric Rowell
@manas_dewari1 Thank you!!
Jesus Perez
I converted a javascript boilerplate for express into typescript I just have a suggestion that you should create the tsconfing configuration files and in the packages.json I think since I don't understand anything about typescript.
Eric Rowell
@bannednull Hi Jesus! We should be generating those – can you DM me on our discord so we can take a look? https://www.discord.gg/ZhYUEjsW3Z