HeadlinesBriefing favicon HeadlinesBriefing.com

US Code as Git Repo: Every Law a Commit

Hacker News •
×

A weekend project transformed the entire United States Code into a Git repository, making legal changes as trackable as software updates. The nickvido/us-code repository contains all 54 titles parsed from official XML into structured Markdown, with every section preserving source credits, cross-references, and statutory notes.

Built in just 48 hours after spotting a similar Spanish law project on Hacker News, the team used their autonomous Dark Factory pipeline to process 10 issues across two repositories. The system employs AI agents that work independently through specification, architecture review, security testing, implementation, and adversarial code review. The adversary caught real bugs including ZIP path traversal and cache integrity bypass issues before any human saw the output.

Rather than one file per section or massive title files, the team chose chapter-level granularity — about 3,000 files across 53 titles. This balances context with manageability. The vision extends beyond the current snapshot: future plans include ingesting historical annual snapshots back to 2013 and eventually tracking bills as pull requests through Congress. The irony isn't lost on the creators — law is code, and now it has proper version control with clean diffs showing exactly what changed and why.