Menu

CommitAI — Local AI-Powered Git Assistant Using Gemma 4
🖼️

CommitAI — Local AI-Powered Git Assistant Using Gemma 4

DEV Community·Yuva Kunaal·6 months 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 .…

Continue reading — create a free account

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