8000 JACoB PR for Issue Implement "Project Level Research" Feature for Onboarding New Projects by jacob-ai-bot[bot] · Pull Request #350 · jacob-ai-bot/jacob · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

JACoB PR for Issue Implement "Project Level Research" Feature for Onboarding New Projects #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

jacob-ai-bot[bot]
Copy link
Contributor
@jacob-ai-bot jacob-ai-bot bot commented Nov 18, 2024

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

  1. Update research.ts in the Agent Folder

    • In the /src/server/agent/research.ts file, add an exported function.

    • This function should:

      • Accept a source map and an array of codebase context items as parameters.
      • Iterate over each question in researchQuestions.
      • Call the 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:

      "To assist the user in understanding the codebase, please conduct thorough research and provide detailed insights."

    • 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 utilize researchCodebase to process each question.

  • Users should receive comprehensive information about the codebase without manual intervention.

Notes

  • Do not make any other changes to the codebase at this moment.
    @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 named researchProject. This function should accept two parameters: a sourceMap (string) and an array of codebaseContext items. Inside the function, import an array from /src/data/researchQuestions.ts called researchQuestions, 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 in researchQuestions, and for each question, call the researchCodebase function, passing the question and the necessary parameters (sourceMap and codebaseContext). 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 the researchQuestions array to iterate over questions, calls researchCodebase for each question, and generates research answers without referencing a specific GitHub issue.

Copy link
Contributor Author
jacob-ai-bot bot commented Nov 18, 2024

Hello human! 👋

This PR was created by JACoB to address the issue Implement "Project Level Research" Feature for Onboarding New Projects

Next Steps

  1. Please review the PR carefully. Auto-generated code can and will contain subtle bugs and mistakes.

  2. 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.

  3. Once the code looks good, approve the PR and merge the code.

@kleneway kleneway merged commit 94321b6 into main Nov 19, 2024
1 check passed
@kleneway kleneway deleted the jacob-issue-346-1731968777304 branch November 19, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0