Skip to content

dhruvpapade/local-ai-commit-msg-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Local AI-Powered Commit Message Generator

A Visual Studio Code extension that uses local AI models (via Ollama) to generate meaningful, conventional commit messages from Git diffs.
Works completely offline, ensures security, and improves developer productivity by up to 90%.


🚀 Features

  • ✅ Generate short, clear commit messages from staged diffs
  • ✅ Fully local (no internet required) using Ollama + models like CodeLLaMA, Phi-2, or StarCoder
  • ✅ Interactive UI using VS Code WebView
  • ✅ Commit message customization: type, ticket ID, formatting
  • ✅ Validates:
    • Ollama is installed
    • Ollama is running
    • Git has staged changes
    • Ticket ID format (e.g., JIRA-1234)
  • ✅ Enforces Conventional Commit style

📥 Installation

1. Download and Install ollama Server

https://ollama.com/

Check that the 'llama3.2:3b' AI model is running

ollama pull llama3.2:3b
image
ollama run llama3.2:3b
image

2. Clone and Install Extension

git clone https://github.com/dhruvpapade/local-ai-commit-msg-generator
cd local-ai-commit-msg-generator
npm install

About

The 'Local AI-Powered Commit Message Generator' is a Visual Studio Code extension designed to automatically generate concise and meaningful Git commit messages using local AI models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors