Global legislation versioned like code to look for loopholes
Claude Code (Opus 5.5) wrote nearly all of a free tool that mirrors 107 law corpora, makes legislation attributable with git-blame-style timelines and searches it for loopholes.
Credits
- Reddit poster SnooPeripherals5313 Source ↗
- Repository account lexifina Source ↗
Earliest dated source:
The full story
Lexifina's global-law project keeps the law of many countries in git, with every commit being one law taking effect, so any provision can be read as it stood on any date along with the law that wrote each word. This addition points Claude at that history to look for loopholes and logical errors in legislation.
Claude Code (Opus 5.5) wrote nearly all of the code, with the maker setting goals, choosing sources and making design decisions. It mirrors the 107 corpora read-only, indexes about 4.3 million file changes into DuckDB and runs a growing set of detectors, combining mechanical checks with model-driven analysis. The findings sit in a vulnerabilities folder in the repository.
The maker accepts that many findings are unenforceable in practice and that the model-driven checks produce false positives, and pitches it as a way to flag mistakes for legislators to fix.
How it was done
Tools
Themes
Loading themes…
Sources
From a short post by the maker, so the details are as they tell them.
- Reddit: Claude to find vulnerabilities in global legislationReddit poster: SnooPeripherals5313Posted
The maker's post in r/ClaudeAI.
- The code: github.comRepository account: lexifina
The findings folder in the global-law repository.