agentdiff

agentdiff is an open-source, Rust-based provenance tracking tool designed to establish Git-native attribution for AI-generated code. Created by Prakhar (codeprakhar25), it records which specific AI coding assistant modified or authored each line of code, binding that metadata cryptographically into the repository's native history. In day-to-day operations, agentdiff works alongside local agents and development environments either via CLI commands or as a Model Context Protocol (MCP) server. It captures attributions across leading coding tools including Claude Code, Cursor, GitHub Copilot, Codex, Windsurf, OpenCode, and Gemini. Every line attribution is signed with ed25519 keys, ensuring verifiable and tamper-evident records stored directly in Git. Unlike traditional git-blame or generic CI logging, agentdiff differentiates between human edits and multiple distinct AI agents at the line level. By embedding cryptographic signatures into Git without requiring external database dependencies, teams maintain persistent authorship records across complex multi-agent workflows. agentdiff is open source and dual-licensed under Apache 2.0 and MIT.

Tags: cli, code assistant, codebase, coding agent, developer tools, OpenSource

Visit agentdiff