Skip to content

It's a Local API Server support fork, that is mean you can use Claude and ChatGPT to review code in GitHub and give recommendations to improve it. It helps developers find issues in their code.

Notifications You must be signed in to change notification settings

Amm1rr/Auto-Code-Review

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Code Review

Open in Streamlit

Fork Note: This fork comes with additional support for a Local API Server (WebAI to API) for ChatGPT and Claude support.

This is a research day project, Use at your responsibility.

Auto Code Review is an app designed to help software developers improve their code quality by leveraging the power of OpenAI's large language models. The app analyzes the code in a given GitHub repository and provides recommendations to enhance the code. It is a valuable tool for developers, allowing them to discover potential issues in their codebase.

To use Auto Code Review and get recommendations for your code, follow these steps:

  1. Access the app: Open the Auto Code Review app in your web browser.
  2. Enter the GitHub repository URL: In the input field labeled "GitHub Repository URL", enter the URL of the repository you'd like to analyze.
  3. Enter your OpenAI API Key: In the input field labeled "OpenAI API Key", enter your OpenAI API key. If you don't have one, you can obtain it from the OpenAI platform.
  4. Select file extensions: Choose the file extensions you want to analyze or add additional extensions in the provided input field.
  5. Clone the repository: Click the "Clone Repository" button. The app will display the files available for analysis in a tree structure.
  6. Select files to analyze: Check the boxes next to the files you want to analyze, then click the "Analyze Files" button.
  7. Review the recommendations: The recommendations will be displayed in a clear and structured format, with code snippets and suggested improvements. Review these recommendations to identify potential areas for improvement in your code.

Keep in mind that Auto Code Review is an AI-powered tool, and while it can provide helpful insights, it may not always be perfect. It is essential to use your judgment and expertise when assessing the recommendations provided by the app.

Example

example page

Installation and Usage

Here's how to install and use Auto Code Review on your local machine:

  1. Clone the repository: Execute this on your local machine and navigate to the project directory:

    git clone https://github.com/domvwt/chatgpt-code-review.git
    cd chatgpt-code-review
  2. Set up a virtual environment: Run this command to establish a virtual environment:

    python3 -m venv .venv
  3. Switch on the virtual environment: Use the corresponding command to activate your virtual environment:

    source .venv/bin/activate  # Linux or macOS
    .venv\Scripts\activate  # Windows
  4. Deploy the application: Use this command to install the app and its dependencies:

    pip install -e .
  5. Launch the app: To get the app running, use this command:

OpenAI API:

# ChatGPT
streamlit run chatgpt_code_review/app.py

Local Server:

Run WebAI to API and then:

# ChatGPT
streamlit run chatgpt_code_review/app.py SERVER http://127.0.0.1:8000/v1/chat/completions

# Claude
streamlit run chatgpt_code_review/app.py SERVER http://127.0.0.1:8000/claude/v1/chat/completions

About

It's a Local API Server support fork, that is mean you can use Claude and ChatGPT to review code in GitHub and give recommendations to improve it. It helps developers find issues in their code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages

  • Python 100.0%