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

Did industrial policy drive East Asian growth?

https://www.richardhanania.com/p/human-capital-not-industrial-policy
1•paulpauper•33s ago•0 comments

Stop Multitasking at Work: Better Productivity Methods

https://burkerecruiting.com/stop-multitasking-at-work-better-productivity-methods/
1•takenotes•1m ago•0 comments

PromptForge: A visual prompt management system for AI image generation

https://github.com/intelligencedev/PromptForge
1•doener•2m ago•0 comments

My new fave thing to go to is algoraves

https://interconnected.org/home/2025/12/11/live
1•ingve•2m ago•0 comments

Foundations: My 1999 (and Part of 2000)

https://michaeljburry.substack.com/p/foundations-my-1999-and-part-of-2000
1•lawrenceyan•7m ago•0 comments

My Code Editor

https://www.mariasolos.com/posts/my-code-editor/
1•jesperlang•7m ago•0 comments

Show HN: Gotui – a modern Go terminal dashboard library

https://github.com/metaspartan/gotui
2•carsenk•8m ago•0 comments

Hundreds quarantined as measles outbreak accelerates in the South

https://www.dailymail.co.uk/health/article-15375729/Hundreds-quarantined-measles-outbreak-acceler...
3•Bender•8m ago•0 comments

Hundreds Quarantined in South Carolina as Measles Spreads

https://www.nytimes.com/2025/12/11/well/measles-cases-outbreak-south-carolina.html
2•measurablefunc•8m ago•0 comments

Compound Engineering: How Every Codes with Agents

https://every.to/chain-of-thought/compound-engineering-how-every-codes-with-agents
1•mooreds•8m ago•0 comments

Microsoft Patches 57 Vulnerabilities, Three Zero-Days

https://www.securityweek.com/microsoft-patches-57-vulnerabilities-three-zero-days/
1•Bender•9m ago•0 comments

Show HN: XeraSentry – Real-time Ethereum security monitoring in Python

1•Chu_Wong•9m ago•0 comments

Gogs Git service zero-day exploited since Dec. 1

https://www.scworld.com/news/gogs-git-service-exploited-since-dec-1
1•Bender•9m ago•0 comments

OWASP PTK 9.3.0 with Support

1•DenisPodgurskii•9m ago•0 comments

Malicious VSCode Marketplace extensions hid trojan in fake PNG file

https://www.bleepingcomputer.com/news/security/malicious-vscode-marketplace-extensions-hid-trojan...
3•speckx•13m ago•0 comments

Higher Ed's Dirtiest Secret

https://hollisrobbinsanecdotal.substack.com/p/teaching-quality
1•HR01•15m ago•1 comments

AI defense booms in UK and Germany as new wave of billion-dollar startups emerge

https://www.cnbc.com/2025/12/11/ai-defense-boom-in-uk-and-germany-as-new-wave-of-companies-emerge...
4•1659447091•15m ago•0 comments

Show HN: XeraSentry – Real-time Ethereum security monitoring in Python

https://lavender-clarette-17.tiiny.site
1•Chu_Wong•15m ago•0 comments

Globalfoundries receives 495M euros for foundry expansion

https://www.heise.de/en/news/Globalfoundries-receives-495-million-euros-for-foundry-expansion-111...
1•i-con•16m ago•0 comments

Zotero: Retracted item notifications with Retraction Watch integration

https://www.zotero.org/blog/retracted-item-notifications/
2•vogu66•16m ago•0 comments

Crypto mogul Do Kwon set for sentencing as victims tell of $40B stablecoin crash

https://apnews.com/article/do-kwon-terraform-court-montenegro-crypto-king-0df8b30b5f3cff2954f0a08...
2•rawgabbit•16m ago•1 comments

Dexter: An autonomous agent for deep financial research

https://github.com/virattt/dexter
1•birriel•18m ago•0 comments

Show HN: Amplift – AI agent for influencer marketing, GEO, and social listening

https://amplift.ai/
1•dora_wu•20m ago•0 comments

Show HN: Chrome Ext. for downloading HTTP responses for mocking APIs

https://mockaton.com/scraping
1•efortis•24m ago•0 comments

pg_clickhouse – PostgreSQL extension to run your analytics queries on ClickHouse

https://clickhouse.com/blog/introducing-pg_clickhouse
2•samaysharma•26m ago•0 comments

Denial of service and source code exposure in React Server Components

https://react.dev/blog/2025/12/11/denial-of-service-and-source-code-exposure-in-react-server-comp...
19•sangeeth96•26m ago•2 comments

Show HN: Flywheel Feedback – Free feedback for projects that get 0 comments

https://www.flywheelfeedback.com/
1•chux52•26m ago•0 comments

UC Berkeley professor used secret camera to catch PhD student sabotaging rival

https://www.msn.com/en-us/news/other/uc-berkeley-phd-student-facing-felony-charges-over-46k-in-in...
3•ilamont•26m ago•1 comments

Google faces EU antitrust investigation over AI Overviews, YouTube

https://uk.news.yahoo.com/eu-launches-antitrust-probe-googles-081212770.html
2•gmays•27m ago•0 comments

My Favorite Principle

https://codestyleandtaste.com/my-favorite-principle.html
1•thunderbong•27m ago•0 comments