**gitwhy:自动记录 AI 生成 Git commit 的意图与来源**

_Capture why AI wrote each commit, stored in Git-notes_

> gitwhy 是一个 Git CLI 工具,通过 post-commit hook 自动捕获 AI 编程工具(如 Claude Code、GitHub Copilot 等)留下的环境变量,记录每个 commit 的生成者、模型、意图和关联工单,无需额外参数即可实现 AI 代码变更的可追溯性。

**来源信息**
- **来源**:Hacker News:AI 热帖
- **分类**:ai-products
- **发布时间**:2026-08-25 10:27(北京时间)
- **原文**:[打开原文](https://github.com/surajsrivastav/gitwhy)