
🤖 Would you know what percentage of code in a Pull Request was AI-generated?
This project builds on git-ai and refined-github to show directly in GitHub’s interface exactly which lines of code were written by an AI, the model used, and even the original prompt.
🔧 Key pieces:
git-ai(Rust): tracks AI contributions line-by-line within Git commits. Works with Claude Code, Cursor, Copilot, and more. Survivesmerge --squash,rebase, andcherry-pick.refined-github-ai-pr: a browser extension that shows AI annotations directly in GitHub’s Pull Request interface.
💡 What’s it useful for?
- 📊 View the AI percentage in each PR as a quality metric
- 🔍 Retroactively track what was AI-generated months ago
- ⚖️ Configure AI usage policies per project
🔗 The solution is vendor-agnostic: works regardless of which AI tool each developer uses.
💡 Explanation in a nutshell#
Imagine git blame but instead of telling you who wrote each line, it tells you whether it was written by a human or an AI (and which one). This extension does exactly that, visible directly in GitHub’s Pull Requests, so reviewers can know where each part of the code comes from.
More information at the link 👇
Also published on LinkedIn.

