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.

Beyond 80/20: High-Entropy Minority Tokens Drive Effective RL for LLM Reasoning

https://arxiv.org/abs/2506.01939
1•mdp2021•3m ago•0 comments

It is just too much of everything

https://www.respan.ai/market-map
1•sminchev•4m ago•1 comments

A Brief, Incomplete, and Mostly Wrong History of Programming Languages (2009)

http://james-iry.blogspot.com/2009/05/brief-incomplete-and-mostly-wrong.html
2•downbad_•11m ago•1 comments

The Elephant in the Room

https://www.joshwcomeau.com/email/wham-launch-005-elephant-2-p/
1•ameybhavsar•12m ago•0 comments

OpenAI Technical Goals (2016)

https://openai.com/index/openai-technical-goals/
1•chistev•13m ago•1 comments

US orders chip equipment companies to halt some shipments to China #2 chipmaker

https://www.reuters.com/world/china/us-orders-chip-equipment-companies-halt-some-shipments-hua-ho...
1•giuliomagnifico•15m ago•0 comments

The box-tickers shall inherit the Earth

https://spectator.com/article/the-box-tickers-shall-inherit-the-earth/
1•calpaterson•17m ago•0 comments

VS Code now enables Git AI co-authoring by default

https://code.visualstudio.com/updates/v1_118#_copilot-added-as-a-git-coauthor-by-default
1•nh43215rgb•18m ago•0 comments

Inspired

https://daniel.haxx.se/blog/2026/04/30/inspired/
1•TangerineDream•18m ago•0 comments

Near Future of Programming Languages (2017) [pdf]

https://web.archive.org/web/20220325175116/http://dev.stephendiehl.com/nearfuture.pdf
1•tosh•21m ago•0 comments

Why are the Artemis II photos on Flickr?

https://www.anildash.com/2026/04/30/artemis-photos-flickr/
2•Tomte•22m ago•0 comments

AI Slopocalypse 2027

https://www.stephendiehl.com/posts/ai_slop_2027/
1•andsoitis•23m ago•0 comments

Ask HN: Anyone using AI agents for active learning sprints? Here's my setup

1•bhagyeshsp•23m ago•0 comments

Free N8N Workflow Cost Calculator: Cloud vs. Make.com vs. Self-Hosted

https://triumphoid.com/n8n-workflow-cost-calculator/
2•ElizabethSramek•23m ago•0 comments

Renewables and batteries drive down fossil fuel use despite record demand

https://www.abc.net.au/news/2026-04-30/renewables-batteries-drive-down-fossil-fuel-use-/106622772
2•xbmcuser•24m ago•0 comments

The Download: storing nuclear waste and orchestrating agents

https://www.technologyreview.com/2026/04/29/1136666/the-download-nuclear-waste-orchestrated-ai-ag...
1•joozio•24m ago•0 comments

The Kardashev-Marx Scale

https://www.stephendiehl.com/posts/kardeschev/
1•andsoitis•26m ago•0 comments

Why skill match is not enough

https://gudok.xyz/smine/
1•signa11•26m ago•0 comments

Share.google delivers wrong TLS certificate in some regions, breaking shortlinks

https://semonto.com/tools/https-checker
1•micw•27m ago•1 comments

A Field Guide to Bugs

https://www.stephendiehl.com/posts/field_guide_to_bugs/
1•andsoitis•27m ago•0 comments

Ask HN: Why are people leaving GitHub now?

3•l1am0•30m ago•4 comments

Ts-rest – what happens when a 3.3k star OSS project goes dormant

1•e7h4nz•35m ago•0 comments

OWASP PTK 9.9.0 / 9.9.1 is out

1•DenisPodgurskii•44m ago•0 comments

Show HN: RSME:A Reactive Stability Mutation Encryption

https://zenodo.org/records/19712564
1•RanggaS•45m ago•0 comments

A Comparative Security Analysis of Three Cloud-Based Password Managers

https://eprint.iacr.org/2026/058
1•agadius•46m ago•0 comments

Prompt Guidance – GPT-5.5

https://developers.openai.com/api/docs/guides/prompt-guidance
1•amunozo•46m ago•0 comments

RNet: Users pay for their own AI usage instead of apps covering token costs

1•rNetAi•48m ago•0 comments

A Gopher Meets a Crab

https://miren.dev/blog/gopher-meets-crab
1•radimm•55m ago•0 comments

Scott Aaronson on quantum: "Will you heed my warnings NOW?"

https://scottaaronson.blog/?p=9718
20•bwesterb•56m ago•6 comments

I took an algorithm to court in Sweden. The algorithm won

https://www.theguardian.com/commentisfree/2026/apr/30/i-took-an-algorithm-to-court-in-sweden-the-...
5•nickcotter•56m ago•0 comments