Git for the US Code: A Versioned Prototype for Federal Statutes
“Git for the US Code” is a proposed version-controlled legal research system that tracks the authorship, wording, and historical revisions of federal statutory lines. The prototype reconstructs historical US Code release points by applying enacted public laws in date order; in tests across nine titles, 361 of 365 changes reproduced the next release point exactly. The project also records amendment and effective dates, but does not yet show a later law’s retroactive reach and requires manual interpretation for unusual effective-date wording.
The system could give legal researchers and language models a checkable record of statutory lineage, addressing cited failures in legal AI where models apply superseded rules or ignore the version of a law that governs a case.
A programmer can point at any line of code and see who wrote it, when, and what the file looked like on any past day. A lawyer reading a federal statute usually cannot, at least not without an afternoon in the notes at the foot of the section. But why shouldn't they have the same, convenient system of record? It is especially relevant given that so much first-pass legal research now runs through language models, which are often unable to utilise the proper lineage of a law, handcuffing its ability to offer interpretation.
Outside the titles Congress has enacted as positive law, the code is only prima facie evidence of the law, and the Statutes at Large govern where the two differ.[1] The Office of the Law Revision Counsel publishes it as a series of release points, each current through a named public law, and keeps reorganising it; a bill to enact title 41 as positive law was introduced in September 2025.[2] Which public law wrote a sentence is recorded in amendment notes, in prose. When a change took effect is often in a separate effective-date note, and where Congress said nothing the default rule is that a law takes effect on the day it is enacted.[3]
#Git for the US Code#Office of the Law Revision Counsel#Technical University of Munich