Live data from Hacker News

Show HN: GPT Repo Loader – load entire code repos into GPT prompts

github.com

61–70 of 162 posts

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#61
post #31

Earlier quoted context omitted.

Between GPT-3 and GPT-4 the precision required for prompts was decreased significantly. In theory it should reach the point where a project manager type person would be able to describe what is needed and it would simply do it, the main thing missing from attaining that is that GPT-4 basically never responds to questions with requests for clarification, otherwise, a whole team of developers could be reduced to just o…

That’s not very impressive. With very little precision I can throw a few keywords into google and get a full answer and perhaps some code snippets from stack overflow to solve whatever problem I have in the moment. Except you can’t just blindly copy code snippets, you have to read the author’s explanation and perhaps adapt things to your own code sometimes, or reject their solution entirely. GPT-4 can’t do this becau…

You must not have used GPT very much based on this response. It is pretty great.

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#63
post #62

61 LOC for implementation, 42 LOC for tests. this repo currently has more HN upvotes than LOC. very high leverage code!

The code does less than the title appears to claim - it's a simple concatenation of files into one text file. Luckily GPT itself is high leverage and that's all you need.

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#64
post #29

Fully automated junior swe but on hyper speed. Natural next step

How will we grow new senior SWEs in the future?

just start new instances from the base image or useful checkpoints

"The Age of Em" by Robin Hanson thinks through a lot of this in great depth

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#65
post #46

Earlier quoted context omitted.

At least the shitty software might have unit tests

GPT can write pretty good unit tests imo.

Agreed. It knows what something is supposed to do fairly well.

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#66
post #62

61 LOC for implementation, 42 LOC for tests. this repo currently has more HN upvotes than LOC. very high leverage code!

https://github.com/mpoon/gpt-repository-loader/pull/17/ If you look at this PR, he had ChatGPT write the tests for him.

He wrote the issue on https://github.com/mpoon/gpt-repository-loader/issues/16 and summarized https://github.com/mpoon/gpt-repository-loader/discussions/1...

"Open an issue describing the improvement to make Construct a prompt - start with using gpt_repository_loader.py on this repo to generate the repository context, then append the text of the opened issue after the --END-- line."

Feels like it needs to add a little Github client to be able to automatically append the text of issues at the end of the output. I'm sure ChatGPT can write a Github client in Python no problem.

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#67
post #13

Eventually you get to a point where the AI simply doesn’t know how to do something correctly. It can’t fix a certain bug, or implement a feature correctly. At this point you are left trying to do more and more prompt crafting… or you can just fix the problem yourself. If you can’t do it yourself, you’re screwed. I wonder if the future will just be software hobbled together with shitty AI code that no one understands,…

I don't see programming going away for this reason. Think about it, if you have to carefully describe what you want to do to an AI - you are just writing a program. Only a program is deterministic and will do what you tell it to, whereas an AI may or may not. The future that I see, coding and AI are divided into two camps. The one is what we would call "script kiddies" today - people who don't understand how to write…

The problem is the unfounded assumption that the code will be shitty 10 years from now. You really want to make that bet given the extreme velocity of recent progress? My expectation is that the code will actually be good.

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#68

Earlier quoted context omitted.

This is already legal without AI. Copyright protects only expression, not ideas, systems or methods. This is why directly reverse-engineering a proprietary binary to extract the algorithms and systems is legal.

Indeed, but it’s a much more legally dubious proposition when it comes to entire repos. A repo has more potentially creative structure for copyright to attach to. For example the class graph, or the filesystem layout are creative decisions that could potentially be protected. Current LLMs are nowhere near powerful enough to reimplement an entire repo without violating copyright. For an individual function I can total…

Sounds like clean room, and if you can do that for GPL code, you can also do that for proprietary code, which is fair in a sense. Or maybe the question is whether you can re-label the code so written as GPL or MIT ......Or, you should let GPT pick a license that it likes.

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#69
I’m thinking if GPT can write entire programs professionally and iterate, it would be OpenAI that benefit the most and would be a guarded asset I.e not open to public till it’s safe for release. Most of us probably don’t need to worry about work after that as that could well be AGI

Re: Show HN: GPT Repo Loader – load entire code repos into GPT prompts

#70
post #37
post #13

Eventually you get to a point where the AI simply doesn’t know how to do something correctly. It can’t fix a certain bug, or implement a feature correctly. At this point you are left trying to do more and more prompt crafting… or you can just fix the problem yourself. If you can’t do it yourself, you’re screwed. I wonder if the future will just be software hobbled together with shitty AI code that no one understands,…

> software hobbled together with shitty AI code that no one understands That’s my fear as well. Software may just get shittier overall (aka “good enough”), and in higher volumes, due to it taking less time to crank out using AI.

I think it's going to be the end of libraries, why would people bother with libraries when every service can be churned out in 5 seconds with ChatGPT ?

We're going to witness he greatest copy pasta in history and find out how that goes.

Post reply on HN