a bunch of blue wires connected to each other

Imagine if you could track a change in federal law the same way a developer tracks a bug in a codebase. No more digging through dense PDFs or archaic government portals to figure out exactly which sentence changed in a 500-page bill. For a growing community of civic tech enthusiasts, this isn't a dream—it's a Git repository.

Law as Code

Several projects, including those by Nick Vido and CourtGPT, are transforming the United States Code from static text into machine-readable formats like Markdown and JSON. By treating the law as a codebase, these developers are applying the gold standard of software engineering—version control—to the legal system. Instead of just seeing the current law, users can use git diff to see exactly what was added, deleted, or modified between enactments.

Blame the Law

In the world of Git, git blame tells you exactly who changed a line of code and when. When applied to the US Code, this becomes a powerful tool for legislative transparency. Projects like the US Code Tracker allow researchers to run git log --follow on a specific section of law, revealing its entire evolutionary history and linking changes directly to Public Laws. By sourcing data from the official Office of the Law Revision Counsel (OLRC), these tools turn the nation's statutes into a queryable, transparent history.

While these repositories are currently community-led experiments, they provide a blueprint for how governments could modernize. If the law becomes a living, version-controlled document, the gap between legislation and public understanding might finally start to close.

Sources

Media