gitsense-cli
v1.2.2
Published
AI-powered Git commit message generator using Llama and GPT models
Maintainers
Readme
gitsense-cli 🚀
Instant, Lightweight, and Zero-Config AI Commits.
gitsense-cli is a professional Git assistant that traces your project changes and generates meaningful, high-quality commit messages in seconds. No complex setup, no expensive subscriptions—just better commits.
Why GitSense?
- ⚡ Instant & Lightweight: Minimal footprint, maximum speed. Get suggestions in milliseconds.
- 🆓 Truly Free: Uses shared AI providers out of the box. No personal API keys required for basic use.
- 🛠️ Zero Configuration: Just install and run. No
.envfiles or tokens needed to get started. - 🧠 Project Aware: Traces your staged
git diffto understand the intent of your changes, not just the code. - ✨ Conventional & Clean: Automatically applies Conventional Commits and Gitmojis for a professional repo history.
Installation
npm install -g gitsense-cliAvailable Commands
1. Introduction & Help
See what GitSense can do and view available commands.
gsOr for technical help:
gs --help2. Generate Commit Message (Default)
The primary command to analyze your staged changes and suggest a commit message.
# First, stage your changes
git add .
# Then, run the generator
gs commitInteractive Workflow
When you run gs commit, you'll enter an interactive session:
- ✅ y / enter: Accept the suggestion and create the commit.
- 🔄 r / retry: Regenerate a new suggestion if you're not satisfied.
- ❌ n / no: Cancel the operation.
Configuration (Optional)
If you want to use your own API key to avoid shared rate limits:
# Set your key via environment variable
export AI_API_KEY=your_key_hereOr use a .env file:
AI_API_KEY=your_key_here
AI_BASE_URL=https://api.groq.com/openai/v1 # Optional
AI_MODEL=llama-3.1-8b-instant # OptionalSupport
If you have feedback or need assistance: ✉️ [email protected]
License
MIT
