Skip to content

An autonomous agent to automate your code review workflow made using crewAI

Notifications You must be signed in to change notification settings

Ionio-io/LLM-agent-for-code-reviews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

An autonomous agent to automate your code review workflow made using crewAI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published