惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
美团技术团队
Microsoft Security Blog
Microsoft Security Blog
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
G
Google Developers Blog
博客园 - 聂微东
爱范儿
爱范儿
博客园 - 叶小钗
J
Java Code Geeks
月光博客
月光博客
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
The Cloudflare Blog
宝玉的分享
宝玉的分享
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
The GitHub Blog
The GitHub Blog
小众软件
小众软件
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Vercel News
Vercel News
Y
Y Combinator Blog
量子位

HN's home page

Rainbow Query Language | Hacker News Exec into Node via Kubectl An AI native hedge fund The Seven-Action Documentation Model | Hacker News Package Manager for Kubectl Plugins Tongan Castaways | Hacker News Tech overlords plan for conscious AI to conquer the cosmos. What could go wrong? Data Breach Disclosure Lag Is Getting Worse How LLMs Work | Hacker News I Dropped PRDs for Shape Up Go Experiments Explained | Hacker News FCA's Palantir deal could expose UK financial data to Trump's US, critics fear WebXR BCI for Neural-Adaptive Avatar Control in Mixed Reality The first murder conviction via DNA analysis Tom Interviews Theo de Raadt of the OpenBSD Project (2019) [video] Show HN: Replace shell commands with bun shell typescript scripts Quay.io Is Down | Hacker News AI driven analysis of brokerage account fees in the UK Bill Gates Spent Years Crafting His Image. Now It's Cracking Using LLMs to secure source code Wi-Fi 8 in the Lab [video] The household battery revolution that could change energy bills and the world Is Python Becoming Pinyin? | Hacker News Livia – Executive Assistant | Hacker News FindMyPipe – Query Apple Find My from Linux for AI Agents Show HN: Agent skill for creating product launch videos with Remotion RecruitMyself – AI job search copilot for resumes and applications AI coding agents and the erosion of system understanding The 'Resting' Generation and South Korea's Youth Recession AMD Computex 2026: 10 Years of AM4, AM5 Support Through 2029
AI-generated Git commits with diff compression pipeline
dogbless · 2026-06-24 · via HN's home page
AI-generated Git commits with diff compression pipeline (github.com/bens-03)
1 point by dogbless 2 minutes ago | hide | past | favorite | 1 comment
 help


I have just published my first CLI, and I am excited to share it because I believe it solves a problem ubiquitous to all developers. Writing commit messages is not hard, but it does take time. I have created a CLI that handles committing and pushing via a single command. commait reads your staged diff, sends it to an AI provider of your choice (OpenAI or Anthropic), and generates a clean commit message. You can configure it to stage, commit, and push all in one go without prompting, or keep it interactive and prompt for approval before anything happens. The part I'm most proud of is the enforceable token budget. When the diff exceeds the user-defined token budget, commait runs the diff through a compression pipeline first, stripping unchanged context lines, removing git headers, stripping noise files, and trimming less information-dense files. In my testing, your diff has to be extremely large or your token budget extremely small for the compression to fail to reduce the diff below the budget. It's fully configurable, supports model switching without touching any code, and has automatic provider fallback as well. As far as alternatives, I found one (commitai on npm). It is a much simpler CLI with much less functionality. Essentially just generating a message based on your diff, and that's it. If you have ever committed with a 4-word commit message at 2 am, you should give it a try :) https://www.npmjs.com/package/commait-cli https://github.com/benS-03/commait


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact