lazycommit: a tiny local model writes my commit messages so I don't have to
Описание и применение
CLI‑инструмент lazycommit автоматически генерирует сообщения коммитов, используя локальную модель Qwen2.5‑Coder 0.5B. Он читает staged diff, формирует сообщение в стиле Conventional Commits и может сразу выполнить коммит. Работает без внешних API, быстро и удобно.
Задача
Writing commit messages is tedious and often generic; the author wants to automate it with a local model.
Результат
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.
Рабочий процесс
- Stage changes with git
- Run
lazycommitto generate a commit message - (Optional) Run
lazycommit --committo commit immediately
Доказательства
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.
- Дата записи: 2026-10-22T05:11:20.967Z