git-ai  by git-ai-project

Git extension for tracking AI-generated code across repositories

Created 7 months ago
1,129 stars

Top 33.9% on SourcePulse

GitHubView on GitHub
Project Summary

A Git extension tracking AI-generated code across repositories, git-ai targets developers and teams needing vendor-agnostic visibility into AI's impact. It provides end-to-end lineage for AI-authored code from generation to merged commits, enabling better workflow management and understanding of AI's role in software development.

How It Works

git-ai integrates with AI coding agents (e.g., Cursor, Claude Code, Copilot) to automatically detect and mark AI-generated code. It leverages Git's native notes command to store authorship metadata and commit scores, ensuring these annotations persist through Git operations like rebasing and merging. Prompts can optionally be stored with code, with configurable privacy controls and repository exclusion options.

Quick Start & Requirements

Install via shell script for macOS, Linux, and Windows (WSL): curl -sSL https://usegitai.com/install.sh | bash. For Windows non-WSL environments, use PowerShell: powershell -NoProfile -ExecutionPolicy Bypass -Command "irm http://usegitai.com/install.ps1 | iex". No per-repository setup is needed after initial installation. Standard Git is the primary prerequisite.

Highlighted Details

  • An optional "Stats Bot" (currently in early access) aggregates AI authorship data across pull requests, developers, repositories, and organizations.
  • Features include measuring the percentage of AI-generated code, comparing acceptance rates of AI-authored code, and analyzing "AI-Code Halflife."
  • Supports prompt storage within Git notes, with options to exclude sensitive repositories or all repositories.
  • AI authorship annotations are designed to survive common Git workflows including squash merges, rebases, resets, and cherry-picks.

Maintenance & Community

Early access to the Stats Bot is available by contacting the maintainers. The README does not provide direct links to community channels (e.g., Discord, Slack), a public roadmap, or list specific sponsors or notable contributors.

Licensing & Compatibility

The provided README does not specify the software's license. This omission requires further investigation for compatibility, especially concerning commercial use or integration into closed-source projects.

Limitations & Caveats

The Stats Bot is in "early access." Support for several AI agents (e.g., AWS Kiro, Continue VS Code/IntelliJ, Windsurf, Augment Code) is marked as "in-progress." Support for OpenAI Codex is pending an external issue, and several other agents are listed without a defined support status.

Health Check
Last Commit

15 hours ago

Responsiveness

Inactive

Pull Requests (30d)
144
Issues (30d)
62
Star History
473 stars in the last 30 days

Explore Similar Projects

Starred by Alex Yu Alex Yu(Research Scientist at OpenAI; Cofounder of Luma AI), Will Brown Will Brown(Research Lead at Prime Intellect), and
7 more.

avante.nvim by yetone

0.3%
17k
Neovim plugin emulating Cursor AI IDE for AI-driven code assistance
Created 1 year ago
Updated 2 days ago
Feedback? Help us improve.