Skip to main content

An AI-powered Senior Engineer Agent for your terminal.

Project description

AI Code Inspector

AI Code Inspector is a CLI tool that automates git commits, PR descriptions, and PR quality checks using AI.

Prerequisites

  • Python 3.9+ OR Docker
  • Git installed and configured
  • Google Gemini API Key (GOOGLE_API_KEY)
  • GitHub Token (GITHUB_TOKEN)

Quick Start (Docker)

The easiest way to run without installing Python dependencies is using Docker.

  1. Set Environment Variables: Ensure GOOGLE_API_KEY and GITHUB_TOKEN are set in your terminal.

  2. Run using helper script:

    Windows:

    .\codeinspector.bat commit
    

    Mac/Linux:

    ./codeinspector.sh commit
    

Manual Installation (Python)

  1. Clone the repository.
  2. Install dependencies:
    pip install -r requirements.txt
    
    (Or manually: pip install click gitpython pygithub google-generativeai)

Configuration

Set your API keys in your environment variables:

# Windows PowerShell
$env:GOOGLE_API_KEY="your_GOOGLE_API_KEY"
$env:GITHUB_TOKEN="your_github_token"

# Linux/Mac
export GOOGLE_API_KEY="your_GOOGLE_API_KEY"
export GITHUB_TOKEN="your_github_token"

Usage

1. Generate a Commit Message

Stage your changes first:

git add .

Then generate a commit message:

# Python
python -m codeinspector.cli commit

# Docker
.\codeinspector.bat commit

2. Create a Pull Request

# Python
python -m codeinspector.cli pr --title "My Feature" --auto

# Docker
.\codeinspector.bat pr --title "My Feature" --auto

3. Preview Changes

# Python
python -m codeinspector.cli preview

# Docker
.\codeinspector.bat preview

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codeinspector-0.1.0.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codeinspector-0.1.0-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file codeinspector-0.1.0.tar.gz.

File metadata

  • Download URL: codeinspector-0.1.0.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for codeinspector-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b393741f5ce07273298fee5f37d18deb277f5411f7243f58e8a98b310bd0b29f
MD5 d9d338424ae9e0d372739810d0436577
BLAKE2b-256 783cab50b9d468a9e8fea62eecc16564b48ad951a6d5ae9ab61cf0555eb15993

See more details on using hashes here.

File details

Details for the file codeinspector-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: codeinspector-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for codeinspector-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6165939d82803b29083739c187438b4f77f8b860765855c2fdb603be30359875
MD5 70d80ead0f299757c429b72f6f1ba0c4
BLAKE2b-256 dff97137421a4721e7293a443085da23008206702cb2165bc8f348c4ce714af7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page