ๆƒฏๆ€ง่šๅˆ ้ซ˜ๆ•ˆ่ฟฝ่ธชๅ’Œ้˜…่ฏปไฝ ๆ„Ÿๅ…ด่ถฃ็š„ๅšๅฎขใ€ๆ–ฐ้—ปใ€็ง‘ๆŠ€่ต„่ฎฏ
้˜…่ฏปๅŽŸๆ–‡ ๅœจๆƒฏๆ€ง่šๅˆไธญๆ‰“ๅผ€

ๆŽจ่่ฎข้˜…ๆบ

MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
OSCHINA ็คพๅŒบๆœ€ๆ–ฐๆ–ฐ้—ป
OSCHINA ็คพๅŒบๆœ€ๆ–ฐๆ–ฐ้—ป
D
DataBreaches.Net
่…พ
่…พ่ฎฏCDC
GbyAI
GbyAI
I
InfoQ
ๅš
ๅšๅฎขๅ›ญ - Franky
G
Google Developers Blog
Last Week in AI
Last Week in AI
ๅฅ‡ๅฎขSolidotโ€“ไผ ้€’ๆœ€ๆ–ฐ็ง‘ๆŠ€ๆƒ…ๆŠฅ
ๅฅ‡ๅฎขSolidotโ€“ไผ ้€’ๆœ€ๆ–ฐ็ง‘ๆŠ€ๆƒ…ๆŠฅ
V
Visual Studio Blog
Vercel News
Vercel News
ๅš
ๅšๅฎขๅ›ญ_้ฆ–้กต
MyScale Blog
MyScale Blog
Martin Fowler
Martin Fowler
N
Netflix TechBlog - Medium
V
V2EX
T
The Blog of Author Tim Ferriss
M
MIT News - Artificial intelligence
้›ทๅณฐ็ฝ‘
้›ทๅณฐ็ฝ‘
H
Hackread โ€“ Cybersecurity News, Data Breaches, AI and More
ๅคง็Œซ็š„ๆ— ้™ๆธธๆˆ
ๅคง็Œซ็š„ๆ— ้™ๆธธๆˆ
The GitHub Blog
The GitHub Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Donโ€™t Fail โ€” They Drift Spilling beans for how i learn for exam๐Ÿ˜"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" โ€” What Actually Happened Comfy Cloudโ€™s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions โ€” here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components โ€” Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cรณmo construรญ un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 ๐Ÿš€ I Built an Ethical Hacking Scanner Tool โ€“ Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points โ€” Here's What I Found About How Markets Really Move EcoTrack AI โ€” Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
๐Ÿค– Stop Writing Boring Commit Messages. Let a Local AI Do ...
Vlad ยท 2026-05-31 ยท via DEV Community

Vlad

How many times have you typed git commit -m "fix stuff" or git commit -m "wip" because you just wanted to push your code and grab a coffee?

Writing great, meaningful commit messages is a hallmark of a good developer. It helps your team, makes code reviews easier, and keeps your project history clean. But letโ€™s be honest: when youโ€™re deep in the zone, writing a perfect Conventional Commit is the last thing you want to spend brainpower on.

Enter komit โ€” an AI-powered git commit message generator that runs 100% locally on your machine. No API keys, no internet required, and completely private.


๐Ÿง  Why komit?

There are plenty of AI commit generators out there, but most of them send your proprietary diffs to external APIs (like OpenAI or Anthropic). If you are working on a closed-source enterprise project, thatโ€™s a massive security no-no.

komit bridges the gap by leveraging Ollama to run lightweight, powerful open-source LLMs right on your laptop.

โœจ Key Features:

  • ๐Ÿ”’ Pure Privacy: Everything stays on your machine via Ollama. No data leaks.
  • ๐ŸŒฟ Smart Branch Inference: It automatically reads your active git branch (e.g., feat/auth-login) to extract the exact Conventional Commit type (feat) and scope (auth) before the AI even starts writing!
  • ๐Ÿ“ Multiple Styles: Choose between conventional, simple, or detailed commit formats depending on your team's workflow.
  • โšก Safe & Interactive: It previews the message, letting you accept it, reject it, regenerate a new one, or open your default terminal editor ($EDITOR) to tweak it before finalizing.
  • ๐ŸชŸ Universal & Fast: Works seamlessly across Linux, macOS (including Apple Silicon), and Windows.

๐Ÿ› ๏ธ The Interactive Developer Experience

When you run komit, you get a beautiful, clean terminal interface:

โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Staged files (3) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌ
โ”‚  โ€ข src/auth.py                                                   โ”‚
โ”‚  โ€ข tests/test_auth.py                                            โ”‚
โ”‚  โ€ข README.md                                                     โ”‚
โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ด
Branch name: feature/auth-tokens
Model: qwen2.5:7b ยท Style: conventional

โ ‹ Generating commit message...

โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Suggested commit message โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌ
โ”‚ feat(auth): add JWT authentication token engine [feature/auth-tโ€ฆ โ”‚
โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ด

ยป Choose an action: (y)es, (n)o, (e)dit, (r)egenerate [y]: 

Enter fullscreen mode Exit fullscreen mode

What do those options do?

  • y (Yes) $\rightarrow$ Instantly runs git commit -m "..." for you.
  • n (No) $\rightarrow$ Aborts the mission without touching your code.
  • e (Edit) $\rightarrow$ Launches your environment editor (git commit -m ... -e) so you can perfect the AI's draft.
  • r (Regenerate) $\rightarrow$ Feeds the diff back to Ollama for a fresh perspective.

๐Ÿš€ Getting Started in 60 Seconds

1. Prerequisites

You just need Ollama installed and a local model pulled down. We recommend any of these depending on your system specs:

# High quality (Recommended)
ollama pull qwen2.5:7b

# Great balance
ollama pull mistral:7b

# Blazing fast / Resource friendly
ollama pull llama3.2:3b

Enter fullscreen mode Exit fullscreen mode

2. Installation

You can install komit using your preferred method:

Via pipx (Recommended for Python CLI tools):

pipx install komit

Enter fullscreen mode Exit fullscreen mode

Via Shell Script (Linux/macOS):

curl -fsSL https://raw.githubusercontent.com/glemiu6/komit/master/scripts/install.sh | bash

Enter fullscreen mode Exit fullscreen mode

Via PowerShell (Windows):

irm https://raw.githubusercontent.com/glemiu6/komit/master/scripts/install.ps1 | iex

Enter fullscreen mode Exit fullscreen mode

3. Pro-Tip: Create a Git Alias

Make your life even easier by aliasing it directly in git:

git config --global alias.ai '!komit'

Enter fullscreen mode Exit fullscreen mode

Now, your workflow becomes:

git add .
git ai

Enter fullscreen mode Exit fullscreen mode


โš™๏ธ Customization & Styles

By running komit init, the tool sets up a global configuration file (~/.config/komit/config.toml) where you can tweak your default model, timeout limits, and preferred output style.

Here is what the different styles look like:

Conventional (Default)

feat(auth): add user authentication [feature/login]

Simple

Add user authentication [feature/login]

Detailed

feat(auth): add user authentication [feature/login]
- Add JWT token generation pipeline
- Implement password security layers using bcrypt primitives
- Append rotation verification routes


๐Ÿ›ก๏ธ Open Source & Contributing

komit is fully open-source under the Apache License 2.0. If you want to check out the code, report a bug, or add a feature, feel free to drop by the repository!

๐Ÿ‘‰ Check out komit on GitHub

Give it a spin, and let me know in the comments: Do you trust AI to write your commit messages, or are you a commit-message purist? ๐Ÿ‘‡