Commit & PR Assistant
AI commit message, PR description, and release notes generator for VS Code. Fully local with Ollama and no API key required.
Turn staged Git diffs into clean commits, structured pull requests, and release notes in seconds.
Problem
You have seen commit subjects like:
fix stuff
update code
minor changes
wip
That creates noisy history, weak PR descriptions, and inconsistent release notes. Many AI tools also require cloud APIs.
Solution
Commit & PR Assistant analyzes your staged diff and generates:
- Clean, structured commit messages
- Review-ready pull request descriptions
- Organized release notes between tags
All generation runs through your local Ollama model.
Features
- AI commit message generation with configurable subject/body length limits and retry on invalid output
- Commit quality score (0-10) after commit generation
- AI pull request drafting with template support (Feature, Bug Fix, Security, and more)
- AI release notes generation between tags with copy-to-clipboard support
- Reword last commit message with the same style and length constraints
- Privacy-first design: no OpenAI, no API keys, no telemetry, no hidden API calls
Installation
- Install Ollama.
- Start Ollama:
ollama serve
- Pull a model:
ollama pull qwen2.5-coder:3b
- Install Commit & PR Assistant from the VS Code Marketplace.
- Configure VS Code settings:
commitAssistant.ollamaEndpoint -> http://localhost:11434
commitAssistant.model -> qwen2.5-coder:3b
Commands
Commit Assist: Suggest Commit Message
Commit Assist: Reword Last Commit Message
Commit Assist: Draft Pull Request Description
Commit Assist: Open Pull Request
Commit Assist: Select PR Template
Commit Assist: Review Staged Changes
Commit Assist: Generate Release Notes (Between Tags)
Commit Assist: Copy Release Notes
Configuration
| Setting |
Description |
commitAssistant.ollamaEndpoint |
Ollama endpoint. Default: http://localhost:11434 |
commitAssistant.model |
Model name. Default: qwen2.5-coder:3b |
commitAssistant.temperature |
Sampling temperature for generation. Default: 0.3 |
commitAssistant.maxCommitSubjectLength |
Maximum commit subject length. Default: 72, min: 50, max: 200 |
commitAssistant.maxCommitBodyLineLength |
Maximum commit body line length. Default: 150, min: 72, max: 200 |
commitAssistant.maxDiffChars |
Maximum diff characters sent to the model. Default: 8000 |
commitAssistant.maxDiffFiles |
Maximum prioritized files included in prompt preprocessing. Default: 8 |
commitAssistant.diffExcludePatterns |
Additional glob patterns excluded from diff preprocessing |
commitAssistant.showCommitQualityScore |
Show a 0-10 commit quality score after generation. Default: true |
Note: If you prefer strict 50/72 formatting, set:
commitAssistant.maxCommitSubjectLength = 50
commitAssistant.maxCommitBodyLineLength = 72
Requirements
- VS Code
^1.109.0
- A Git repository open in VS Code
- Reachable Ollama endpoint
- At least one pulled Ollama model
Privacy
Commit & PR Assistant keeps your code local:
- No OpenAI
- No API keys
- No hidden API calls
- No telemetry
- No vendor lock-in
License
MIT