Stop writing boring commits. Start writing professional ones.
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 |
β¨ 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 |
The only AI commit tool that keeps your code on YOUR machine
No cloud services |
Instant responses |
Understands your changes |
Conventional commits |
446+ developers choose AICommit weekly |
Growing open source community |
Zero data collection |
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
1. Download |
2. Install Model |
3. Load Model |
4. Start Server |
aicommit config
Interactive wizard guides you through everything!
# 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
# 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 |
π 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
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
}
} |
- Command line arguments (
--api-host=localhost
) - Local
.aicommitrc.json
(in your project) - Global
.aicommitrc.json
(in your home directory) - Environment variables (
AI_API_HOST=localhost
) - Default values
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 |
β "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
1. Analyze |
2. Understand |
3. Generate |
4. Format |
5. Commit |
MIT License - Free to use in your projects!
Made with β€οΈ by Abdelraouf Sabri
Join the growing community of developers using local AI for better commits!