Manuscript Offprint

arXiv:2609.07586

A Tool-Augmented, GPT-4 Chatbot for Real-Time Repository Data Analysis

Muhammad Jawad Chowdhury, Md. Sakib Khan

Muhammad Jawad Chowdhury

Computer Science and Engineering

Islamic University of Technology

Dhaka, Bangladesh

Email: jawad@iut-dhaka.edu

Md. Sakib Khan

Computer Science and Engineering

University of Dhaka

Dhaka, Bangladesh

Email: sakibkhan111296@gmail.com

Abstract—Software repositories contain vast amounts of data on code contributions, bug reports, and project activities, yet this information remains challenging for non-technical stakeholders and developers to access due to limited expertise in querying repositories. To address this, we introduce a novel chatbot architecture leveraging OpenAI's GPT-4 model for automated extraction and analysis of repository data. In contrast, our architecture takes a structured path first by parsing the user's query to extract relevant parameters, then selecting the correct tool to employ based on that analysis, and finally invoking the GPT-4 model to create a highly detailed response. In contrast to previous work based on multi-component systems with embedding models and document retrievers, our architecture inverts the process by relying on prompt engineering and tool selection to fit with the query intent. To validate our approach, we conducted experiments on various question types, including (Issues, Pull Requests, Commits, Compound Questions, and General Repository Information) evaluating our target prompts' ability to improve the accuracy of responses from the model. Beyond demonstrating the utility of this architecture to a diverse set of users, our findings suggest that this architecture can make repository data more accessible to technical and non-technical audiences through the production of actionable insights.

Index Terms—Large language models, software repositories, GitHub, tool-augmented chatbot, repository mining, prompt engineering

I. INTRODUCTION

In the context of open-source software, platforms such as GitHub act as an essential source and database of large amounts of data created by multiple contributors [1][2][3]. This data should be analyzed to gain more insights that would improve the quality of software and also increase our understanding of the software development process [4][5][6]. However, analyzing repository data is challenging because repositories contain many interconnected elements, including commits, pull requests, issues, and contributor activities. Extracting useful insights from these elements can be time-consuming and requires technical expertise. [7][8][9].

Also, the involvement of non-technical stakeholders in the analysis of the repository has numerous benefits [10] such as better collaboration [4], clearer communication, and better decision-making [11][12]. Yet existing barriers prevent these stakeholders from accessing or understanding repository data. The most crucial property of iteration mechanisms is to generate summary reports [13] on demand so that non-technical users can monitor project progress, identify risks, and make data-driven decisions without needing to rely solely on developers [14][15].

Large Language Models (LLMs) on the other hand, have rapidly evolved to become central to a wide array of applications, ranging from natural language processing tasks like translation and summarization to creative writing [16], content generation [17], and even healthcare [18] and customer support [19]. These versatile models leverage vast amounts of training data to produce human-like responses, making them valuable tools across industries [20][21]. Thus, researchers and developers are beginning to harness LLMs for in-depth software design analysis, highlighting LLMs' growing role in advancing the capabilities and efficiencies within software development processes [22][23][24][25]. In line with this, our research introduces a chatbot solution for GitHub repositories [7][26], designed to simplify the process of querying and analyzing repository data, thereby enhancing the software development process for both technical and non-technical users [27][28][29][30].

The key contributions of our chatbot are as follows:

  1. We propose a tool-augmented architecture that parses natural-language repository queries, extracts relevant parameters, selects appropriate tools, and retrieves real-time data through the GitHub REST API.

  2. We construct an evaluation dataset of 80 repository-related questions across pull requests, commits, issues, compound queries, and general repository information, including out-of-scope questions for testing abstention behavior.

References (42)