Dev / Portfolio
< Back to Projects
Project 08 / CLI Tool

aigit

Problem: Writing good commit messages is tedious. Most developers either write vague messages or skip them entirely, making git history hard to follow.

Solution: A CLI tool that uses OpenAI to automatically generate descriptive Git commit messages based on your staged changes. Just run aigit and get professional commits.

View on GitHub ↗Install
Tech Stack
TypeScript
Node.js
OpenAI API
Git
License
MIT
Open Source
Role
Solo dev
(0→1)
Language
TypeScript
Type-safe Node.js CLI application.
AI Model
OpenAI GPT
GPT-4/3.5 for message generation.
Distribution
npm
Published as global npm package.
Git Integration
Native
Works with any git repository.
Features / 01
AI Commit Messages
Automatically generate descriptive commit messages from staged changes.
Staged Changes Analysis
Reads git diff to understand what changed and generates context-aware messages.
OpenAI Integration
Uses GPT models to generate professional, descriptive commit messages.
CLI Interface
Simple command-line interface for quick usage.
Customizable
Configure message style and length preferences.
Open Source
MIT licensed and available on GitHub.
Installation / 02

Install globally via npm and start using immediately:

$ npm install -g aigit
# Set your OpenAI API key
$ export OPENAI_API_KEY=your_key_here
# Use it in any git repo
$ aigit

Requires Node.js 16+ and an OpenAI API key.