frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: acmsg (automated commit message generator)

https://github.com/quinneden/acmsg
15•qeden•7mo ago
A cli tool written in python for generating commit messages based on the staged changes in a repository using AI models through the OpenRouter API.

Comments

infocollector•7mo ago
Looks like openrouter api can be self-hosted, which means you should be able to run this locally. If anyone is able to run this with ollama, please do post how you did that? :)
theblazehen•7mo ago
The openrouter api is the same as the openai api, so you should be able to use the openai api compatibility built into ollama after updating the url in /src/acmsg/constants.py
pvdebbe•7mo ago
Maybe I am a bit old-fashioned but I think the commit message should convey intent and not content of the diffs. Perhaps the real utility of this is to describe existing commits in a repository.
owebmaster•7mo ago
I'm also old-fashioned but I always thought it made much more sense to give a content diff, it makes it easier to find changes.
JimDabell•7mo ago
The commit itself is the content diff. Repeating that in the log message is redundant.
owebmaster•7mo ago
no, it is not redundant, a summary makes it easier to search and find the correct commit to read the full diff.
hiatus•7mo ago
Isn't that solved with blame?
InsideOutSanta•7mo ago
I don't understand the reasoning for persisting LLM output that can be generated at any point. If I want to use an LLM to understand someone else's commits, I can use the LLM best suited for that task at the time I need the information, which will likely be more accurate than what was available at the time of the commit and will have access to more context.

I also believe that commit messages should focus on information the code doesn't already convey. Whatever the LLM can generate from looking at your code is likely not the info I'll seek when I read your commit message.

bee_rider•7mo ago
It looks like it just is based on the git diff and status, at least as far as I can tell in a quick skim…

Hypothetically, a tool like this could ingest the bug report you were fixing, some emails, etc etc. It could also read the whole project (to get more context than just the diff). In principle there’s no reason it couldn’t relay more info than just the diff, in some extreme form…

Also, it could be seen as producing a starting point. When a person picks which AI generated text to keep, that is enough to add a bit of human spark into the system, right?

nickcw•7mo ago
When you are looking through commit messages, "Why?", Is the question you want answered. The diff contains "What?" and "How?".

Assuming that the commits in this repo were generated by this tool it is missing the "Why?".

myrmidon•7mo ago
Fully agree. Also, using LLMs for things like this can have bad side-effects, too, simply because it raises the noise-floor:

By spelling out things that are not noteworthy enough for a human, you make it more difficult to find comments that are (and were). Injecting a lot of irrelevant information can hamper understanding even if it is technically completely correct.

flysand7•7mo ago
You are talking about the commit message body, right, not just the header? Because for me it's something similar, but:

Header: Contains "What" and the scope of the changes, as short as possible Body: Contains "Why" and the full explanation of the change

trallnag•7mo ago
So what kind of commit subject do you expect for fixing a single typo? Or bumping the patch version of a random dependency?
Xiol32•7mo ago
Do you need an LLM to create those commit messages?
alzamixer•7mo ago
I use the following script to allow copilot vim plugin to help me.

```plaintext name=../../bin/assisted-commit

#!/bin/bash

# Run git commit with --verbose --dry-run and save the output git commit --verbose --dry-run > ./commit.message

# Prepend # to every line and add "conventional commit message:" at the end sed -i 's/^/# /' ./commit.message echo "# uncommented conventional commit message using feat, fix or doc flags. !beakingchange iff change breaks backward compatibility:" >> ./commit.message echo "" >> ./commit.message

# Open the file in vim for editing, with cursor on a new line at the end and in insert mode vim +':normal Go' +startinsert ./commit.message

# Filter out commented lines and save to a temporary file grep -v '^#' ./commit.message > ./commit.message.filtered

# Commit using the filtered file git commit -F ./commit.message.filtered

# Delete the files rm ./commit.message ./commit.message.filtered

```

esafak•7mo ago
Don't forget to include committed code in the context when amending.
theknarf•7mo ago
This is worse than useless.

The commit message is supposed to contain the details that you can't just glance from the code. Why a certain decision was made, or the pro's and con's of a decision, a link to a relevant Github / Jira issue, etc.

jasonjmcghee•7mo ago
> a link to a relevant Github / Jira issue, etc.

So important!

Makes all devs lives so much easier.

Though you know someone is going to tweak the lint rules at some point and have the top commit on nearly every line at a certain point in time.

Is there a "non-functional change commit" dictionary for git blame to ignore these? I would use that feature...

maxcomperatore•7mo ago
Just click the copilot button in any ide to generate an automated commit message in less than one second. This is effectively useless.

Tricking a Security AI agent into pwning itself

https://www.hacktivesecurity.com/blog/2025/12/10/cve-2025-67511-tricking-a-security-ai-agent-into...
1•edoardottt•2m ago•0 comments

Ask your LLM for receipts: What I learned teaching Claude C++ crash triage

http://addxorrol.blogspot.com/2025/12/ask-your-llm-for-receipts-what-i.html
1•tdullien•4m ago•0 comments

Adopt Unicode Characters

https://aac.unicode.org/adopt
1•selvan•5m ago•0 comments

US threatens new ICC sanctions unless court pledges not to prosecute Trump

https://www.reuters.com/world/us/us-threatens-new-icc-sanctions-unless-court-pledges-not-prosecut...
2•jeroenhd•6m ago•0 comments

The most performant, secure, scalable, reliable, freest data platform

https://averagedatabase.com
1•tamnd•6m ago•0 comments

Simplify GPU Programming with Nvidia CUDA Tile in Python – Nvidia Technical Blog

https://developer.nvidia.com/blog/simplify-gpu-programming-with-nvidia-cuda-tile-in-python/
2•rbanffy•9m ago•0 comments

Hogwarts Legacy is free on the Epic Games Store for a limited time

https://www.windowscentral.com/gaming/hogwarts-legacy-epic-games-store-freebie-the-game-awards-20...
1•cyrc•10m ago•0 comments

Explaining Christmas to developers as a system architecture story

1•frafdez•17m ago•0 comments

Show HN: Workmux – Parallel development in tmux with Git worktrees

https://github.com/raine/workmux
2•rane•18m ago•0 comments

Native Ads Coming Soon to Stack Overflow and Stack Exchange

https://meta.stackexchange.com/questions/415259/native-ads-coming-soon-to-stack-overflow-and-stac...
3•exploraz•19m ago•0 comments

Germany's $500B Mistake (The Green Energy Trap) [video]

https://www.youtube.com/watch?v=qLZZGjjuml8
2•mpweiher•24m ago•0 comments

How does a "you interview for US company, we do the work" scam work?

4•marttilaine•27m ago•1 comments

Show HN: AI Advent Calendar – 25 practical AI tips for small business owners

https://advent.abasis.ai
2•akimov_pro•30m ago•0 comments

We're launching Bindu, a simple way to connect AI agents

https://github.com/GetBindu/Bindu
1•ai_biden•30m ago•5 comments

After 27 years within budget Austria open 6thlongest railway tunnel in the world

https://infrastruktur.oebb.at/en/projects-for-austria/railway-lines/southern-line-vienna-villach/...
2•fzeindl•31m ago•0 comments

State of Developer Ecosystem Report 2025 (JetBrains)

https://devecosystem-2025.jetbrains.com
1•pjmlp•32m ago•0 comments

Reddit launches high court challenge to Australia's under-16s social media ban

https://www.theguardian.com/australia-news/2025/dec/12/reddit-high-court-challenge-social-media-b...
2•trocado•35m ago•0 comments

Debug Mode for LLMs in vLLora

https://vllora.dev/blog/debug-mode/
4•mrun1729•37m ago•0 comments

AI Safety for Fleshy Humans: a whirlwind tour

https://aisafety.dance/
1•surprisetalk•38m ago•0 comments

Mcpgen is a code generator for MCP servers in Go

https://github.com/getprobo/mcpgen
1•gearnode•39m ago•0 comments

Zoom Federated AI at 48.1% on HLE

https://www.zoom.com/en/blog/humanitys-last-exam-zoom-ai-breakthrough/?cms_guid=false
1•snowypine•40m ago•0 comments

US marine leadership principles [pdf]

https://www.usmcu.edu/Portals/218/Fidelity-%20Leadership%20Principles.pdf
1•jeremiecoullon•40m ago•0 comments

Training LLMs for Honesty via Confessions

https://arxiv.org/abs/2512.08093
2•arabello•44m ago•1 comments

Owloops CLI Tools

https://www.owloops.com/
1•handfuloflight•45m ago•0 comments

What to Do When They Forget Something They "Knew"

https://kidswholovemath.substack.com/p/what-to-do-when-they-forget-something
2•sebg•47m ago•0 comments

Tracking down an upside-down text bug in the ChatGPT macOS app

https://oskargroth.com/blog/debugging-strange-calayers-chatgpt
2•cindori•56m ago•0 comments

Wicketkeeper – privacy-friendly, self-hostable PoW CAPTCHA

https://github.com/a-ve/wicketkeeper
1•cachius•57m ago•1 comments

Nvidia NVLink Fusion Tapped for Future AWS Trainium4 Deployments

https://www.servethehome.com/nvidia-nvlink-fusion-tapped-for-future-aws-trainium4-deployments/
3•PaulHoule•57m ago•0 comments

Show HN: A minimum viable Markov gibberish generator in 32 lines of Python

https://github.com/susam/mvs
2•susam•58m ago•0 comments

Building small Docker images faster

https://sgt.hootr.club/blog/docker-protips/
2•steinuil•58m ago•0 comments