Skip to content
Muhammet Şafak
tr

Local code review without letting the diff leave the machine

Graduated

An attempt to have a model review my own diff before anyone else sees it; it became a provider-agnostic Go CLI, and then CommitBrief.

Started
April 2026 — Ongoing

Technologies

Go Cobra go-git Anthropic Claude OpenAI Google Gemini Ollama

This experiment became a product:

CommitBrief

What I tried

The question: can a code change get a structured “second pair of eyes” before it reaches another human (or future me), without leaving the terminal — and without the diff leaving the machine, the only outbound call going to the LLM provider you chose?

What came out of it

One command covered every scope: the staged diff, a single commit, the working tree, or a PR-style three-dot range. Provider dependency moved behind a Provider interface, with Anthropic, OpenAI, Gemini and Ollama implementing the same contract. Project rules are customisable through COMMITBRIEF.md, and output comes as coloured cards, markdown, or a strict JSON schema.

Where it ended up

The experiment phase closed: CommitBrief now has its own domain, signed binaries and a versioning contract. Details live in the portfolio.

Tags: #ai#cli#code-review
Share:

More Experiments

All experiments

Search the site

Start typing to search posts, projects and pages.

Esc to close Powered by Pagefind