CodeCriticAI is a tool for performing AI-powered code reviews using Git diffs. It leverages OpenAI's API to analyze code changes and generate detailed reviews.
Features
- Analyzes code changes using Git diffs
- Utilizes OpenAI's API for code review
- Generates HTML reports of the code review
Requirements
- Python 3.6+
- OpenAI API key
- Git
🚀 Quick Start
Installation
pip install codecriticai
💡 Check out codecriticai on PyPI for the latest version and release notes.
Configuration
# Linux/macOS
export OPENAI_API_KEY=your-api-key-here
# Windows (PowerShell)
$env:OPENAI_API_KEY="your-api-key-here"
📚 Usage
# Review current directory changes
codecriticai
# Review specific directory
codecriticai --dir /path/to/repo
# Compare with different base branch
codecriticai --base develop
🤝 Contributing
We love contributions! Here's how you can help:
🛠️ Development Setup
- Clone the repository:
git clone https://github.com/mihir20/codecriticAI
cd codecriticAI
2. Set up Python environment:
#### Using pyenv (Recommended)
```bash
# Install Python 3.13.0
pyenv install 3.13.0
# Create a virtual environment
pyenv virtualenv 3.13.0 codecriticAI-dev
# Activate the environment
pyenv activate codecriticAI-dev
Using venv (Alternative)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -e .
- Run locally:
# Using Python module directly (recommended for development)
python -m codecriticAI.main --base main
# Or after installing in development mode
codecriticai --base main
💡 Note: Using pyenv is recommended as it provides better Python version management and isolation.
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🌟 Show Your Support
If you find codecriticAI useful, please consider:
- ⭐ Starring the repository
- 🐛 Reporting issues
- 🤝 Contributing to the code
- 📢 Spreading the word
Metadata
Release files for codecriticAI 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codecriticai-0.0.3.tar.gz | 7.9 kB | Without provenance | Details for codecriticai-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codecriticai-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for codecriticai-0.0.3-py3-none-any.whl |
Total release size: 16.1 kB
Release files / codecriticai-0.0.3.tar.gz
| Download URL | codecriticai-0.0.3.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ab8841ebe8b76fc85284dc8fd11b03f60d731f8e0d0f27ba1a102efbf77c392
|
|
BLAKE2b-256 checksum How to use checksums |
4e51d38af830aa4cdabded7d6821cad1cf8ff483278e0343e4771a59d5449c65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Release files / codecriticai-0.0.3-py3-none-any.whl
| Download URL | codecriticai-0.0.3-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b2f57ce827f36b02fb9938427731b8060c6df15582986b41c5085d5f9788e10
|
|
BLAKE2b-256 checksum How to use checksums |
712396a1995acfc04cb5c5f9c5ebb70019273b252a1e982e6ae1c72a4d2384f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Security for codecriticAI 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.