frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: acmsg (automated commit message generator)

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

Transcending Temptation Through Abstraction

https://journals.sagepub.com/doi/10.1177/0963721412449169
1•highfrequency•1m ago•0 comments

The Control Plane Was the Point: Revisiting Autofz in the LLM Era

https://yfu.tw/blog/en/autofz-revisited/
1•twleo•1m ago•0 comments

Alleged member of international cyber hacking group Scattered Spider arrested

https://news.sky.com/story/alleged-member-of-international-cyber-hacking-group-scattered-spider-a...
1•austinallegro•2m ago•0 comments

Generative Dynamic Gaussian Reconstruction from Monocular Video

https://research.nvidia.com/labs/amri/projects/world-from-motion/
1•ilreb•2m ago•0 comments

What Did Hubble See on Your Birthday?

https://science.nasa.gov/mission/hubble/multimedia/what-did-hubble-see-on-your-birthday/
1•sohkamyung•15m ago•0 comments

Shader Benchmark for LLMs

https://nbardy.github.io/shader_benchmark/
1•nbardy•25m ago•0 comments

OpenAI proposes handing Trump administration 5% stake

https://www.ft.com/content/7c803eab-8e80-4431-9a87-e943bf00e00b
3•enraged_camel•25m ago•0 comments

SpaceX reportedly working on an AI phone

https://www.theverge.com/science/960442/spacex-phone-prototype-elon-musk
1•mandeepj•28m ago•1 comments

Delivery Optimization for Browser and Software Updates to Minimize Bandwidth

https://inavoyage.blogspot.com/2026/07/delivery-optimization-for-browser.html
1•initramfs•29m ago•0 comments

Kenneth Bulmer

https://en.wikipedia.org/wiki/Kenneth_Bulmer
2•petethomas•30m ago•0 comments

GameBoy Emulator on ESP32 and eInk [video]

https://www.youtube.com/watch?v=oPbOK90aJEo
1•yboris•31m ago•0 comments

Book Prizes Don't Work How You Think

https://rebeccamakkai.substack.com/p/book-prizes-dont-work-how-you-think
1•samclemens•31m ago•0 comments

JavaScript library for rapid AI and XR prototyping

https://github.com/google/xrblocks
1•arbayi•36m ago•0 comments

OpenAI proposes handing Trump administration 5% stake

https://www.reuters.com/business/openai-proposes-handing-trump-administration-5-stake-ft-reports-...
2•tristanj•36m ago•0 comments

Smoothie – compile a folder of data into a cited artifact agents can query

https://github.com/4tyone/smoothie
1•MelsHakobyan•40m ago•1 comments

Web Apps for Meta Ray-Ban Display Glasses

https://wearables.developer.meta.com/docs/develop/webapps/build/
2•arbayi•41m ago•0 comments

I hacked this temu camera. what I found should be illegal. [video][8 mins]

https://www.youtube.com/watch?v=RuqQR_R-dEQ
2•Bender•42m ago•0 comments

Show HN: Claude Desktop Switcher for separating the whole Claude Desktop suite

https://matsumotory.github.io/claude-desktop-switcher/
2•matsumotory•43m ago•0 comments

Kimi K2.7 Code is generally available in GitHub Copilot

https://github.blog/changelog/2026-07-01-kimi-k2-7-is-now-available-in-github-copilot/
4•unliftedq•44m ago•0 comments

Show HN: Margarita - Programming language for Agents using Markdown-ish syntax

https://www.margarita.run
2•margarita_dev•45m ago•0 comments

US reportedly mulls pulling troops from Saudi Arabia as ties sour over Iran war

https://www.timesofisrael.com/us-reportedly-mulls-pulling-troops-from-saudi-arabia-as-ties-sour-o...
1•koolhead17•48m ago•0 comments

Herdr: One terminal to rule them all

https://herdr.dev/
1•handfuloflight•48m ago•0 comments

Microsoft/Flint-Chart

https://github.com/microsoft/flint-chart
1•geoffbp•49m ago•0 comments

Society of Saint Pius X

https://en.wikipedia.org/wiki/Society_of_Saint_Pius_X
2•febed•50m ago•0 comments

Can solar and wind and batteries provide 24/7/365 electricity?

https://unpopular-truth.com/2026/06/19/can-solar-and-wind-batteries-really-provide-24-7-365-elect...
2•dpraburaj•50m ago•0 comments

Show HN: A complete AI agency at your fingertips

https://github.com/msitarzewski/agency-agents
1•adithyaharish•53m ago•0 comments

Chemurgy

https://en.wikipedia.org/wiki/Chemurgy
2•petethomas•54m ago•0 comments

State of X402 – Independent Audit – Every Faciliator, Every Chain

https://x402stats.io
1•pro_methe5•55m ago•0 comments

Zig - All Package Management Functionality Moved from Compiler to Build System

https://ziglang.org/devlog/2026/?2026-06-30#2026-06-30
3•Retro_Dev•57m ago•0 comments

Ask HN: What are you building first with Fable?

4•akashwadhwani35•1h ago•2 comments