Closed jacob-ai-bot[bot] closed 6 days ago
Hello human! 👋
This PR was created by JACoB to address the issue Implement "Project Level Research" Feature for Onboarding New Projects
Please review the PR carefully. Auto-generated code can and will contain subtle bugs and mistakes.
If you identify code that needs to be changed, please reject the PR with a specific reason. Be as detailed as possible in your comments. JACoB will take these comments, make changes to the code and push up changes. Please note that this process will take a few minutes.
Once the code looks good, approve the PR and merge the code.
Summary:
Description
Enhance the onboarding process in JACoB by adding a new "Project Level Research" feature. When a new project is onboarded, the system should automatically generate detailed research questions and answers that address fundamental information about the codebase. This will help users gain a deeper understanding of the project they are working on.
Tasks
Update
research.ts
in the Agent FolderIn the
/src/server/agent/research.ts
file, add an exported function.This function should:
researchQuestions
.researchCodebase
function for each question.In the new function within
research.ts
, instead of referencing a specific GitHub issue, include hardcoded sentences to prompt the research. For example:Refine the phrasing to be professional and clear.
Expected Outcome
Upon onboarding a new project, the system should automatically generate research questions and answers based on the codebase.
The new function in
research.ts
should effectively utilizeresearchCodebase
to process each question.Users should receive comprehensive information about the codebase without manual intervention.
Notes
Plan:
Step 1: Edit
/src/server/agent/research.ts
Task: Add Project Level Research Function to research.ts
Instructions: In the
/src/server/agent/research.ts
file, create a new exported asynchronous function namedresearchProject
. This function should accept two parameters: asourceMap
(string) and an array ofcodebaseContext
items. Inside the function, import an array from /src/data/researchQuestions.ts calledresearchQuestions
, an array of strings containing professionally phrased, hardcoded questions that will prompt detailed research and insights about the codebase (e.g., 'Provide an overview of the main functionalities of the codebase.'). Iterate over each question inresearchQuestions
, and for each question, call theresearchCodebase
function, passing the question and the necessary parameters (sourceMap
andcodebaseContext
). Ensure that the function does not reference any specific GitHub issue, as it is intended for general project-level research during onboarding.Exit Criteria: The
researchProject
function is correctly implemented, accepts the required parameters, utilizes theresearchQuestions
array to iterate over questions, callsresearchCodebase
for each question, and generates research answers without referencing a specific GitHub issue.