Git AI

Get Started

Git AI is an open source git extension that tracks AI-generated code in your repositories, linking every AI-written line to the agent, model, and transcripts that generated it.

Our Choices

  • No workflow changes — Just prompt and commit. Git AI tracks AI code accurately without cluttering your git history.
  • "Detecting" AI code is an anti-pattern — Git AI does not guess whether a hunk is AI-generated. Supported agents report exactly which lines they wrote, giving you the most accurate attribution possible.
  • Local-first — Works 100% offline, no login required.
  • Git native and open standard — Git AI uses an open standard for tracking AI-generated code with Git Notes.
  • Transcripts stay out of Git — Git Notes link to transcripts stored locally, in the Git AI Cloud, or in a self-hosted prompt store — keeping your repos lean, free of sensitive information, and giving you control over your data.

Install the Extension

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.

Now that Git AI is installed the Coding Agents that support our standard (Cursor, Claude Code, Codex, Copilot, Gemini CLI, OpenCode, Continue, Droid, Junie and Rovo Dev) tell Git AI which lines they generated. On commit, Git AI stores line-level attributions in Git Notes and makes sure AI attribution is properly preserved through every git operation (rewrite, cherry-pick, merge, squash, etc.).

Git AI will start showing the breakdown of AI, Human and Mixed code after every commit:

Supported Coding Agents

Git AI works with all the popular coding agents. Click on any agent below to learn how Git AI integrates with it.

Troubleshooting: If you're not seeing any AI-attributions when you commit, or when you run git-ai blame, visit the guide for the Coding Agent you're trying to use for troubleshooting instructions.

Don't see your favorite Coding Agent? Add support for it by following this guide.


Uninstalling git-ai

  1. Remove the hooks that git-ai installed
git-ai uninstall-hooks
  1. Remove the git-ai binary
Linux/macOS
rm -rf ~/.git-ai
Windows
rmdir /s /q %USERPROFILE%\.git-ai
  1. (optional) Remove the git-ai entry from your shell config
# Added by git-ai installer on Fri Jan 16 10:39:32 EST 2026
export PATH="/Users/aidancunniffe/.git-ai/bin:$PATH"