๐จ GitChat - Conversational UI for Pull Requests ๐จ
@mathemagic1an81K followers
60,268 views
10 Comments
Comments from the original post on X (Twitter)

@mathemagic1an
Reading through huge PRs is a huge pain, especially in large/collaborative codebases. What if there was a better way than reading through large sets of file diffs (and unhelpful comments?) 2/
8 likes

@mathemagic1an
This is a perfect use case for LLMs like GPT They can instantly parse even large code changes and comment on them intelligently. Even better, with some clever engineering, they can navigate your codebase and understand the larger implications of the code. 3/
6 likes

@mathemagic1an
is a first stab at leveraging LLMs to enhance pull request review: ๐ immediately summarize large change sets ๐ค detect regressions + vulnerabilities โ๏ธ refine PRs with intelligent suggestions etc. 4/
14 likes

@mathemagic1an
This takes advantage of OpenAI's new ChatGPT API and domain-specific architecture/UX: - File references w/ links to GitHub - LLMs empowered with codebase-wide code search - Smart syntax highlighting What else should I add?
9 likes

@mathemagic1an
Try it out! Let me know what you think. cc @bentossell this is my hackathon submission
6 likes

@mathemagic1an
Built with @remix_run @vercel @supabase @OpenAI @LangChainAI
11 likes

@pdp
I imagine this feature will be part of GitHub pretty soon given that MS owns it and 50% of OpenAI.
1 like

@pyoner
@TheBuilderJR look at this โ๏ธ
1 like

@megadrofan
Jay, I'm closely following your coding projects as an ML dumb guy. But still can't figure out, how theoretically the codebase wide knowledge can be brought to LLMs without training from scratch?

@mathemagic1an
Hey Alex - there are a few known and widely-used methods and many more to be discovered Most naive approach: search for the top N files or codeblocks in your codebase based on a question, then inject them into the LLM's context This works surprisingly well for certain types of questions, like "how does authentication work" etc. This pattern is called retrieval-augmented generation and there are many variations on it
1 like