# SlothCommit 🦥: An Open-Weight AI That Writes Your Commit Messages So You Don't Have To

> Source: <https://dev.to/t364170654/slothcommit-an-open-weight-ai-that-writes-your-commit-messages-so-you-dont-have-to-4db>
> Published: 2026-10-20 03:29:17+00:00

*This is a submission for the [Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady](https://dev.to/challenges/hacktoberfest-week3-2026-10-19)*

Every developer knows the moment. The code is done. The tests pass. And then you sit there, staring at an empty commit box, trying to summarize three hours of work in one line.

`fix stuff` you type. You delete it. `update code`. Delete. `changes`. Delete.

**SlothCommit** 🦥 removes that moment entirely. Paste your `git diff`, and it hands you a proper commit message — Conventional Commits, a plain summary, or an emoji-flavored one — plus an optional PR description with *What changed / Why / Testing* sections.

The laziest part of your workflow, automated. Who gets to be lazier? Anyone who has ever typed `wip` and pushed.

**Live site:** [https://commit.tianx.tech](https://commit.tianx.tech) — the web UI is live on the `.tech` domain. Click **Try sample diff** to see the output format instantly. Full AI generation runs locally (see *Run it yourself* below) — paste the output of `git diff --staged`, pick a style, hit Generate.

**Video demo:**

**Never stare at a commit box again.**

Paste your `git diff`, get a clean Conventional Commit message + PR description — generated by open-weight AI.

[Live Demo](https://commit.tianx.tech) · [DEV Post](https://github.com/joemh79/sloth-commit#) · [Hacktoberfest Week 3: Slow and Steady](https://dev.to/challenges/hacktoberfest-week3-2026-10-19)

Writing commit messages is the most procrastinated 30 seconds in a developer's day. SlothCommit removes it:

`git diff --staged` in your terminal`index.html` — no framework, no bundler`functions/api/generate.js`)` commit.tianx.tech` (a `.tech` domain)
Your diffs contain your…

Zero-build frontend (one `index.html`), one Cloudflare Pages Function for the API, and an open-weight model doing the thinking. The whole thing is small enough to read over coffee.

`node_modules` folder the size of a small moon.`local_server.py`, ~100 lines) that forwards prompts to Ollama. No Cloudflare lock-in for the AI path.
The interesting engineering problem wasn't the generation — it's the *guardrails*. Left alone, a small model will happily invent file names and add cheerful commentary. The prompt enforces: subject line only per the format, body bullets explain *what* and *why* (never *how*), and output nothing but the message itself.

A note on the architecture: the deployed site serves the UI and a one-click sample. Full AI generation runs against local open-weight models — the same code path, zero data leaves your machine. The deployed Cloudflare Pages Function version is in the repo for anyone who wants to wire it to Workers AI on their own account.

Your diff is your most honest code. It's the half-finished refactor, the internal API you haven't announced, the proprietary logic your company hasn't shipped yet.

Sending that to a closed, per-token API means trusting a third party with your unfinished work — and paying them for the privilege, every single commit, forever.

Open weights change the math:

The sloth doesn't pay rent on its tree. Your commit messages shouldn't require a subscription either.

Measured honestly, from my own week:

The PR description generator is the bigger win: a structured *What/Why/Testing* write-up used to take me 3–5 minutes of grudging typing. Now it's one click and a quick review.
