Live data from Hacker News

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

github.com

151–160 of 162 posts

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

#151
post #117
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,…

Most of the software will be GPT itself.

Yes, aren't we under-focusing a bit, right now, on the goals that in the past were achieved by writing code but will in the future be achieved by LLMs themselves (and their replacements)?

For example, maybe we write some code now with the goal of helping a customer service person do their job. But we all know that plenty of people are trying to replace customer service people with LLMs, not use LLMs to write tools to help customer service people.

I see that the LLM still needs to know what's going on with the customer account, and maybe for a long time that takes the form of conventional APIs. But surely something is going to change here?

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

#153
post #12
post #11

now that's a name I haven't seen in years, hi mpoon! also this is slick as hell

Oh hi fire

hey man, hope things have been going well for you

on the main topic, have you heard about RWKV ( rnn based gpt style network )? the project's actively working on implementing "infinite" context length support, which would probably pair very well with a project like yours

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

#154

Earlier quoted context omitted.

Exactly, but this has some scary implications in the future - imagine when it is common pratice to allow AIs API access as a matter of course... When giving a prompt, the prompt causes the crawling of many APIs to build the response - the power of such activity/features, will be scary power-to-authoratarian goals. Imagine if the prompt is "Select all users who have political beliefs, posts, comments, links from APIs…

Imagine that these prompts are not triggered by humans anymore, but by the AI invoking itself. Sam Altman takes comfort in the thought that their AI does nothing without a human prompting it, so it has a human in the loop, as a circuit breaker if you will. This assumption is rapidly becoming a mere hope, as right now probably hundreds of developers are working on systems which, when put into production and connected…

Imagine that you just out-did me on how dystopian this AI cyberpunk future could get.

Imagine I want you to shoot me.'

Imagine I Want [whatever]GPT to make a cyberpunk Anime based on such...

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

#156
So I have been toying with an AutoPR GitHub Action for a bit but seeing this spurred me to actually put it into a format for y'all to try. It uses GPT-4 to automatically generate code based on issues in your repo and opens pull requests for those changes.

https://github.com/irgolic/AutoPR/

What AutoPR can do:

- Automatically generates code based on issues in your repo. - Opens PRs for the generated code, making it easy to review and merge changes.

By using this GitHub Action, you can skip the manual steps of prompt design, and let the AI handle code generation and PR creation for you.

Here's how I used it to make the license for itself: https://github.com/mpoon/gpt-repository-loader/issues/23

Feel free to give it a try, and I would love to hear your feedback! It's still in alpha and it works for straightforward tasks, but I have a plan to scale it up. Let's see how far we can push GPT-4 and create a more efficient development process together.

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

#157

Earlier quoted context omitted.

I always think about this when using a free online prettifier, decoder, and the like. But I'm sure people use those things with code/secrets from work without really considering it, and I think those habits will carry right over to AI chat.

FYI, prettier.io is open source and can be self-hosted. Also if you watch the website’s network traffic, you won’t see it uploading anything to a server: it’s all done client-side.

Good to know!

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

#159
post #100
post #46

Earlier quoted context omitted.

At least the shitty software might have unit tests

co-pilot excels in writing tests. It removes so much of the tedium and boilerplate. It seems to understand fixtures once you define one and understands subsequent changes to the boilerplate such as changing usernames, ids, appending items to lists. It is such a massive boost in productivity that those using it are way ahead of those who resist.

That's great. I've done something much similar with other tools. It certainly helps automate the drudgery in writing tests for code that I understand and wrote.

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

#160
Im no expert, but wouldn't it make more sense to give the repo-context (structure, source code, PRs, Issues, ...) as embeddings? You could use langchain to generate an embedding and send it through the API, like explained here [1]. It then should have access to the context at inference time, which as I understand is better than loading the context in the prompt which wastes tokens / max. output length and has a limit.

1 https://www.youtube.com/watch?v=veV2I-NEjaM

Post reply on HN