lazycommit: a tiny local model writes my commit messages so I don't have to
Description and use
The lazycommit CLI automatically generates Conventional Commit messages using a local Qwen2.5‑Coder 0.5B model. It reads staged diffs, produces a message, and can commit immediately. It runs offline, is lightweight, and speeds up daily commits.
Problem
Writing commit messages is tedious and often generic; the author wants to automate it with a local model.
Outcome
The tool generates conventional commit messages in about 2 seconds on a 2‑core CPU VM, correctly identifying commit types (feat, docs, test) in the demonstrated examples.
Workflow
- Stage changes with git
- Run
lazycommitto generate a commit message - (Optional) Run
lazycommit --committo commit immediately
Evidence
lazycommit is a small CLI that writes git commit messages for me. I stage my changes, run lazycommit, and a small open-weight model running on a server VM reads the diff and answers with one Conventional Commit message, like feat: add timeout option to portscan.
The default model is Qwen2.5-Coder 0.5B Instruct, about 400 MB, which runs fine on a laptop CPU.
Each message took about 2 seconds on a 2-core VM with the model on CPU. That is one measured result on that VM, not a benchmark.
- Record date: 2026-10-22T05:11:20.967Z