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 | bashWindows (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.

Cursor
✓ Agent ✗ CLI

Claude Code
✓ Fully Supported

Codex
✓ Fully Supported

GitHub Copilot
✓ VS Code ✗ JetBrains

Gemini CLI
✓ CLI

OpenCode
✓ Fully Supported

Continue
✓ CLI ✗ IDE

Droid
✓ Fully Supported

Junie
✓ Fully Supported

Rovo Dev
✓ Fully Supported
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
- Remove the hooks that
git-aiinstalled
git-ai uninstall-hooks- Remove the
git-aibinary
rm -rf ~/.git-airmdir /s /q %USERPROFILE%\.git-ai- (optional) Remove the
git-aientry 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"