TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Autocommit – Git hook that pre-writes commit messages

2 点作者 nephanth4 个月前
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:&#x2F;&#x2F;mistral.ai&#x2F;fr&#x2F;news&#x2F;codestral&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mistral.ai&#x2F;fr&#x2F;news&#x2F;codestral&#x2F;</a>

暂无评论

暂无评论