A personal project I made over the holidays.<p>Makes API calls to Codestral [1] using the diff and some simple RAG to pre-generate the commit messages.<p>It hooks itself to the git prepare-commit-message hook, so it just populates your commit messages automatically.<p>It helps get me started writing an actual commit message — even when it hallucinates, I have an easier time correcting a wrong commit message than writing one from scratch.<p>Would love some feedback, especially on the prompting: It tends to hallucinate, especially if there are relatively few changes.<p>[1]: <a href="https://mistral.ai/fr/news/codestral/" rel="nofollow">https://mistral.ai/fr/news/codestral/</a>