aico-ai
v1.0.16
Published
AI-powered git gatekeeper for code reviews and commit message generation.
Maintainers
Readme
Aico AI - Gatekeeper for your code
Aico is an intelligent CLI tool that acts as a gatekeeper for your code. It uses AI (powered by Groq) to review your changes before you push them, ensuring high quality, security, and consistency across your projects.
Features
- 🔍 AI Code Review: Semantic analysis of your git diffs to catch bugs, security issues, and code smells.
- ✨ Apply Fixes: Automatically apply suggested improvements with a single click.
- 📝 AI Commit Messages: Generate high-quality, Conventional Commit messages based on your changes.
- 🤖 Multi-Provider Support: Use Groq, OpenAI, Gemini, DeepSeek, or even local models via Ollama.
- 🛡️ Git Hook Integration: Seamlessly integrates with Husky to run reviews as a
pre-pushhook. - 🤫 Silent Mode: Run reviews without blocking your workflow.
- 🌍 Global Config: Configure your API key once and use it across all your projects.
Installation
npm install -g aico-ai
# or
npm install --save-dev aico-aiGetting Started
Initialize Aico: Run the following command to set up your API key (Groq) and optionally configure Git hooks.
aico initReview your changes: Manually review your staged changes:
aico reviewCommit with AI: Let Aico write your commit message:
aico commit
Usage
Commands
aico init: Setup API keys and Git hooks.aico review: Analyze staged changes and suggest improvements.aico commit: Generate and apply an AI-suggested commit message.
Options
--silent,-s: Run the review in silent mode (doesn't block the push).
Configuration
Aico stores its global configuration in ~/.aicorc. You can also use environment variables:
GROQ_API_KEY=your_key_hereWhy Aico?
While IDE extensions like Copilot or Cursor are great assistants, Aico is your project's Gatekeeper. It ensures that no matter what IDE your team uses, every piece of code meets the same quality standards before it reaches the remote repository.
License
ISC
