PilotCommit
AI-powered commit message generator for VS Code. Works with free AI models — no paid API required.
Features
- One click — click ✨ in Source Control panel to generate a commit message
- 100% free — Ollama (local/private), Groq (1000 req/day), Gemini (1500 req/day), OpenRouter
- Works everywhere — optional global git hook covers all terminals and git clients (GitKraken, Sourcetree, CLI)
- Conventional Commits style by default (also short or detailed)
- Smart diff handling — strips lock files, truncates huge diffs automatically
- Branch-aware — includes branch name in context for better suggestions
Quick Start
- Install the extension
- Run PilotCommit: Setup / Change Provider from the Command Palette
- Stage your changes (
git add)
- Click ✨ in the Source Control panel title bar
AI Providers
| Provider |
Free Tier |
Privacy |
Speed |
| Ollama (recommended) |
Unlimited |
100% local |
Fast |
| Groq |
1,000 req/day |
Cloud |
Very fast |
| Google Gemini |
1,500 req/day |
Cloud |
Fast |
| OpenRouter |
Free models |
Cloud |
Varies |
Ollama Setup (recommended)
- Download from ollama.com
- Run:
ollama pull qwen2.5-coder:7b
- Select Ollama in PilotCommit setup
Groq Setup
- Get a free key at console.groq.com
- Select Groq in PilotCommit setup and paste your key
Global Hook (Terminal Support)
To generate commit messages in any terminal or git client:
Command Palette → PilotCommit: Install Global Git Hook
Requires jq and curl to be installed. The hook fires on every git commit.
Settings
| Setting |
Default |
Description |
pilotcommit.provider |
ollama |
AI provider |
pilotcommit.ollamaModel |
qwen2.5-coder:7b |
Ollama model |
pilotcommit.ollamaUrl |
http://localhost:11434 |
Ollama server URL |
pilotcommit.groqApiKey |
— |
Groq API key |
pilotcommit.geminiApiKey |
— |
Gemini API key |
pilotcommit.style |
conventional |
conventional / short / detailed |
pilotcommit.language |
english |
Language for commit messages |
pilotcommit.customInstructions |
— |
Extra prompt instructions |
pilotcommit.maxDiffSize |
8000 |
Max diff chars sent to AI |
pilotcommit.excludeFiles |
lock files |
Files excluded from diff |
Commands
- PilotCommit: Generate Commit Message — generate and inject message
- PilotCommit: Setup / Change Provider — interactive setup wizard
- PilotCommit: Install Global Git Hook — hook for all terminals
License
MIT — somshrestha3669@gmail.com
| |