Claude Code session

Agentdiff

Git-native AI code provenance: records which AI agent wrote which line, signs each attribution with ed25519, stores it in your git history. Cross-agent (Claude Code, Cursor, Copilot, Codex, Windsurf, OpenCode, Gemini).

47 stars 4 forksSessions & history Source

Install

From source
git clone https://github.com/codeprakhar25/agentdiff.git

From the README

agentdiff — Know What Every AI Agent Wrote

  Git-native AI code provenance. Records which AI agent wrote which line, signs each attribution with ed25519, and stores it in your own git history — across Claude Code, Cursor, Copilot, Codex, Windsurf, OpenCode, and Gemini.

agentdiff is an open-source, git-native AI code provenance tool. It hooks into every major AI coding agent — Claude Code, Cursor, Codex, Copilot, Windsurf, OpenCode, Gemini — and writes a permanent, commit-scoped attribution record to your repository. Each record captures the agent name, model, prompt excerpt, and exact line ranges, signed with ed25519. All of it queryable from the CLI, no server required.

Watch the launch demo to see the attribution workflow end-to-end. Full guide: AI code provenance.

Where agentdiff fits

"AI code provenance" gets confused with adjacent tools that answer different questions. agentdiff is the source-line authorship layer — it records which agent wrote which line, as signed evidence. The others stack with it rather than compete:

Provenance is recorded at authorship time and signed, so it is durable evidence — not a post-hoc estimate. See AI code provenance tools for the full category map.

Install

Requirements: Python 3.7+ on PATH, Git 2.20+, Rust 1.85+ (installed automatically if missing)

Other install methods

Quick Start

That's it. From here every commit is attributed to whichever agent (or human) wrote it.
Note: agentdiff configure installs capture scripts globally, but capture only fires in repos where agentdiff init has been run (the .git/agentdiff/ directory must exist). Running configure on its own does not track any repo — you must also run agentdiff init inside each repo you want to track.
AGENTS.md: agentdiff configure also writes (or updates) an ##…
Read the full README on GitHub

Details

Language
Rust
License
Apache-2.0
Last updated
8 June 2026
Topics
ai-codeai-code-attributionai-code-provenanceai-governanceaibomattributionclaude-codecode-provenancecopilotcursordeveloper-toolsdevsecops

FAQ

What is Agentdiff?

Git-native AI code provenance: records which AI agent wrote which line, signs each attribution with ed25519, stores it in your git history. Cross-agent (Claude Code, Cursor, Copilot, Codex, Windsurf, OpenCode, Gemini). It is a session for Claude Code, from codeprakhar25/agentdiff on GitHub.

How do I install Agentdiff?

Clone codeprakhar25/agentdiff from GitHub and follow the setup steps in its README.

Is Agentdiff popular?

codeprakhar25/agentdiff has 47 GitHub stars and 4 forks. It was last updated on 8 June 2026.

More sessions & history

Browse the most popular Claude Code mods, all sessions & history, or the skills and MCP server directories.