JACoB PR for Issue Implement "Project Level Research" Feature for Onboarding New Projects #350
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
@jacob-ai-bot --skip-build
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.