Git AI

Get Started

Git AI is an open source git extension that tracks which lines were generated by AI using git notes. Once installed you just work the way you normally would -- Git AI does the rest.

About Git AI

Git AI is Open Source, Git Native, has an open standard, and can be used with any Coding Agent.

  • 🤝 Multi-agent, no vendor lock-in. Most teams use a combination of AI agents -- they all work well with Git AI letting you own your own usage + prompt data.
  • 💻 Install per-machine, not per-repo. Individual developers can start using it even if their teammates do not.
  • ✈️ Work offline w/o any API Keys
  • 🔗 Save prompts from each Coding Agent in a standard format with links to the code they generated
  • 🤮 No background daemon, keyloggers or filewatchers.
  • 🎯 Avoids heuristics (no "guessing" if a hunk is AI-code). Git AI thinks Coding Agents mark the code they contribute as AI generated. After that, Git AI is responsible for tracking that code through git workflows, all the way to production. "Detecting AI-code" is an anti-pattern.

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, Copilot, Gemini CLI, OpenCode and Continue) 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.