Menu

Post image 1
Post image 2
1 / 2
0

CommitAI — Local AI-Powered Git Assistant Using Gemma 4

DEV Community·Yuva Kunaal·24 days ago
#dB9ROsCJ
Reading 0:00
15s threshold

Gemma 4 Challenge: Build With Gemma 4 Submission This is a submission for the Gemma 4 Challenge: Build with Gemma 4 What I Built As developers, we repeatedly write commit messages, maintain changelogs, and switch context during development. I wanted to build a lightweight developer tool that could automate this workflow completely offline without relying on cloud APIs or external AI services. So I built CommitAI — a local AI-powered Git assistant using Gemma 4 + Ollama. The workflow is simple: Read staged Git diff Send it to a local Gemma 4 model Generate a clean Conventional Commit message Update changelog automatically Execute the Git commit I also added Git hook integration so the workflow becomes: git add . git commit Enter fullscreen mode Exit fullscreen mode and the AI handles the rest. The project is built entirely in Python and runs locally on my MacBook Air M2 (8GB RAM).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More