Discover and explore top open-source AI tools and projects—updated daily.
cursorStandardizing AI code attribution in version control
New!
Top 54.5% on SourcePulse
Agent Trace is an open specification designed to standardize the tracking and attribution of AI-generated code within version-controlled codebases. It addresses the growing need for clarity on AI contributions versus human authorship, providing a vendor-neutral format for recording this metadata. This benefits developers, researchers, and AI coding agent developers by enabling interoperability and clear provenance tracking.
How It Works
Agent Trace defines a JSON-based data specification for "Trace Records." Each record captures metadata about code contributions, including version control system information (like Git commit SHAs), the tool that generated the trace, and detailed file-level attribution. Attribution is granular, supporting file and line-level tracking through "conversations" that link code ranges to specific AI models (using the models.dev convention) or human contributors. The specification is designed for extensibility via a metadata field and aims for human and AI readability.
Quick Start & Requirements
As Agent Trace is a data specification, it does not have a direct installation or run command. A reference implementation is available in the reference/ directory of the repository, demonstrating integration patterns for coding agents. Requirements for implementing Agent Trace would include a version control system (Git, Jujutsu, Mercurial, SVN) and a mechanism to capture and store the JSON trace records.
Highlighted Details
human, ai, mixed, and unknown.vcs field.murmur3) at the range level to track attribution across code movement.models.dev convention for consistent AI model identification.Maintenance & Community
Agent Trace is currently in RFC (Request for Comments) status as of January 2026, with version 0.1.0. The specification is accepting suggestions on GitHub. Notable partners contributing to its development include Amplitude, Cline, Cloudflare, Cognition, git-ai, Jules, OpenCode, Tapes, and Vercel.
Licensing & Compatibility
This specification is released under the Creative Commons Attribution 4.0 International (CC BY 4.0) license. This license permits broad use, including commercial applications, provided attribution is given.
Limitations & Caveats
Agent Trace is a data specification, not a product, and does not dictate storage mechanisms, which are implementation-defined. It explicitly does not track legal code ownership, copyright, or training data provenance. Handling complex version control scenarios like rebases and merge commits is left to specific implementations, with feedback being sought to influence future spec versions.
2 weeks ago
Inactive
PatrickJS