Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.43 KB

File metadata and controls

45 lines (33 loc) · 1.43 KB

🧠 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