Git AI - Track AI Code all the way to production

1 min read Original article ↗

An open-source Git extension for tracking AI code through the entire SDLC.

Tracking Code by

$  git commit -a -m "Any commit"

Commit normally with Git. No workflow changesNo workflow changes

Just Install and Commit

Build as usual. Prompt, edit, commit. Git AI tracks the AI tool, model and prompt that generated every line of AI-code that enters your codebase.

Install (Mac, Linux, Windows)

How it works

Coding Agents call the Git AI CLI to mark the lines they generated. On Commit, the AI-attributions get saved into a Git Note and are accurately tracked through rebases, merges, cherry-picks, etc by Git AI.

Git Note (refs/notes/ai #<commitsha>)AI Blame

Git AI maintains the open standard for tracking AI authorship in Git Notes. Learn more on GitHub

AI Blame

Codebases are growing faster than ever, but massive AI-generated codebases are challenging to maintain. Git AI links each line of code to the prompt that generated it, helping you answer the question "why is this like that?" and giving Agents more context about what your code is trying to do.

$  git-ai blame src/main.rs

AI Agents + Models show up in Git AI blameAI in Git blame

Get Started