United States Code Available as Git Repository with Full Change History

✍️ OpenClawRadar📅 Published: April 7, 2026🔗 Source
United States Code Available as Git Repository with Full Change History
Ad

The United States Code is now available as a Git repository containing every title, chapter, and section of federal law stored as Markdown files. Each commit corresponds to an Office of the Law Revision Counsel (OLRC) release point, providing point-in-time snapshots of federal law from 2013 to present.

Repository Structure and Contents

The repository contains 53 titles of the United States Code with approximately 2,950 chapter-level Markdown files and 60,400 sections with full statutory text. The data is organized in a directory structure like:

uscode/
├── title-01-general-provisions/
│   ├── _title.md
│   ├── chapter-001-rules-of-construction.md
│   └── ...
├── title-02-the-congress/
├── title-03-the-president/
└── ...

Each Markdown file includes YAML frontmatter with metadata (title number, chapter, heading, section count, source URL) and the full statutory text with cross-references, statutory notes, and amendment histories.

Git Commands for Legal Analysis

Developers can use standard Git commands to analyze legal changes:

  • git diff congress/115..congress/116 --stat - See what changed between the 115th and 116th Congress
  • git diff annual/2019..annual/2025 -- uscode/title-18-crimes-and-criminal-procedure/ - Full text diff of Title 18 between 2019 and 2025
  • git log --oneline -- "uscode/title-18-crimes-and-criminal-procedure/chapter-044-firearms.md" - See when a specific section was last modified
  • git diff annual/2013..annual/2025 --stat | tail -1 - Count files changed across the 12-year history
Ad

Tags and Historical Points

The repository includes tags for specific Congress sessions and years:

  • annual/2013 - 113-21 (2013, earliest available OLRC snapshot)
  • congress/113 - 113-296 (2014, end of 113th Congress)
  • annual/2015 - 114-38 (2015)
  • congress/114 - 114-329 (2017, end of 114th Congress)
  • annual/2017 - 115-51 (2017)
  • congress/115 - 115-442 (2019, end of 115th Congress)
  • annual/2019 - 116-91 (2019)
  • congress/116 - 116-344 (2021, end of 116th Congress)
  • annual/2021 - 117-81 (2021)
  • annual/2022 - 117-262 (2022)
  • congress/117 - 117-262 (2022, end of 117th Congress)
  • annual/2024 - 118-158 (2024)
  • congress/118 - 118-158 (2024, end of 118th Congress)
  • annual/2025 - 119-73 (2025, current latest)

Limitations

Coverage starts in 2013 as OLRC XML release points are only available from the 113th Congress onward. The repository contains codified law only (the consolidated United States Code), not individual bills or public laws in directive format. Not all titles are positive law - some titles are "evidence of law" rather than the legal text itself. Appendix titles (5A, 11a, 18a, 28a, 50A) are not yet included, and 6 sections across titles 5, 10, 25, 28, 38, and 40 have duplicate section numbers in the source XML.

📖 Read the full source: HN LLM Tools

Ad

👀 See Also

PocketBot: A Local AI Autopilot for iOS Using App Intents and On-Device Inference
Tools

PocketBot: A Local AI Autopilot for iOS Using App Intents and On-Device Inference

PocketBot is an iOS app that runs a quantized 3B Llama model locally on iPhone's Neural Engine via Metal, using Apple's AppIntents and CoreLocation frameworks to create event-driven automations without cloud data transmission.

OpenClawRadar
Prism MCP v5.1 adds 10x memory compression and agent learning from corrections
Tools

Prism MCP v5.1 adds 10x memory compression and agent learning from corrections

Prism MCP v5.1 introduces 10x memory compression via TurboQuant ported to TypeScript, enabling millions of memories on a laptop without vector databases. The update adds agent learning from user corrections and a visual knowledge graph interface.

OpenClawRadar
Hypura: Storage-tier-aware LLM inference scheduler for Apple Silicon
Tools

Hypura: Storage-tier-aware LLM inference scheduler for Apple Silicon

Hypura is a Rust-based inference scheduler that places model tensors across GPU, RAM, and NVMe tiers to run models exceeding physical memory on Apple Silicon Macs. It enables running a 31GB Mixtral 8x7B on a 32GB Mac Mini at 2.2 tok/s and a 40GB Llama 70B at 0.3 tok/s where vanilla llama.cpp crashes.

OpenClawRadar
Measuring Claude Code MCP Stack: Cache Friendliness vs. Byte Savings, and a 2-Line Fix for Prompt Cache
Tools

Measuring Claude Code MCP Stack: Cache Friendliness vs. Byte Savings, and a 2-Line Fix for Prompt Cache

Greg Shevchenko benchmarks MCP compressors and retrieval layers on two axes: byte savings and cache friendliness. A 2-line fix (sort rg hits, sort map entries) boosts cache from ~0% to 100% with no byte-savings loss. Open-source harness included.

OpenClawRadar