Skip to content

git-ai-project/git-ai

Repository files navigation

Git AI by acunniffe/git-ai

git-ai

Track the AI Code in your repositories

git_ai_commit_blame_and_bot.mov

Quick Start

Mac, Linux, Windows (WSL)

curl -sSL https://usegitai.com/install.sh | bash

Windows (non-WSL)

powershell -NoProfile -ExecutionPolicy Bypass -Command "irm http://usegitai.com/install.ps1 | iex"

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

Image

Just Install and Commit

Build as usual. Just prompt, edit and commit. Git AI will track every line of AI-Code and record the Coding Agent, Model, and prompt that generated it.

Image

How Does it work?

Supported Coding Agents call Git AI and mark the lines they insert as AI-generated.

On commit, Git AI saves the final AI-attributions into a Git Note. These notes power AI-Blame, AI contribution stats, and more. The CLI makes sure these notes are preserved through rebases, merges, squashes, cherry-picks, etc.

Git Tree

The format of the notes is outlined here in the Git AI Standard v3.0.0

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

Agent/IDE Authorship Prompts
Cursor >1.7 βœ… βœ…
Claude Code βœ… βœ…
GitHub Copilot in VSCode via Extension βœ… βœ…
OpenCode βœ… βœ…
Google Gemini CLI βœ… βœ…
Continue CLI βœ… βœ…
Droid CLI (Factory AI) βœ… βœ…
Atlassian RovoDev CLI βœ… βœ…
GitHub Copilot in Jetbrains IDEs (IntelliJ, etc.) (in-review) πŸ”„ πŸ”„
Jetbrains Junie (in-review) πŸ”„ πŸ”„
Amp (in-progress) πŸ”„ πŸ”„
AWS Kiro (in-progress) πŸ”„ πŸ”„
Continue VS Code/IntelliJ (in-progress) πŸ”„ πŸ”„
Windsurf (in-review) πŸ”„ πŸ”„
Augment Code πŸ”„ πŸ”„
OpenAI Codex (waiting on openai/codex #2109)
Ona
Sourcegraph Cody
Google Antigravity

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

Installing the Stats Bot (early access)

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

  • AI authorship breakdown for every Pull Request
  • Measure % of code that is AI generated through the entire SDLC
  • Compare accepted-rate for code written by each Agent + Model.
  • AI-Code Halflife (how durable is the AI code)

Get early access by chatting with the maintainers

alt