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.

Om Malik – What DeepSeek Means for Everyone

https://crazystupidtech.com/2025/02/02/what-deepseek-means-for-everyone/
1•rmason•44s ago•0 comments

A Mexican Couple in California Plans to Self-Deport–and Leave Their Kids Behind

https://www.newyorker.com/magazine/2026/01/12/a-mexican-couple-in-california-plans-to-self-deport...
1•mitchbob•2m ago•1 comments

Reasons to Love the Field of Programming Languages

https://danilafe.com/blog/i_love_programming_languages/
1•todsacerdoti•4m ago•0 comments

Statically Linking PipeWire

https://gamesbymason.com/blog/2025/statically-linking-pipewire/
1•10000truths•8m ago•0 comments

Show HN: Yet Another Screenshot Tool?

https://capturl.com/blog/why-capturl
1•crigout•8m ago•0 comments

ProPublica: Investigations you may have missed this year

https://www.propublica.org/article/propublica-investigations-you-may-have-missed-2025
1•noleary•10m ago•0 comments

Rapid development to test new business ideas using notebooks

https://world.hey.com/apetrov/rapid-development-to-test-new-business-ideas-using-notebooks-bf80400c
1•apetrov•12m ago•0 comments

Data Science Weekly – Issue 632

https://datascienceweekly.substack.com/p/data-science-weekly-issue-632
1•sebg•12m ago•0 comments

What Ever Happened to Getting to First Base?

https://www.theatlantic.com/family/archive/2025/09/gen-z-sex-dating-language/684357/
1•llmslave2•14m ago•0 comments

Apple reportedly cuts production of Vision Pro headset after poor sales

https://www.theguardian.com/technology/2026/jan/01/apple-reportedly-cuts-production-vision-pro-he...
5•devonnull•15m ago•0 comments

Om Malik – China's EV Boom Is Bad for U.S..Tech

https://crazystupidtech.com/2025/03/16/chinas-ev-boom-is-bad-for-u-s-tech/
5•rmason•16m ago•1 comments

Show HN: Testing how symbolic framing affects LLMs

1•Daladim•16m ago•1 comments

Show HN: CamPrompter – Transparent Teleprompter with UVC Hardware Control

https://camprompter.dnyantra.com/
1•mayurkakade•16m ago•0 comments

Deep Delta Learning

https://github.com/yifanzhang-pro/deep-delta-learning
1•pama•18m ago•0 comments

'They sowed chaos to no avail': the lasting legacy of Elon Musk's DOGE

https://www.theguardian.com/technology/2026/jan/01/elon-musk-doge-legacy-government
6•jethronethro•18m ago•0 comments

The Year That Kicked My Ass

https://furbo.org/2026/01/01/the-year-that-kicked-my-ass/
1•bangonkeyboard•18m ago•0 comments

Secure File Cloud

https://nulldrop.xyz
1•thximpulse•18m ago•0 comments

Things Every Fresh Graduate Should Know About Software Performance

https://johnnysswlab.com/9-things-every-fresh-graduate-should-know-about-software-performance/
1•kiriberty•19m ago•1 comments

DeepSeek MHC: Manifold-Constrained Hyper-Connections

https://twitter.com/Dorialexander/status/2006680750230249839
2•naves•22m ago•0 comments

Notes on Taiwan

https://www.thefitzwilliam.com/p/notes-on-taiwan
1•MajesticFrogBoy•25m ago•0 comments

Tech Startups Are Handing Out Free Nicotine Pouches to Boost Productivity

https://www.wsj.com/tech/tech-startups-are-handing-out-free-nicotine-pouches-to-boost-productivit...
1•gpi•31m ago•1 comments

Owning a smartphone at age 12 linked to mental and physical health risks

https://medicalxpress.com/news/2025-12-smartphone-age-linked-mental-physical.html
3•PaulHoule•31m ago•0 comments

Six Harmless Bugs Lead to Remote Code Execution

https://mehmetince.net/the-story-of-a-perfect-exploit-chain-six-bugs-that-looked-harmless-until-t...
1•ozirus•32m ago•0 comments

Oxidation and Radiation – the Rise of uv in 2025

https://zahlman.github.io/posts/2025/12/31/oxidation/
4•zahlman•35m ago•0 comments

My personal data collection practice evolved over the years

https://www.artfish.ai/p/2025-data-collection-wrapped
1•yenniejun111•36m ago•0 comments

PlayStation 5 ROM Keys Leaked

https://www.psdevwiki.com/ps5/Keys
3•tragiclos•36m ago•0 comments

Starlink satellites being lowered from 550 km to 480 km

https://twitter.com/michaelnicollsx/status/2006790372681220530
7•wmf•36m ago•0 comments

Eric Fromm and New Year's Irresolutions

https://achad4.substack.com/p/eric-fromm-and-new-years-irresolutions
1•achad45•36m ago•0 comments

A Man Who Was Supposed to Kill Martin Luther King Jr

https://slate.com/news-and-politics/2025/12/martin-luther-king-mlk-fbi-files-murder-assassination...
1•rmason•38m ago•0 comments

Show HN: Topological Obstruction Proof for P vs. NP (Derived in Solitary)

https://www.academia.edu/145628758/P_NP_Spectral_Geometric_Proof_via_Homological_Obstructions_in_...
1•MohskiBroskiAI•39m ago•1 comments