AI-powered GitHub commit annotation with human-in-the-loop verification.
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.
- 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
(Add a screenshot here later)
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ AI Commit Labeler โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Repository โ
โ encode/httpx โ
โ โ
โ Commit โ
โ Fix authentication middlewareโ
โ โ
โ AI Suggestion โ
โ LOW_VALUE โ
โ Confidence: 95% โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Clone the repository.
git clone https://github.com/YOUR_USERNAME/ai-commit-labeler.git
cd ai-commit-labelerCreate a virtual environment.
python -m venv .venvActivate it.
source .venv/bin/activate.venv\Scripts\activateInstall dependencies.
pip install -r requirements.txtai-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
Show application version.
PYTHONPATH=src python -m ai_commit_labeler versionReview commits.
PYTHONPATH=src python -m ai_commit_labeler review examples/sample_commits.csvExample output:
Repository:
encode/httpx
Commit:
Update README
AI Suggestion
LOW_VALUE
Confidence: 95%
[A] Accept
[O] Override
[S] Skip
[Q] Quit
CLI
โ
โผ
Review Service
โโโโโโโโโโโโโโโ
โผ โผ
CSV Loader AI Provider
โ โ
โผ โผ
Commit Model Prediction Model
โ
โผ
Review Screen
โ
โผ
CSV Writer
CSV Dataset
โ
โผ
Load Commits
โ
โผ
Display Commit
โ
โผ
AI Suggestion
โ
โผ
Human Review
โ
โผ
Save Label
โ
โผ
Training Dataset
- Python 3.12+
- Typer
- Rich
- Pandas
- Dataclasses
- ABC (Abstract Base Classes)
- Project structure
- CLI
- CSV Loader
- Review Service
- Rich UI
- Mock AI Provider
- Interactive Review
- CSV Export
- Override labels
- Progress indicator
- Resume review sessions
- Better terminal UI
- Smarter rule-based AI
- OpenAI integration
- Gemini integration
- Ollama integration
- Confidence explanation
- Batch review
- Plugin architecture
- PyPI package
- Unit tests
- GitHub Actions CI/CD
- Documentation website
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.
Machine learning pipeline that trains commit quality prediction models using datasets created with AI Commit Labeler.
โ
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
Contributions are welcome.
Feel free to open issues, submit pull requests, or suggest improvements.
This project is licensed under the MIT License.
Akshar Vaghasiya
B.Tech Computer Science & Engineering
PES University
