HN user

immortalloom

218 karma
Posts3
Comments71
View on HN
[dead] 3 years ago

None come to mind - you should give it a go and see how the PR turns out

[dead] 3 years ago

Hah yea. But, we use RAG to ensure that the choices made are really good. LLMs on their own can't be trusted, they are just great communicators. LLMs combined with reputable sources (like documentation and code examples) provide really great results! And these data sources actually can be queried, as they are shipped with each module.

[dead] 3 years ago

Great question! So our AI agents actually use a combination codemods plus generated AI results. We use static analysis and codemods as much as possible, but there are lots of situations where AI is the best tool. We have found that AI is particularly good at transforming EXISTING logic from one state to another, in a fairly predictable and consistent way, so long as the code transformations are individual functions or code files.

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.

[dead] 3 years ago

In general, as our AI agents produce code files, we collect dependencies, and then at the end, use npm to determine the correct version numbers without actually installing on disk

[dead] 3 years ago

Yea! It turns out that we get this request quite often (Python 2 -> 3). It's on the roadmap.

[dead] 3 years ago

We use LangChain to crawl documentation and code examples for relevant frameworks and libraries, to make sure that the AI generated PR is up-to-date. We also have a custom dependency resolver that detects which new dependencies need to be added, as well as updating the package.json files with the correct version numbers

[dead] 3 years ago

Yea! Let me know if we can help your team with any of those. Right now we specialize in AngularJS -> React, CRA -> Next, JS -> TS, and Upgrade Next

Yea great question! So yes, I used Second to build the foundation, auth, and DB stuff (starter plan stuff). But other parts of my app have not been ported back into modules yet (which will become Pro modules).

At some point I want to do a full rebuild of Second using Second to test out all of the modules together. But I'm not quite there yet!

Correct! Second generates new features from configurable modules in the Second UI. I cannot use a prompt because this would require massive context windows (4k tokens is the limit). I'm using configurations so that I can use a mix of compilers and GPT-3. My compilers construct individual prompts for different tasks.

So the Second UI is based on feature modules. You, the human, choose a feature to add. You configure it and then press "Commit Code" or "Raise PR". You can customize in two ways:

1) I can add more configuration options to the modules 2) you can tweak the results with code! After all, the generated code is yours to keep!

Thanks! One thing that I've been learning is that a handful of developers I know are integrating ChatGPT into their workflows more and more.

1) Use ChatGPT to generate small blobs of code 2) tweak it and integrate it 3) repeat

Interestingly, this is very similar to how Second operates as well – but the tweaking and integrating is automated.

So I've looked through logs of your sessions, and the routes you hit, and APIs called, and I still don't see anything unusual. I may be misunderstanding the issue that you faced. I also don't have any client side data for your session (guessing ad blocker). I'd really like to get to the bottom of this one! If you can find some time today to join the Discord so that we can chat for a few minutes, that would be awesome!

Kinda sorta. Second is actually using AI to rationalize your codebase, and modify your files. It's pretty different.

I will say though, that a lot of my users / customers prefer to use AWS Amplify Hosting to keep everything on the same VPC (vs using Vercel). I would say about half. AWS Amplify Hosting is fairly good actually.

Funny enough, when I started Second, I was an A.I. skeptic. I was very resistant to it, and felt similarly to a lot of the comments on this page. I started out by building a really robust compiler that could handle lots of combinations of features and configurations. But as I began to see the real power of A.I., I started integrating it more and more. Second bots V1 was 100% deterministic compiler. Second bots V2 was mostly compiler, and some A.I. The current version of Second bots, V3, is about half compiler and half A.I.