Skip to content

CodeGuardAI is an application designed to enhance the code review process by automatically checking uncommitted changes and utilizing OpenAI's powerful code analysis capabilities to determine if the code is up to standard or requires improvements.

License

patrykswiatek/code-guard-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeGuardAI

CodeGuardAI is an application designed to enhance the code review process by automatically checking uncommitted changes and utilizing OpenAI's powerful code analysis capabilities to determine if the code is up to standard or requires improvements.

Features

  • Automated Code Analysis: Scans your uncommitted changes for potential issues.
  • OpenAI Integration: Uses OpenAI's algorithms to assess code quality.
  • Immediate Feedback: Provides suggestions for improvements before committing.
  • Customizable Prompts: Includes a prompts.ts file to add prompts for different file extensions.

Getting Started

Prerequisites

  • Git
  • Node.js
  • An OpenAI API key

Installation

  1. Clone the repository:
    git clone https://github.com/patrykswiatek/code-guard-ai.git
  2. Navigate to the cloned directory:
    cd code-guard-ai
  3. Install the necessary dependencies:
    npm install
  4. Create a .env file in the root directory with the following contents:
    OPEN_AI_API_KEY=your_api_key_here
    OPEN_AI_MODEL=chosen_text_generation_model
    PROJECT_DIRECTORY=path_to_your_project
  5. Build the application:
    npm run build
  6. Start the app:
    npm start

About

CodeGuardAI is an application designed to enhance the code review process by automatically checking uncommitted changes and utilizing OpenAI's powerful code analysis capabilities to determine if the code is up to standard or requires improvements.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published