frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: acmsg (automated commit message generator)

https://github.com/quinneden/acmsg
6•qeden•3h 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•1h 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•32m 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•1h 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•1h 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•1h ago
The commit itself is the content diff. Repeating that in the log message is redundant.
owebmaster•4m ago
no, it is not redundant, a summary makes it easier to search and find the correct commit to read the full diff.
InsideOutSanta•1h 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•31m 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•1h 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•59m 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•46m 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

alzamixer•1h 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•41m ago
Don't forget to include committed code in the context when amending.

AI Job Loss: What's Going On?

https://medium.com/@AhmedF/ai-job-loss-whats-really-going-on-196a1b15bcc0
1•algoghostf•1m ago•0 comments

Entrepreneurial Spawning from Remote Work

https://www.nber.org/papers/w33774
1•ingve•2m ago•1 comments

US warns companies around the world to stay away from Huawei chips

https://arstechnica.com/gadgets/2025/05/us-warns-companies-around-the-world-to-stay-away-from-huawei-chips/
1•rntn•4m ago•1 comments

Quantifying AI Coding Impact

https://adamferrari.substack.com/p/quantifying-ai-coding-impact
2•gailaxelrod•5m ago•0 comments

Sim-swap fraud rises as criminals seek to exploit growth of 2FA

https://www.itv.com/news/2025-05-12/sim-swap-fraud-rises-by-1000-as-criminals-exploit-two-factor-authentication
1•chrisjj•5m ago•0 comments

Show HN: AskAnyQuestion – Branded AI search engines powered by your content

https://www.askanyquestion.ai
2•jroseborough•5m ago•0 comments

Making my app worse because of macOS privacy protections

https://lapcatsoftware.com/articles/2025/5/3.html
3•ingve•5m ago•0 comments

Distributing command line tools for macOS

https://ofek.dev/words/guides/2025-05-13-distributing-command-line-tools-for-macos/
1•ofek•7m ago•1 comments

AI-Powered News Piracy Site Blocked by ISPs After Court Sides with Publishers

https://torrentfreak.com/ai-powered-news-piracy-site-blocked-by-isps-after-court-sides-with-publishers-250514/
1•isaacfrond•7m ago•0 comments

Palisades Fire Rebuild: Permitting Progress Dashboard

https://recovery.lacounty.gov/rebuilding/permitting-progress-dashboard/
2•tlogan•9m ago•0 comments

Audra McDonald's 'Gypsy' Showstopper Is a Revelation

https://www.nytimes.com/2025/05/13/theater/audra-mcdonald-gypsy-broadway-tonys.html
1•whack•9m ago•0 comments

Preprints.org – The Multidisciplinary Preprint Platform

https://www.preprints.org/
1•tambourine_man•10m ago•0 comments

Ox – Ethereum Standard Library

https://oxlib.sh/
1•bpierre•13m ago•0 comments

Pandora's Vox: On Community in Cyberspace

https://gist.github.com/kolber/2131643
1•Khaine•14m ago•0 comments

Show HN: Fleck" Front End for Lyrion Music Server

https://fleck-theme.org/
1•nbeversluis•15m ago•0 comments

Programmes. Observed with social systems theory [CFP]

https://derroth.com/2025/01/08/cfp-luhmann-conference-2025-in-cambridge/
1•mstep•18m ago•0 comments

SMS 2FA is not just insecure, it's also hostile to mountain people

https://blog.stillgreenmoss.net/sms-2fa-is-not-just-insecure-its-also-hostile-to-mountain-people
14•todsacerdoti•18m ago•3 comments

The Boring Company Achieves "Holy Grail" Zero-People-in-Tunnel Continuous Mining

https://gearmusk.com/2025/05/14/the-boring-company-zpit/
2•bilsbie•19m ago•0 comments

How to Secure Your Home Wi-Fi Network from Hackers

https://www.youtube.com/watch?v=W8EIahhrw-s
2•pawanjswal•19m ago•0 comments

The U.S. Nuclear Base Hidden Under Greenland's Ice for Decades

https://www.wsj.com/world/greenland-us-camp-century-nuclear-base-91e8abea
7•fortran77•19m ago•3 comments

Do Think Tags Help LLMs Plan?

https://openreview.net/forum?id=aFAMPSmNHR
1•nyrikki•19m ago•1 comments

Will this woman be the first Briton to walk on the Moon?

https://www.bbc.com/news/articles/czxyv3z710do
1•Sikara•22m ago•0 comments

A Map of Hackerspaces and Makerspaces

https://mapcomplete.org/hackerspaces.html
1•eamag•22m ago•0 comments

Rose Player is a Humane video player for your React/Next website

https://www.roseplayer.com/
1•inoshy•23m ago•1 comments

Live, 24/7 4K ultra high-def video of Earth from space

https://www.space.com/astronomy/earth/live-4k-video-from-space-see-earth-from-the-iss-with-sharp-eyed-sen-cameras
2•vednig•23m ago•0 comments

RHEL 10 comes with an AI command line assistant

https://command-line-assistant.readthedocs.io/en/latest/man/command-line-assistant.1.html
3•rwmj•25m ago•0 comments

Ask HN: Proven Passive Income Streams That Uses AI Agents?

1•johndavid9991•26m ago•0 comments

GitHub AI protection denies access to users without account

https://infosec.exchange/@tomgag/114504958452945090
3•rapnie•26m ago•0 comments

The Economics of Operating a CI Cloud

https://www.blacksmith.sh/blog/the-economics-of-operating-a-ci-cloud
4•guergabo•28m ago•0 comments

How Sony Solved the Discman's Biggest Problem

https://obsoletesony.substack.com/p/how-sony-solved-the-discmans-biggest
2•coloneltcb•31m ago•0 comments