Skip to content

Latest commit

ย 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AI Commit Labeler Banner

๐Ÿค– AI Commit Labeler

AI-powered GitHub commit annotation with human-in-the-loop verification.

Python MIT License Alpha Platform

๐Ÿค– AI Commit Labeler

AI-powered CLI tool for GitHub commit annotation with human-in-the-loop verification.

AI Commit Labeler is an open-source Python command-line application that assists developers and researchers in labeling GitHub commits efficiently. It combines AI-generated suggestions with human verification to create high-quality labeled datasets for machine learning.

This project is designed to accelerate the annotation process while maintaining human oversight.


โœจ Features

  • AI-assisted commit labeling
  • Human-in-the-loop verification
  • Beautiful terminal interface using Rich
  • Interactive review workflow
  • CSV dataset support
  • Modular provider architecture
  • Mock AI provider for offline development
  • Easily extendable to OpenAI, Gemini, Ollama, or other LLMs

๐Ÿ“ธ Demo

Review Screen

(Add a screenshot here later)

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ AI Commit Labeler            โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Repository                   โ”‚
โ”‚ encode/httpx                 โ”‚
โ”‚                              โ”‚
โ”‚ Commit                       โ”‚
โ”‚ Fix authentication middlewareโ”‚
โ”‚                              โ”‚
โ”‚ AI Suggestion                โ”‚
โ”‚ LOW_VALUE                    โ”‚
โ”‚ Confidence: 95%              โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

๐Ÿš€ Installation

Clone the repository.

git clone https://github.com/YOUR_USERNAME/ai-commit-labeler.git

cd ai-commit-labeler

Create a virtual environment.

python -m venv .venv

Activate it.

macOS / Linux

source .venv/bin/activate

Windows

.venv\Scripts\activate

Install dependencies.

pip install -r requirements.txt

๐Ÿ“‚ Project Structure

ai-commit-labeler/

โ”œโ”€โ”€ docs/
โ”œโ”€โ”€ examples/
โ”‚   โ””โ”€โ”€ sample_commits.csv
โ”‚
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ ai_commit_labeler/
โ”‚       โ”œโ”€โ”€ cli.py
โ”‚       โ”œโ”€โ”€ loaders/
โ”‚       โ”œโ”€โ”€ models/
โ”‚       โ”œโ”€โ”€ providers/
โ”‚       โ”œโ”€โ”€ services/
โ”‚       โ”œโ”€โ”€ storage/
โ”‚       โ”œโ”€โ”€ ui/
โ”‚       โ””โ”€โ”€ version.py
โ”‚
โ”œโ”€โ”€ pyproject.toml
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ LICENSE

๐Ÿ’ป Usage

Show application version.

PYTHONPATH=src python -m ai_commit_labeler version

Review commits.

PYTHONPATH=src python -m ai_commit_labeler review examples/sample_commits.csv

Example output:

Repository:
encode/httpx

Commit:
Update README

AI Suggestion

LOW_VALUE

Confidence: 95%

[A] Accept
[O] Override
[S] Skip
[Q] Quit

๐Ÿ— Architecture

                 CLI
                  โ”‚
                  โ–ผ
          Review Service
          โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ–ผ             โ–ผ
    CSV Loader     AI Provider
          โ”‚             โ”‚
          โ–ผ             โ–ผ
     Commit Model  Prediction Model
                  โ”‚
                  โ–ผ
             Review Screen
                  โ”‚
                  โ–ผ
             CSV Writer

๐Ÿ”„ Workflow

CSV Dataset

      โ”‚

      โ–ผ

Load Commits

      โ”‚

      โ–ผ

Display Commit

      โ”‚

      โ–ผ

AI Suggestion

      โ”‚

      โ–ผ

Human Review

      โ”‚

      โ–ผ

Save Label

      โ”‚

      โ–ผ

Training Dataset

๐Ÿ›  Technologies Used

  • Python 3.12+
  • Typer
  • Rich
  • Pandas
  • Dataclasses
  • ABC (Abstract Base Classes)

๐Ÿ“‹ Roadmap

โœ… Version 0.1

  • Project structure
  • CLI
  • CSV Loader
  • Review Service
  • Rich UI
  • Mock AI Provider
  • Interactive Review
  • CSV Export

๐Ÿšง Version 0.2

  • Override labels
  • Progress indicator
  • Resume review sessions
  • Better terminal UI
  • Smarter rule-based AI

๐Ÿšง Version 0.3

  • OpenAI integration
  • Gemini integration
  • Ollama integration
  • Confidence explanation
  • Batch review

๐Ÿš€ Version 1.0

  • Plugin architecture
  • PyPI package
  • Unit tests
  • GitHub Actions CI/CD
  • Documentation website

๐ŸŽฏ Motivation

Creating high-quality labeled datasets for GitHub commit classification is a time-consuming manual process.

AI Commit Labeler reduces annotation time by combining AI-generated suggestions with human verification, enabling researchers to build reliable datasets more efficiently.


๐Ÿ”— Related Projects

GitHub Commit Quality ML

Machine learning pipeline that trains commit quality prediction models using datasets created with AI Commit Labeler.

โ†“

Smart Capstone Project Discovery System

The final capstone project that integrates the GitHub Commit Quality ML model to evaluate GitHub repositories and assist students and faculty in discovering and assessing capstone projects.

AI Commit Labeler
        โ”‚
        โ–ผ
GitHub Commit Quality ML
        โ”‚
        โ–ผ
Smart Capstone Project Discovery System

๐Ÿค Contributing

Contributions are welcome.

Feel free to open issues, submit pull requests, or suggest improvements.


๐Ÿ“„ License

This project is licensed under the MIT License.


๐Ÿ‘จโ€๐Ÿ’ป Author

Akshar Vaghasiya

B.Tech Computer Science & Engineering

PES University

GitHub: https://github.com/AKSHARVAGHASIYA

About

AI-powered CLI tool for GitHub commit annotation with human verification, designed to accelerate creation of high-quality datasets for commit quality machine learning.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages