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•10mo 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•10mo 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•10mo 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•10mo 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•10mo 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•10mo ago
The commit itself is the content diff. Repeating that in the log message is redundant.
owebmaster•10mo ago
no, it is not redundant, a summary makes it easier to search and find the correct commit to read the full diff.
hiatus•10mo ago
Isn't that solved with blame?
InsideOutSanta•10mo 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•10mo 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•10mo 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•10mo 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•10mo 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•10mo 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•10mo ago
Do you need an LLM to create those commit messages?
alzamixer•10mo 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•10mo ago
Don't forget to include committed code in the context when amending.
theknarf•10mo 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•10mo 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•10mo ago
Just click the copilot button in any ide to generate an automated commit message in less than one second. This is effectively useless.

Just make it hard to fail

https://nekolucifer.substack.com/p/just-make-it-really-hard-to-fail
1•andai•2m ago•0 comments

OpenAI to double workforce as business push intensifies

https://www.ft.com/content/7ffea5b4-e8bc-47cd-adb4-257f84c8028b
1•mfiguiere•5m ago•0 comments

Ask HN: Offline forecasting model to real-time sensor data?

1•anonymoosestdnt•6m ago•0 comments

Fedora Asahi Remix 43 is now available

https://fedoramagazine.org/fedora-asahi-remix-43-is-now-available/
1•birdculture•6m ago•0 comments

Show HN: Flowelio – 33 free calculators that run in the browser

https://flowelio.com
1•stramanu•7m ago•0 comments

America Now Has More Spas and Gyms Than Stores Selling Actual Stuff

https://www.wsj.com/real-estate/commercial/service-economy-real-estate-ecf9a414
1•fortran77•7m ago•1 comments

TideSQL – A Space-Efficient, Write-Optimized Storage Engine for MariaDB

https://tidesdb.com/reference/tidesql/
2•alexpadula•9m ago•1 comments

Tell HN: OS-level age indication is the solution

1•uyzstvqs•10m ago•1 comments

The Jellies That Evolved a Different Way to Keep Time

https://www.quantamagazine.org/the-jellies-that-evolved-a-different-way-to-keep-time-20260320/
1•Brajeshwar•12m ago•0 comments

What the Fork? Imposter Commits in GitHub Actions and CI/CD

https://www.chainguard.dev/unchained/what-the-fork-imposter-commits-in-github-actions-and-ci-cd
2•donutshop•14m ago•0 comments

Canada moves towards homegrown rocket launches

https://www.ctvnews.ca/sci-tech/article/incredibly-important-canada-moves-towards-homegrown-rocke...
2•pseudolus•16m ago•0 comments

Compound interest confoundedly profound (2017)

https://starkcoffee.medium.com/compound-interest-confoundedly-profound-e53b8a8a70a9
1•mkl95•16m ago•0 comments

Why installing Argo CD didn't fix your deployments

https://platformengineering.org/blog/why-installing-argo-cd-didnt-fix-your-deployments
1•donutshop•21m ago•0 comments

RustSec bug reports result in claims of harassment, ban

https://www.theregister.com/2026/03/20/cryptographer_nadim_kobeissi_rustsec_ban/
1•weedhopper•22m ago•0 comments

Why AI startups and founders now use "taste" to describe their products

https://www.newyorker.com/culture/infinite-scroll/why-tech-bros-are-now-obsessed-with-taste
1•ilamont•24m ago•0 comments

EuroStack

https://eurostack.eu/
2•amai•24m ago•0 comments

Bernie vs. Claude [video]

https://www.youtube.com/watch?v=h3AtWdeu_G0
3•Jupe•25m ago•1 comments

The Responsibility of Intellectuals (1967)

https://chomsky.info/19670223/
1•caaqil•25m ago•0 comments

Cacti Defy Darwin

https://nautil.us/how-cacti-defy-darwin-1279117
1•Brajeshwar•25m ago•0 comments

Mayor of Paris removed parking spaces, "drastically" reduced the number of cars

https://www.cnn.com/2026/03/21/travel/paris-transformation-anne-hidalgo-mayor
2•heresie-dabord•28m ago•0 comments

Ask HN: Why do we train AI on one-on-one dialogues instead of group dynamics?

3•kubiknubika•31m ago•3 comments

Are AI Agents like von Hammerstein's industrious and stupid?

3•multidude•32m ago•3 comments

Why the Spec-to-Code Gap Cannot Be Closed?

https://www.causalitylimited.com/p/why-the-spec-to-code-gap-cannot-be
1•causalityltd•32m ago•0 comments

No Pills or Needles, Just Paper: How Deadly Drugs Are Changing

https://www.nytimes.com/2026/03/21/world/deadly-drugs-paper.html
1•Physkal•34m ago•1 comments

Agentic pre-commit hook with OpenCode Go SDK

https://www.youtube.com/watch?v=3j_Oh525Xrs
1•der_gopher•36m ago•0 comments

Reevaluating 1990s OOP in Java: DOP, Scoped Values, and Structured Concurrency

https://blog.arkstack.dev/en/blog/reevaluating-1990s-oop-in-java/
1•arkstack•37m ago•0 comments

A Simulated Dinosaur Nest Revealed Prehistoric Parenting Strategies

https://nautil.us/how-a-simulated-dinosaur-nest-revealed-prehistoric-parenting-strategies-1279134
1•Brajeshwar•39m ago•0 comments

Music and song discovery made simple

https://www.secondtrack.co/feed
1•eriatarka•44m ago•1 comments

Show HN: A minimal SVG polygon shape creator in the web

https://svg.koljasam.com/
1•blackbrokkoli•45m ago•0 comments

Healing and the Church

https://deepcode.substack.com/p/the-coming-great-transition-healing
3•longitudinal93•46m ago•0 comments