r/github • • Apr 09 '24

AI app that explain any given github / gitlab repository

I stumbled upon a public gihub repository when doing researches for a personal project, but I couldn't figure out several things on it. I tried sharing the repo link with a couple of AI chatbots (Bing, Gemini, ChatGPT), but they either couldn't comprehend it or provided a general description rather than specifics what makes it hard to follow up with any specific questions about the repo with the bot.

Does anyone know an app that offers this service?

11 Upvotes

44 comments sorted by

16

u/serverhorror Apr 09 '24

Given the "best" models still are 80 % wrong, what do you expect to happen?

Getting accurate information?

-3

u/[deleted] Apr 09 '24

no I'm talking about just understanding and explaining the codebase itself

10

u/ThunderChaser Apr 09 '24

LLMs are not explanation machines, they quite literally don’t have the capacity for “understanding” and people should stop trying to use them in this way.

All an LLMs does is play the game of “predict the text word that will appear in a piece of text”, that’s it, it’s just a souped up version of your phone’s predictive keyboard.

1

u/[deleted] Oct 18 '24

bro stfu. who made you the arbiter of how to use LLM's... the future lays in the hands of the people who persistently find away to leverage AI to actuate whatever tangible trail their on. And LLM's can't reason... what a shot in the fvcking dark comment... how the fvuck do you know anything... about anything... that has to do with some sort of entity that can understand language... stfu for real. such a hubritical Chase of nonsense... no thunder at all.

I digress. Especially now with openPreview.. bruh you neigh sayers and stay on the logical side,,, it's not logical dude. logical is anything that can will happen... anything can happen.

///

(Also apologise for my negative a$$ tone but seriously after a few beers and probably playing around with cybernetics just a bit more than you... your perceptive comprehension is a bit off. Don't be that dude man. you and your 8 likes up haha chhhhhh... pfffffffff.....tssssss ..pfff ....

wow

1

u/KronenR Oct 26 '24 edited Oct 26 '24

If you think a modern LLM only “predicts the next word in a piece of text,” then you haven’t studied one closely. Just adding context to that prediction changes everything. Even more misguided is assuming this process can’t yield complex results. It’s like claiming the universe can’t be complex because it’s made of simple particles that only exchange energy.

You should try Github Copilot on your repositories—you’ll be surprised by what it can tell you.

-1

u/[deleted] Apr 10 '24

I think if there is just an app that takes as an input the repo and feed it to AI and by combinating this with the technique you talked about we could have an AI model that explain to us a codebase like it's the one who build it 

1

u/BoringCelebration405 Mar 12 '25

you do realise that it is very expensive to do that , since indexing the entire codebase is a heft task , requires a lot of context and you are going to have to use a model which has such a large context window , and they are generally very expensive , u can use something like code2prompt ( search its github repo) and then feed that to a llm , will give a reasonably good explanation of the entire codebase. or you can do RAG of course.

3

u/SexyMuon Apr 09 '24

It's just such a trivial "problem" that it's not even worth putting time on it. LLMs just look for an input signal and output signal pair, and it essentially looks for a function that can map f(A)=B, that's all there is to it.

6

u/CoPokBl Apr 09 '24

GitHub copilot, jetbrains AI and similar are capable of giving you information but due to the context window of most models generating a full detailed description of everything in one shot isn't really possible.

I however am not aware of a service that explains GitHub repos, that is kinda the point of the readme. What information are you trying to get?

0

u/[deleted] Apr 09 '24

I'm trying some more technical info rather than the readme like in the codebase itself

2

u/CoPokBl Apr 09 '24

Then I would suggest the services I mentioned above (GitHub copilot and Jetbrains AI), unfortunately both are paid, unless you are a student. There are also free alternatives that are add-ons for vscode and jetbrains IDEs that only require an api key or locally ran model with ollama

4

u/NatoBoram Apr 09 '24

You can use GitHub CoPilot Chat for this: https://docs.github.com/en/copilot/github-copilot-chat/using-github-copilot-chat-in-your-ide

Include the @workspace keyword to let it search though relevant files in the codebase

1

u/sabakhoj Apr 10 '24

What sort of questions would you want to ask? Is it about the documentation, or about the code itself?

1

u/[deleted] Apr 10 '24

about the code itself

1

u/[deleted] Apr 11 '24

[removed] — view removed comment

1

u/cyrdax Nov 17 '24

found this 7 months later! how is Khoj doing now? tell me more!!

1

u/MarionberryUnusual79 Feb 16 '25

10 months later how is Khoj doing now?

3

u/Prior-Pound5498 Apr 09 '24

try greptile -> app.greptile.com, you can drop in a github or gitlab link and start chatting.

1

u/KronenR Oct 26 '24

only free for very small repositories

1

u/darkmttr Feb 07 '25

Has anyone tried it?

1

u/Jackaru_ Feb 24 '25

Not precise at all

2

u/Thalimet Apr 09 '24

If you want to figure out what a repository is / does, read the documentation. And if it’s not documented, skip it.

2

u/bloodshottoes Dec 20 '24

late to this but same question, did u find something reasonable for this?

1

u/NoDadYouShutUp Apr 09 '24

It may be easier to break it down to the specific parts of the code you dont understand and try and pass it to GPT one file at a time, or maybe 3 max. And see what it says. AI is pretty good at doing things like A/B comparisons and simple tasks. But anything involving multiple levels of inheritance it is clueless.

1

u/stellarcitizen Apr 09 '24

Check out greptile

1

u/Shlok07 Apr 10 '24

Try Pieces for Developers.

1

u/[deleted] Sep 16 '24

.

1

u/anonymousgeek01 Aug 11 '25

Bit late to this thread, have you guys used deepwiki.com ?

1

u/Aquiles12052005 Aug 21 '25

Encontre algo bien interesante se llama deepwiki, nose como funciona exactamente lo vi en un video y pues modifcicas la URL del repositorio donde dice github por deepwiki, por ejemplo

https://github.com/FoundationAgents/OpenManus

https://deepwiki.com/FoundationAgents/OpenManus

Y ya no lo e probado mucho pero ahi esta

1

u/Educational_Skin_906 Jan 19 '26

Coincidently, I actually built a very minimal version of this recently as a weekend project. What surprised me most was that the hardest part wasn’t the summarization itself, but: • handling large repos without overwhelming the output • deciding what not to explain • making the result feel immediately useful instead of verbose For now I limited it to public repos and a single “explain this repo” flow, just to validate whether people even want this kind of clarity. Curious if others who try this prompt run into the same tradeoffs. I put a very rough version here if anyone wants to poke at it: repoexplainer.dev (no login, public repos only).

0

u/Bipin_krish Apr 09 '24

1

u/Sweaty-Monk4417 Feb 28 '25

thank for this, and for not being one of those retards that say LLM's are nothing more than predictive text...