Skip to content

Latest commit

 

History

History
62 lines (40 loc) · 1.95 KB

README.md

File metadata and controls

62 lines (40 loc) · 1.95 KB

LLM agent for code review automation using crewAI

An autonomous agent created using crewAI and Langchain to automate your code review workflow

👀 Sneak peek

🤔 How it works?

1. Get the Tree Structure of Repo

The agent will first get the tree structure of given github repository and then for every file, it will create full paths for that file from tree structure

2. Get the File Content

From the given file path, it will then use github API to get the file content

3. Review the File

Once it gets the file content, it will review the given file and make changes in code if needed.

4. Add the Review in Notion Document

The review will be added in notion document using notion API client.

⚒️ Architecture

🚀 Getting started

Prerequisites

  • Python and anaconda installed on your machine
  • OpenAI api key
  • Github Personal Access Token (PAT)
  • Notion api key

How to run?

  • Clone the repository
  • Create a file called constants.py in same folder and store all of your api keys like this
OPENAI_API_KEY = <key_here>
GITHUB_SECRET_KEY = <key_here>
NOTION_API_KEY = <key_here>
  • Open any jupyter notebook from repository and import the constants.py file in it
  • Select your existing python environment or create one using anaconda
  • Run the code