An AI-powered commit tool that generates high-quality commit messages and supports multi-project workspaces
AI Commit is a Python utility that leverages the power of AI (Gemini & ChatGPT) to analyze your code changes and automatically generate commit messages that follow the Conventional Commits standard.
- ๐ Auto-Scan โ Automatically scans repositories when the app starts
- ๐ฏ Visual Selection โ Select repositories and files with your mouse
- ๐ค One-Click AI โ Generate commit messages with a single click
- ๐ Real-time Log โ View all activities in the log panel
- โ๏ธ Easy Settings โ Toggle AI provider and auto-push options
- โ Batch Selection โ Select all or clear selection with ease
- ๐จ Modern UI โ Clean and intuitive interface
- ๐ Dark Mode โ Switch between light and dark themes
- ๐ Smart File Matching โ Auto-detect similar files if errors occur
- โ๏ธ Settings Manager โ Load/save settings from JSON with error handling
- ๐ง Settings Dialog โ Organized tab-based interface
- ๐ค AI Configuration โ Choose custom models and manage API keys
- ๐ GitHub Integration โ Username and token support for private repositories
- ๐ Repository Management โ Custom parent folder & recent repositories
- ๐ Auto Refresh โ Manually refresh to detect file changes
- ๐ฏ Better Organization โ All configurations in one place
- Open the app โ Auto-scan runs automatically
- Select a repository from the dropdown (๐ด indicates changes)
- Configure Settings (first-time setup) โ Click โ๏ธ Settings
- Select files to commit (or click Select All)
- Click "โ Add to Stage" to stage files
- Click "๐ค Generate with AI" to create commit messages (or write manually)
- Review the message in the text area
- Click "โ Commit & Push" to commit and push changes
Access Settings: Click the โ๏ธ Settings button in the main window
- AI Provider: Choose between Gemini or ChatGPT
- API Key: Enter the API key for the chosen provider
- Model Selection: Select specific models (gemini-1.5-pro, gpt-4, etc.)
- GitHub Username: Your GitHub username
- GitHub Token: Personal access token for private repos
- Auto-configure Git: Automatically set git config with credentials
- Parent Folder: Custom folder for scanning repositories
- Recent Repositories: History of previously opened repos
- Browse Repository: Manually select a repository folder
- Refresh Button: Manually refresh to detect changes
The GUI supports light and dark themes for better eye comfort:
How to enable:
- Toggle the "๐ Dark Mode" checkbox in the top-right corner
- The theme instantly updates for all components
Dark Theme:
- Comfortable dark background (#1e1e1e)
- Bright text (#ffffff) for contrast
- Gray frames (#2d2d2d) for clear separation
- Deep blue accents (#0e639c) for highlights
- Perfect for night-time or low-light environments
Light Theme:
- Bright background (#f0f0f0) for well-lit rooms
- Black text (#000000) for maximum clarity
- White frames (#ffffff) for a clean look
- Bright blue accents (#0078d4) for interactions
- Best for daytime or bright environments
- Python 3.9 or later
- Git installed
- API Key from Gemini or OpenAI
- Download AI-Commit.exe โ Stable version 1 (1.0.0)
- Go to Google AI Studio
- Sign in with your Google account
- Click "Create API Key"
- Copy the generated key
- Go to OpenAI Platform
- Log in or create an account
- Click "Create new secret key"
- Copy the generated key
- Go to GitHub Settings > Tokens
- Click "Generate new token"
- Select scopes: repo and workflow
- Copy the generated token
A:
- Open the app
- In the top-right corner, check the "๐ Dark Mode" box
- Toggle to switch between light and dark themes
- The theme updates instantly across the UI
Dark Mode is useful for:
- Night-time work
- Reducing eye strain
- Low-light environments
- Personal preference
A:
- Click โ๏ธ Settings
- Open the GitHub tab
- Enter your GitHub username and token
- Check "Auto-configure Git" for automatic setup
- Click Save
A:
- Open Settings โ Repository tab
- Click "Browse" next to Parent Folder
- Select the folder containing your Git repositories
- Click Save
- The repository dropdown updates automatically
A: The tool itself is 100% free and open-source. For AI usage:
- Gemini API: Free with a generous daily quota (recommended)
- OpenAI API: Paid, around $0.002 per commit
A:
- โ Only git diff (code changes) is sent to the AI
- โ No data is stored on external servers
- โ API keys and settings are stored locally
โ ๏ธ Do not commit files containing secrets/passwords/tokens
Contributions are always welcome!
- Fork the repository
- Create a feature branch
git checkout -b feature/CoolFeature
- Commit your changes
git commit -m 'feat: add cool feature'
- Push to the branch
git push origin feature/CoolFeature
- Create a Pull Request
- AI Providers:
- Google Gemini โ Free AI with large quota
- OpenAI โ Powerful GPT models
- Standards:
- Conventional Commits โ Commit message standard
- Inspired by:
- aicommits by Nutlope
- GitHub Copilot
- ๐ Open an issue with the label
bug
- Include error messages and reproduction steps
- ๐ก Open an issue with the label
enhancement
- Describe the use case and expected behavior
- ๐ Read FAQ and Troubleshooting above
- ๐ฌ Open an issue with the label
question
- ๐ง Email: dev@ryucode.com
Built with โค๏ธ for developers who value clean commit history
โญ Star this repository if you find it useful!
๐ Happy Committing with AI!