Show HN:用於追蹤 AI 程式碼與提示的 Git 擴充功能

Show HN:用於追蹤 AI 程式碼與提示的 Git 擴充功能

Hacker News·

Hacker News 上發布了一個新的 Git 擴充功能 git-ai,旨在追蹤儲存庫中的 AI 生成程式碼與提示。該工具目標是在整個開發流程中提供獨立於供應商的程式碼歸屬。

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

To see all available qualifiers, see our documentation.

A Git extension for tracking the AI-generated code in your repos

License

git-ai-project/git-ai

Folders and files

Latest commit

History

Repository files navigation

Image

git-ai

Track the AI Code in your repositories

Quick Start

🎊 That's it! No per-repo setup. Once installed Git AI will work OOTB with any of these Supported Agents:

Image

Documentation https://usegitai.com/docs

Next step: Just code and commit!

Once installed, all your Coding Agents will call Git AI in the background and mark the code they generate AI-authored.

After you commit, git-ai adds a git note to track which lines were AI-authored and scores each commit:

Image

Installing the Stats Bot (early access)

Aggregate git-ai data at the PR, developer, Repository and Organization levels:

Get early access by chatting with the maintainers

Image

Goals of git-ai project

🤖 Track AI code in a Multi-Agent world. Because developers get to choose their tools, engineering teams need a vendor agnostic way to track AI impact in their repos.

🎯 Accurate attribution from Laptop → Pull Request → Merged. Claude Code, Cursor and Copilot cannot track code after generation—Git AI follows it through the entire workflow.

🔄 Support real-world git workflows by making sure AI-Authorship annotations survive a merge --squash, rebase, reset, cherry-pick etc.

🔗 Maintain link between prompts and code - there is valuable context and requirements in team prompts—preserve them alongside code.

🚀 Git-native + Fast - git-ai is built on git plumbing commands. Negligible impact even in large repos (<100ms). Tested in Chromium.

Agent Support

git-ai automatically sets up all supported agent hooks using the git-ai install-hooks command

| your agent here | | |

Building a Coding Agent? Add support for Git AI by following this guide

About

A Git extension for tracking the AI-generated code in your repos

Topics

Resources

License

Contributing

Uh oh!

There was an error while loading. Please reload this page.

Stars

Watchers

Forks

Releases

  78

Contributors

  12

Uh oh!

There was an error while loading. Please reload this page.

Languages

Footer

Footer navigation

Hacker News

相關文章

  1. 用於追蹤AI程式碼的開源Git擴充功能

    3 個月前

  2. Show HN:Git AI 推出 1.0 版本,用於追蹤 AI 生成的程式碼

    5 個月前

  3. 利用 Git 標註 AI 生成的程式碼

    3 個月前

  4. Hacker News 提問:是否有展示 AI 輔助開發的 GitHub 儲存庫?

    4 個月前

  5. Show HN:將系統設計概念對應至 AI 提示,以防止不良程式碼

    4 個月前