agentdiff

Line-level record of which AI coding agent wrote which code, kept in git

Image 1 of 1: agentdiff site with an example failing PR check: an unsigned trace and billing code changed without approval

Hooks into Claude Code, Cursor, Codex, Copilot, Windsurf, OpenCode and Gemini to capture each edit's agent, model, lines and prompt excerpt, signs every trace with ed25519 and stores it in refs/agentdiff/* in the repository. agentdiff blame shows per-line authorship; a policy check gates PRs.

Trade-offs

  • Provenance is recorded at authorship time through each agent's hooks and signed, so it is evidence rather than a detector's guess, but only edits made through a hooked agent are captured.
  • Traces live in the repository's own git refs, fetched with a refspec, with no external server. Once pushed, prompt excerpts are readable by anyone with repo access unless prompt capture is turned off.
  • Public keys are registered in the repository at refs/agentdiff/keys/, so agentdiff verify needs no manual key exchange.

Q&A4

agentdiff configure installs capture scripts once per machine: a PostToolUse hook for Claude Code, file-edit hooks for Cursor, a notify hook for Codex, a plugin for OpenCode and a VS Code extension for Copilot. Capture only fires in repos where agentdiff init ran.

Reviews

Loading reviews

    More in Provenance

    See all 7 →
    • Let's SealOpen standard and free network for proving a file is unaltered, dated and issued
    • depguardChecks whether a known npm supply-chain attack reached a machine
    • trustcheckPre-install trust checks for PyPI packages: provenance, publisher, advisories
    • shipcheckEU Cyber Resilience Act auditor for Yocto embedded Linux builds
    • npm Top PublishingDaily tracker of OIDC, provenance and staged publishing across top npm packages
    • AI-BOM ToolkitCLI that turns a CycloneDX AI bill of materials into an interactive graph

    More in AI agents

    See all 99 →
    • HashCortxLocal-first desktop workspace for chat, coding agents and agent teams
    • ZeroboxDeny-by-default process sandbox with per-host secret injection
    • DeftSelf-hosted workspace shared by people and AI agents
    • EntrolyLocal context layer that picks what coding agents send to the model
    • Active GraphEvent-sourced graph runtime for long-running, auditable agents
    • AgenvoySelf-hosted agent harness in one Go binary, running around the clock

    More in Developer tools

    See all 88 →
    • EpuppBrowser extension that opens a live ClojureScript REPL into any web page
    • ResonanceA local-first API client with no account, collections kept as YAML files
    • PandiaDesktop JSON editor for multi-gigabyte files, with the document held in Rust
    • PandaWardLocal application security assessment that reports what it couldn't decide
    • ScalexScala code navigation for coding agents, from source and without a build
    • polyOne Rust binary that lints and formats about 30 languages