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

DojoZero – AI Agent Sport Betting Arena

https://dojozero.live
1•ekzhu•1m ago•0 comments

RYBitten: Configurable RGB-to-RYB Mapping

https://rybitten.space/
1•lioeters•2m ago•0 comments

I used to think that vibe coding was good for greenfield projects. I was wrong

1•dokdev•3m ago•0 comments

Spirit Airlines Is Winding Down All Operations

https://www.spiritrestructuring.com/
3•CaliforniaKarl•7m ago•0 comments

Apple Stops Selling Mac Mini with 256GB of Storage

https://www.macrumors.com/2026/05/01/mac-mini-now-starts-at-799/
2•tosh•13m ago•0 comments

Solar farm lets cattle roam under moving panels

https://electrek.co/2026/05/01/solar-farm-lets-cattle-roam-under-moving-panels/
1•breve•16m ago•0 comments

Yann LeCun's Billion Dollar Bet

https://www.youtube.com/watch?v=kYkIdXwW2AE
1•tux1968•19m ago•0 comments

Inside Italy's 'Cheese Bank,' Parmigiano Reggiano becomes financial gold

https://www.cnn.com/2026/05/02/food/italy-cheese-bank-parmigiano-reggiano-intl
3•1659447091•20m ago•0 comments

Trump says it's 'treasonous' to say US not winning war in Iran

https://www.independent.co.uk/tv/news/trump-iran-war-news-treason-video-b2969246.html
3•9dev•22m ago•0 comments

How to transfer money from PayPal to PayPal

https://sites.google.com/view/weptransfermoneypaypaltopaypal
1•lesanancyasd•25m ago•0 comments

QuickQWERTY Touch Typing Tutor

https://susam.net/quickqwerty.html
1•susam•25m ago•0 comments

Show HN: Free security scanning for OSS projects

2•eskibars•26m ago•0 comments

Ask HN: What Happened to the CS153 Videos

1•mapleleaf1921•28m ago•0 comments

PyPI Fixes High-Severity Access Control Issues Found in Security Audit

https://socket.dev/blog/pypi-fixes-high-severity-issues-found-in-security-audit
1•feross•29m ago•0 comments

Measuring Strategic Work

https://fullhoffman.com/2026/03/30/on-measuring-strategic-work/
1•adunk•30m ago•0 comments

UK firm pioneers data centres using lampposts

https://www.bbc.com/news/articles/c98r4e594p7o
1•1659447091•33m ago•0 comments

Farewell to a Giant of Botany

https://nautil.us/farewell-to-a-giant-of-botany-1280409
3•Tomte•34m ago•0 comments

Ask HN: What was your "why didn't I start doing this sooner" moment?

2•chistev•35m ago•1 comments

Show HN: Detecting running processes using AF_ALG

https://github.com/NHAS/detect-running-alg-socket
1•Nullence•35m ago•0 comments

gRPC service to MCP server with a single proto annotation, autogen for slackers

https://github.com/gdsoumya/protomcp
1•gdsoumya•36m ago•0 comments

I Do Not Recommend Bitwarden

https://xn--gckvb8fzb.com/i-do-not-recommend-bitwarden/
2•HotGarbage•43m ago•0 comments

Just-Bash: A Full Shell Environment That Never Touches Your Disk

https://www.codeline.co/thoughts/repo-review/2026/just-bash-virtual-shell-for-ai-agents
1•ankitg12•47m ago•0 comments

Majority of US Military sites in Middle East damaged by Iran [video]

https://www.cnn.com/2026/05/01/world/video/us-military-bases-iran-strikes-images-invs-digvid
3•hggh•51m ago•0 comments

Your App Should Ship an MCP Server

https://justin.poehnelt.com/posts/ship-mcp-server-native-app/
1•justinwp•54m ago•3 comments

Show HN: I made an AI task scheduling app

https://apps.apple.com/us/app/taskmaster-ai-assistant/id6761262496
1•omiliyomami•54m ago•0 comments

Apple Launches New All-in-One Apple Business Platform for Device Management

https://www.macrumors.com/2026/04/14/apple-business-platform-launches/
1•walterbell•57m ago•0 comments

Raspberry Pi 5 gets LLM smarts with AI HAT+ 2

https://www.theregister.com/2026/01/15/pi_5_ai_hat_2/
1•barqawiz•1h ago•0 comments

Show HN: Stop playing my matchstick puzzles, start building your own in seconds

https://mathstick.github.io
2•trangram•1h ago•1 comments

Why are neural networks and cryptographic ciphers so similar?

https://reiner.org/neural-net-ciphers
1•jxmorris12•1h ago•0 comments

Amazon.com (1999)

https://web.archive.org/web/19990828014913/http://www.amazon.com/
1•for_i_in_range•1h ago•0 comments