newsence
來源篩選

Show HN: Git Extension for Tracking AI Code and Prompts

Hacker News

A new Git extension, git-ai, has been released on Hacker News, designed to track AI-generated code and prompts within repositories. It aims to provide vendor-agnostic attribution throughout the entire development workflow.

newsence

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

Hacker News
大約 1 個月前

AI 生成摘要

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

GitHub - git-ai-project/git-ai: A Git extension for tracking the AI-generated code in your repos

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