frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: acmsg (automated commit message generator)

https://github.com/quinneden/acmsg
15•qeden•1y 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•1y 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•1y 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•1y 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•1y 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•1y ago
The commit itself is the content diff. Repeating that in the log message is redundant.
owebmaster•1y ago
no, it is not redundant, a summary makes it easier to search and find the correct commit to read the full diff.
hiatus•1y ago
Isn't that solved with blame?
InsideOutSanta•1y 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•1y 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•1y 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•1y 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•1y 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•1y 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•1y ago
Do you need an LLM to create those commit messages?
alzamixer•1y 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•1y ago
Don't forget to include committed code in the context when amending.
theknarf•1y 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•1y 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...

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

Show HN: I built a cybersecurity challenge for university students

https://vitb-polimi-cyber-v4.vercel.app/
1•adityainsights•28s ago•0 comments

Meta's custom transport protocol embraces packet chaos to boost AI throughput

https://www.sdxcentral.com/news/metas-custom-transport-protocol-embraces-packet-chaos-to-boost-ai...
1•oavioklein•2m ago•0 comments

Black hole singularity is a surface not a point

https://arxiv.org/abs/2608.21590
1•raattgift•3m ago•0 comments

The Download: smarter AI in schools, and a robot "carnival" in Shanghai

https://www.technologyreview.com/2026/08/25/1142909/the-download-smarter-ai-in-schools-robot-carn...
1•joozio•3m ago•0 comments

Is Foodnevercomes.com a Stolen Idea?

https://dopamine-hits.fandom.com/음식만안와요
1•dhffl•5m ago•1 comments

AI payment rails exist. The rules for dividing value do not (SSRN 7321561)

https://ssrn.com/abstract=7321561
1•MECIP_Protocol•6m ago•0 comments

A new ceiling for Λ: the de Bruijn–Newman constant is at most 0.1787854

https://www.judegomila.com/posts/riemann-lambda-0.1787854
1•judegomila•6m ago•0 comments

Apple's on-device model takes no images. I measured what that rules out

https://tidymacapp.com/on-device-model-takes-no-images
1•sdiazthomas•6m ago•0 comments

Water Behind the Watts: The Hidden Risk of Powering Data Centers

https://www.ceres.org/resources/reports/water-behind-the-watts-the-hidden-risk-of-powering-data-c...
1•hn_acker•7m ago•0 comments

Waymo Is Coming to the EU

https://www.reuters.com/technology/waymo-begin-testing-autonomous-vehicles-munich-2026-08-25/
1•cwoebker•7m ago•0 comments

How the Legal System Is Ruining Plants [video]

https://www.youtube.com/watch?v=ZNWmy0CKePc
1•Teever•8m ago•0 comments

Skinner Box: How to Control People Habits and How Games Abuse This

https://steemit.com/gaming/@ahmadmanga/skinner-box-how-to-control-people-habits-and-how-games-abu...
1•Bluestein•9m ago•0 comments

Orbs

https://ampcode.com/notes/orbs-explained
1•tosh•9m ago•0 comments

Show HN: Typeclip – types your clipboard like a human, for screen recordings

https://github.com/cssllcio/typeclip
2•izenme•9m ago•0 comments

The AI Trade Is Becoming a Macro Trade

https://www.emergingtrajectories.com/lh/ai-trade-is-macro/
1•cl42•9m ago•0 comments

Understanding Server-side Commercial Fingerprinting [pdf]

https://www.sysnet.ucsd.edu/~voelker/pubs/server-fp-www26.pdf
1•bobbiechen•10m ago•0 comments

Turn your IG posts into T shirts

https://omeweed.com/creators
1•mmorga71•10m ago•0 comments

My Friend Aaron

https://rorz.io/writing/my-friend-aaron
4•sarreph•12m ago•1 comments

Intelligence Is the Primitive. Applications Are the Diffusion Layer

https://www.a16z.news/p/intelligence-is-the-primitive-applications
1•7777777phil•13m ago•0 comments

LatticeDB – Like SQLite but for graph databases

https://github.com/jeffhajewski/latticedb
3•smiths1999•13m ago•1 comments

I made an autonomous quadcopter for safely capturing drones over prisons etc. [video]

https://www.youtube.com/watch?v=u2dsefy-Dsc
2•avolare•14m ago•0 comments

Show HN: Is this the limit of what a solo founder can build?

https://limitpixel.com/
1•truth_behold•14m ago•1 comments

I made a list of developer programs

https://pran.sh/blog/awesome-developer-programs
1•snorlaxmorlax•17m ago•0 comments

Freedom to Handcraft Software

https://rohanrd.mataroa.blog/blog/freedom-to-handcraft-software/
1•quaintdev•20m ago•0 comments

Do Minimum Wages Help Workers in Poor and Low-Income Families?

https://www.nber.org/papers/w35628
1•paulpauper•20m ago•0 comments

Disabling the lid sensor on a ThinkPad P14s Gen4

https://blog.melnib.one/2026/08/23/disabling-the-lid-sensor-on-a-thinkpad-p14s-gen4/
1•speckx•20m ago•0 comments

Show HN: Offer discounts and get more visitors

https://outdiscount.lol/
1•devarifhossain•20m ago•0 comments

Re: Re: Re: Pritchard on Liberal Happiness

https://www.astralcodexten.com/p/re-re-re-pritchard-on-liberal-happiness
1•paulpauper•20m ago•0 comments

Fake GTA 6 Extended Look and demo sites deliver an infostealer

https://www.malwarebytes.com/blog/threat-intel/2026/08/fake-gta-6-extended-look-and-demo-sites-de...
1•Alephinitesimal•21m ago•0 comments

Programmer Science Fiction

https://stoates.substack.com/p/programmer-science-fiction
1•paulpauper•21m ago•0 comments