SlothCommit: a 1B Gemma on a plain CPU now writes my commit messages
说明与用途
SlothCommit 使用本地 Gemma 3 1B 模型自动生成符合 Conventional Commit 的提交信息和每周总结,所有数据保持离线。
问题
Writing meaningful commit messages and weekly summaries is tedious and error‑prone, especially for students and teams who rely on conventional commit conventions.
结果
SlothCommit replaces manual commit message writing with a local, privacy‑preserving AI model, producing conventional commits and weekly summaries in seconds on a CPU‑only machine.
工作流
- 1. Stage changes with
git add -A - 2. Run
sloth committo generate a Conventional Commit message from the staged diff - 3. Review the suggested message and choose Yes/Edit/No
- 4. Commit automatically or manually
- 5. Run
sloth weekto produce a 2–4 sentence weekly summary - 6. Optionally install
sloth hook installto auto‑populate commit messages via aprepare-commit-msghook
证据
SlothCommit hands both jobs to a small open‑weight model running on my own machine: sloth commit reads my staged diff and writes a Conventional Commit…
The model is Gemma 3 1B, running through llama.cpp. No API key, no account, no per‑token bill, and no diff ever leaves localhost.
sloth week turns the last 7 days of commits into a changelog grouped by type, with a 2–4 sentence summary I can paste into a standup or group chat.
Every commit that built the tool was written by SlothCommit and pushed unedited.
- 记录日期: 2026-10-20T15:56:16.803Z