Skip to content

abd3lraouf/aicommit

Repository files navigation

AICommit Logo

πŸ€– AICommit

Transform your Git workflow with AI-powered commit messages

Stop writing boring commits. Start writing professional ones.

npm version downloads license

GitHub stars TypeScript Privacy First


🎯 The Problem Every Developer Faces

😩 Your Current Reality

git commit -m "fix"
git commit -m "update stuff"
git commit -m "changes"
git commit -m "wip"
git commit -m "final fix"
git commit -m "final fix for real"
git commit -m "ok this time it works"

Result: Messy git history, confused teammates, failed code reviews

✨ With AICommit

✨ feat(auth): implement OAuth2 social login
πŸ› fix(api): resolve memory leak in user service
πŸ“ docs(readme): add comprehensive setup guide
♻️ refactor(db): optimize query performance
πŸ”§ chore(deps): update security dependencies

Result: Professional commits, clear history, happy team


🌟 Why AICommit is Different

πŸ”’ 100% Private. 100% Local. 100% Yours.

The only AI commit tool that keeps your code on YOUR machine

🏠 Local AI

No cloud services
No API keys
No data sharing
Complete privacy

⚑ Lightning Fast

Instant responses
No network delays
Works offline
Always available

🧠 Context Aware

Understands your changes
Adapts message length
Follows conventions
Learns your patterns

🎯 Professional

Conventional commits
Perfect formatting
Relevant emojis
Team consistency


πŸ“Š Real Usage Statistics

πŸ“¦ Weekly Downloads

npm downloads

446+ developers choose AICommit weekly

⭐ GitHub Community

GitHub stars

Growing open source community

πŸ” Privacy Score

Privacy

Zero data collection


πŸš€ Quick Start (2 Minutes Setup)

Get professional commits in 4 simple steps

πŸ“¦ Step 1: Install AICommit

Global Installation (Recommended)

npm install -g @abd3lraouf/aicommit

Local Installation

npm install @abd3lraouf/aicommit
npx aicommit
πŸ“‹ Other Package Managers
# Using Yarn
yarn global add @abd3lraouf/aicommit

# Using pnpm
pnpm add -g @abd3lraouf/aicommit

# Using Bun
bun add -g @abd3lraouf/aicommit

🧠 Step 2: Setup Local AI (LM Studio)

LM Studio

Why LM Studio? User-friendly, optimized, and works perfectly with AICommit

1. Download
Get LM Studio
(Windows/Mac/Linux)

2. Install Model
Search: qwen3-4b-teen-emo
(4GB, fast & accurate)

3. Load Model
Click "Load Model"
Select downloaded model

4. Start Server
Click "Start Server"
Runs on localhost:1234

βš™οΈ Step 3: Configure AICommit

aicommit config

Interactive wizard guides you through everything!

πŸŽ‰ Step 4: Experience the Magic

# Stage your changes
git add .

# Generate professional commit
aicommit

🎊 Watch AICommit generate:

✨ feat(auth): implement secure user authentication

Add JWT-based authentication system with password hashing.

- Create login/register endpoints with validation
- Implement secure password hashing with bcrypt
- Add JWT token generation and verification middleware

πŸ’‘ Usage Examples

πŸ”§ Command Options

# Basic usage
aicommit

# Interactive mode (review before commit)
aicommit --interactive

# Dry run (see message without committing)
aicommit --dry-run
# Verbose output
aicommit --verbose

# Debug information
aicommit --debug

# Show help
aicommit --help

πŸ“ Real Commit Examples

πŸ› Small Bug Fix (1-2 files)
πŸ› fix(ui): correct button alignment issue

Fix misaligned submit button on the login form.

- Adjust CSS flexbox properties for proper centering
✨ New Feature (3-5 files)
✨ feat(auth): implement user registration

Add complete user registration system with validation and email confirmation.

- Create registration form with input validation
- Add email confirmation workflow
- Implement password strength requirements
- Add user account activation process
♻️ Major Refactor (6+ files)
♻️ refactor(api): restructure authentication system

Modernize authentication architecture for better security and maintainability.

- Replace JWT with session-based authentication
- Add OAuth2 integration for social login
- Implement role-based access control (RBAC)
- Create authentication middleware pipeline
- Add comprehensive security headers
- Update API documentation for auth endpoints

βš™οΈ Configuration

πŸŽ›οΈ Configuration Options

API Settings

{
  "api": {
    "host": "localhost",
    "port": 1234,
    "model": "qwen3-4b-teen-emo",
    "timeout": 30000
  }
}

CLI Settings

{
  "cli": {
    "interactive": false,
    "verbose": true,
    "debug": false,
    "dryRun": false
  }
}

πŸ“‹ Configuration Priority

  1. Command line arguments (--api-host=localhost)
  2. Local .aicommitrc.json (in your project)
  3. Global .aicommitrc.json (in your home directory)
  4. Environment variables (AI_API_HOST=localhost)
  5. Default values

🎯 Commit Types & Emojis

AICommit automatically chooses the perfect type and emoji

Type Emoji When to use Example
feat ✨ New features ✨ feat(auth): add OAuth login
fix πŸ› Bug fixes πŸ› fix(api): resolve memory leak
docs πŸ“ Documentation πŸ“ docs(readme): update setup guide
refactor ♻️ Code restructuring ♻️ refactor(db): optimize queries
perf ⚑ Performance ⚑ perf(api): cache responses
test βœ… Adding tests βœ… test(auth): add unit tests

πŸ”§ Troubleshooting

❌ "No changes detected"

Solution: Make sure you've staged your changes

git add .
aicommit
πŸ”Œ "API connection failed"

Solutions:

  • Check that LM Studio is running
  • Verify the model is loaded
  • Test connection: curl http://localhost:1234/v1/models
πŸ“ "Not in a git repository"

Solution: Initialize a Git repository

git init
git add .
aicommit
πŸ” Debug Mode

Get detailed information:

aicommit --debug

Shows:

  • Change analysis
  • AI prompt sent
  • Raw AI response
  • Final message formatting

πŸ—οΈ How It Works

The AICommit Process

1. Analyze
πŸ“Š
Examines your staged Git changes

2. Understand
🧠
Determines scope and complexity

3. Generate
⚑
Creates intelligent prompt for AI

4. Format
πŸ“
Converts to conventional commit

5. Commit
βœ…
Applies to your repository


🀝 Contributing

Help make AICommit even better!

Contribute Good First Issues

We welcome contributions from developers of all skill levels!


πŸ“ž Support & Community

GitHub Issues GitHub Discussions Email

Twitter Website


⭐ Show Your Support

If AICommit improved your workflow, give us a star!

Star on GitHub

Share with your team:

Share on Twitter Share on LinkedIn


πŸ“„ License

License

MIT License - Free to use in your projects!

Made with ❀️ by Abdelraouf Sabri


πŸš€ Ready to transform your Git workflow?

Get Started

Join the growing community of developers using local AI for better commits!

About

Smart Git commit messages with AI - automatically generates conventional commits with emojis

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published