(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=43454690

AndrewRDev 在 Hacker News 上展示了他的作品 “Cocommit”,这是一个轻量级的 Git 提交辅助工具,它使用 LangChain 支持多种大型语言模型 (LLM)。目前它使用了 Claude 3.7(通过 Bedrock)和 OpenAI 的 GPT-4o,并邀请社区进行测试并提供反馈,特别是通过 GitHub Issues 反馈,以查看它在其他 LangChain 支持的 LLM 上的表现如何。 评论区引发了关于详细提交信息必要性的讨论。Andrewfromx 认为简洁的提交信息就足够了,`git log -p` 可以提供详细的上下文。Floodle 反驳道,提交信息应该解释更改背后的“原因”。Artursapek 同意上下文信息很有帮助,但建议如果代码本身不够清晰,代码注释是更持久的解决方案。


原文
Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Cocommit – A copilot for git commit (github.com/andrewromanenco)
5 points by AndrewRDev 3 hours ago | hide | past | favorite | 3 comments
I've built a lightweight copilot that integrates with Git commits, leveraging LangChain to support multiple LLM providers. I currently use it with Claude 3.7 (via Bedrock) and OpenAI’s GPT-4o, but I’d love to see how it performs with other LLMs.

If you have access to any LangChain-supported LLMs, I’d really appreciate a quick test! Your feedback via GitHub Issues would be invaluable in improving the project.

Thanks in advance!











"A good commit consists of multiple elements, but at a minimum, it should have a well-crafted commit message. " I'm not sure I accept this premise. Just a few words is all that is needed. Anymore and it becomes this OCD novel you are writing that doesn't actually help the code base later. Git log -p is where you really look to see what the commit did, not a well crafted message.


The diff will tell you what's changed, but it doesn't tell you the "why" of the change. A project should store that information somewhere; whether it's in pull request descriptions, issues/tickets, or the commit message, which is a perfectly reasonable choice.


commit messages can be useful sometimes to explain the context of a change, but I agree if the code doesn't speak for itself then adding a comment above it is probably a better, more permanent solution.






Join us for AI Startup School this June 16-17 in San Francisco!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact



Search:
联系我们 contact @ memedata.com