Git AI is an open source git extension that tracks AI-generated code in your repositories.
Once installed, it automatically links every AI-written line to the agent, model, and transcripts that generated it — so you never lose the intent, requirements, and architecture decisions behind your code.
**AI attribution on every commit:**
`git commit`
```
[hooks-doctor 0afe44b2] wsl compat check
2 files changed, 81 insertions(+), 3 deletions(-)
```
`git ai stats`
```
you ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ai
6% mixed 2% 92%
```
**AI Blame shows the model, agent, and session behind every line:**
`git ai blame /src/log_fmt/authorship_log.rs`
```bash
cb832b7 (Aidan Cunniffe 2025-12-13 08:16:29 -0500 133) pub fn execute_diff(
cb832b7 (Aidan Cunniffe 2025-12-13 08:16:29 -0500 134) repo: &Repository,
cb832b7 (Aidan Cunniffe 2025-12-13 08:16:29 -0500 135) spec: DiffSpec,
cb832b7 (Aidan Cunniffe 2025-12-13 08:16:29 -0500 136) format: DiffFormat,
cb832b7 (Aidan Cunniffe 2025-12-13 08:16:29 -0500 137) ) -> Result![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
+ Add an Agent |
| Solo | For Teams |
|---|---|
| - AI Authorship stored in Git Notes, with pointers to transcripts stored in local SQLite - Transcripts only stored locally, on computer - Measure AI authorship across commits with `git-ai stats` | - AI Authorship stored in Git Notes - Pointers to cloud or self-hosted transcript store with built-in access control, secret redaction, and PII filtering - Agents and engineers can read transcripts and summaries for any block of AI-generated code - Advanced cross-agent dashboards to measure AI adoption, code durability, and compare agents across your team **[Click here to get early access](https://calendly.com/d/cxjh-z79-ktm/meeting-with-git-ai-authors)** |
| Supported Editors | |
|---|---|
| - [VS Code](https://marketplace.visualstudio.com/items?itemName=git-ai.git-ai-vscode) - [Cursor](https://marketplace.visualstudio.com/items?itemName=git-ai.git-ai-vscode) - [Windsurf](https://marketplace.visualstudio.com/items?itemName=git-ai.git-ai-vscode) - [Antigravity](https://marketplace.visualstudio.com/items?itemName=git-ai.git-ai-vscode) - [Emacs magit](https://github.com/jwiegley/magit-ai) - *Built support for another editor? [Open a PR](https://github.com/git-ai-project/git-ai/pulls)* |
|