2026-11-26 15:40 UTC

Lexifina publishes Git-based legal timeline with MCP tools

state: significantheat: lowuncertainty: mediumrelevance: highlegal-data version-control agent-retrievalLexifina

What is this?

Lexifina’s global-law is a published GitHub project that combines jurisdiction-specific legal corpora into a Git timeline ordered by laws’ in-force dates, with command-line tools and a local, read-only MCP server for retrieving and comparing legal text over time. The project repository is CC0, but the legal text remains under the terms of each country’s source repository. Its README says coverage and historical depth vary substantially: some corpora cover broad statute books, others only samples or current law, and gaps can mean either missing coverage or no applicable provision. Lexifina’s Reddit posts say Claude Code helped build it; that account is not independently verified in the supplied evidence. The project is available now, but the supplied sources do not establish its legal accuracy or maintenance record.

Why it matters

The Git timeline and MCP interface still offer a useful way to query legal text by date, but uneven corpus coverage limits how reliably that promise applies across jurisdictions.

Current assessment

Lexifina has published global-law, a CC0 Git-based project organizing legal corpora by jurisdiction and effective date, with command-line tools and a local, read-only MCP server for querying law over time. The legal texts remain subject to the terms of their source repositories. The project is available now, but its documentation acknowledges substantial variation in coverage and historical depth; a user report of major omissions in Austria, alongside discussion of missing case law, regulations, and related materials, illustrates the limits. Legal accuracy, completeness, update cadence, adoption, and fitness for legal advice remain unestablished. A newer, popular Hacker News discussion titled “Formalizing US Tax Code (Using Lean)” appears to concern a separate effort; no evidence provided establishes a connection to Lexifina or a working result. Engagement on this case is currently low and far below its peak.

Measured heat

now 0 pts/hpeak 35 pts/hcomments 0/hpeers p10momentum: steady3 platformsage 667h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

10-29 20:28 (minted)⭐ origin echo-reconstructedThe repository describes a Git-based collection of legal corpora arranged by jurisdiction and effective date, with tools and an MCP server f
Lexifina project maintainers on github (echo) · attributed from reddit.post.1xiv58m · published time unknown
—
10-29 20:24first on r/LocalLLaMA · published · lag ?Git for Global Law: Global Law querable in Git
SnooPeripherals5313
—
10-29 23:00first on r/ClaudeAI · published · lag ?Using Claude to put all Global Law into Git
SnooPeripherals5313
—
11-06 22:54first on hacker news · published · lag ?Git for Global Law
alansaber
—
10-29 20:24amplified on r/LocalLLaMAreddit.post.1xiv58m
SnooPeripherals5313
peak 18 · 4 comments · 2% of case engagement
10-29 23:00amplified on r/ClaudeAI 👑reddit.post.1xiz1vy
SnooPeripherals5313
peak 798 · 73 comments · 64% of case engagement
11-06 22:54amplified on hacker newshn.story.50399602
alansaber
peak 1 · 0 comments · 0% of case engagement
11-08 23:13amplified on hacker newshn.story.50418651
alansaber
peak 1 · 0 comments · 0% of case engagement
11-11 08:22amplified on hacker newshn.story.50450933
adunk
peak 7 · 1 comments · 1% of case engagement
11-14 15:41amplified on hacker newshn.story.50497900
dnw
peak 155 · 106 comments · 34% of case engagement
10-29 20:25our radar first saw it · lag ?discovery anchor: reddit.post.1xiv58m—
pace: p94 vs 1845 stories at the 336h mark (now 667h old) — ahead of codex-banked-reset-redemption-threshold (1.0x), behind http2shell-rce-claim (1.0x)

Evidence (7) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟠 redditGit for Global Law: Global Law querable in Git
LocalLLaMA
Retrieved article excerpt

Open article · Retrieved 2026-10-29T20:28:20.140640+00:00

# Git for Global Law

**The world's law in one git history. Every word traced to the law that wrote it for any country and any date.**

An expansion of the same for the US Code, [#1 on Hacker News (28/10/26)](https://news.ycombinator.com/item?id=50268380).
Semantic, searchable law on a global scale.

us-code-tools-film-v3.mp4

[
](https://private-user-images.githubusercontent.com/67372285/688227046-f24f3411-24d9-416a-8c45-9cebc817c64e.mp4?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTMzMDU5OTksIm5iZiI6MTc5MzMwNTY5OSwicGF0aCI6Ii82NzM3MjI4NS82ODgyMjcwNDYtZjI0ZjM0MTEtMjRkOS00MTZhLThjNDUtOWNlYmM4MTdjNjRlLm1wND9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjEwMjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMDI5VDIwMjgxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRiZDhlNzVhOWZjNzhjYTgxYzhjNzk5MGIxMmFlNzFmM2M2MDJhZmRiZjc1N2Y4YWE2YmQxNWFiYzFkY2YwYjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT12aWRlbyUyRm1wNCJ9.NE5mU7UkPQYI1yfeXZ0BYYtdD7UEI1oNNFiiwJUoMFM)

**Free to use: [CC0](https://github.com/lexifina/global-law/blob/main/LICENSE.md).** Fork it, build on it, ship it in a product: no permission or credit needed. The law text
sits in each country's repository, under that repository's own terms.

The law of many jurisdictions as one git history. Each jurisdiction's law is its own repository, where every commit
is one law taking effect, written by that law. This repository arranges those repositories by jurisdiction and
interleaves their histories in the order the changes took force, so a single commit here is the state of all of them on
one day.

```
global-law/
├── manifest.json            every corpus: path, source repo, coverage, which trailer holds the in-force date
├── jurisdiction.json        the world, and its children: 193 UN members, other territories with their own ISO code, and the EU
├── germany/                 Germany (ISO code DE in its jurisdiction.json)
│   ├── SOURCES.md           where German law can be read, with what each source offers
│   └── bund/                federal law
│       └── acts/            submodule: the Grundgesetz since 1949 (grundgesetz/), every other federal act since 2019
├── estonia/                 Estonia
│   └── national/acts/       submodule: Estonia's law history, from its corpus.json
├── france/                  France: jurisdiction.json and SOURCES.md, no history yet
└── …                        every other country, the same way
```

Each country's law lives in its own repository, `lexifina/<country>-law`, which says where it belongs here in a
`corpus.json` at its root. A country whose repository still holds only its sources (no law yet) has a folder with its
`jurisdiction.json` and `SOURCES.md`, and no submodule: only real law is pinned. Laws adopted but not yet in force stay
on each corpus's future branch; `main` here holds only what is in force by the build date.

Corpora differ widely in reach. Some hold a country's whole statute book (Czechia, Spain, Switzerland, Georgia, Malta);
others hold a few acts, or a sample: the US corpus is nine titles of the United States Code, and the UK corpus is the
special educational needs law. `manifest.json` gives each corpus's `coverage`, and `history` says how its past is known:
`in-force` (dated official versions), `replayed` (rebuilt by applying each amending act; its `verification` says which
dates were checked) or `current-only` (today's text only).

## Using it from an AI model (MCP)

`tools/mcp_server.py` is a Model Context Protocol server for this tree. It lets Claude or any other MCP client ask the
law what it said on a date, and every answer states where its record starts and ends. It uses only Python 3.10+ and
git, runs on your machine over stdio, reads the repository and changes nothing. It makes no network calls.

```
git clone --recurse-submodules https://github.com/lexifina/global-law && cd global-law
claude mcp add global-law -- python tools/mcp_server.py      # Claude Code; or approve the project's .mcp.json
```

For other clients (Claude Desktop, Cursor and the like), add this to their MCP settings:

```
{ "mcpServers": { "global-law": { "command": "python", "args": ["/path/to/global-law/tools/mcp_server.py"] } } }
```

Then ask in plain words, for example:

- "What did 11 U.S.C. §1182(1) say on 1 May 2022, and which law last changed it?"
- "A case was commenced on 2022-05-01 under §1182. Which text applies, period by period?"
- "Is the text of s. 42 Children and Families Act 2014 that the Court of Appeal applied in 2020 still in force?"
- "Which provisions rely on 11 U.S.C. §1182, and which judgments does the record hold for it?"
- "Check every citation in this brief against the law in force today."

It has 18 read-only tools, three prompts and a resource template. The tools cover finding a provision, reading it on a
date, who wrote each word, comparing dates, a provision's history, the laws between two dates, searching the text and
the change notes, when words entered or left the law, what else a change affects, checking precedent, resolving the
citations in a brief, and which text applies to a case. Old paths with ISO country codes (`us/federal/usc/...`, `de`)
are still read. MCP.md has the full tool list, the protocol versions, the security measures and how it compares with
other law MCP servers. The tests are `python -m unittest tests.test_mcp`.

## How it is built

- The first commit, dated 1 January 1970, holds the jurisdiction tree and the list of corpora, and no law.
- Every later commit moves exactly one corpus to its next commit. Its author is the law, as in the corpus, and its
  trailers name the corpus, the corpus commit, the law and the in-force date.
- The order is the in-force date, keeping each corpus's own order.
- The last commit adds this README, the tools and the tests.
- The build is deterministic. When a corpus is rebuilt, for example after a correction, this repository is rebuilt from
  scratch and force-pushed.

## Dates

Git cannot store dates before 1970, so changes to the Grundgesetz that took effect earlier carry 1970 commit dates, one
second apart, in the right order. The `In-force` trailer is authoritative and the tools use it, so
`law.py show 1956-03-19 …` works.

## What it does not show

- Each corpus covers only what its README says. A file missing on a date can mean the provision was not yet in force or
  that the corpus does not reach that far back.
- A later law that reaches back to earlier dates (retroactive application) is recorded in the corpus's commit messages
  but does not change the text shown on those earlier dates.
- `git blame` works by line, so a line changed in part is credited to the last law that touched it. `law.py words`
  credits each word instead, by comparing each version with the one before; text rewritten in place is credited to
  the law that rewrote it, even where a few of its words are the same as before.

## Visualisation suite

[How long each country's law waits between adoption and entry into force, one distribution per jurisdiction](https://github.com/lexifina/global-law/blob/main/visualisations/the-shape-of-waiting.png)

[See all global law cohort visualisations and bridges here](https://github.com/lexifina/global-law/blob/main/visualisations)

## Reading it

```
git clone https://github.com/lexifina/global-law && cd global-law
git submodule update --init

python tools/law.py world 2022-05-01                       what every corpus looked like that day
python tools/law.py show 2022-05-01 united-states/federal/usc/title-11/1182.md
python tools/law.py blame 2022-07-01 united-states/federal/usc/title-11/1182.md
python tools/law.py words 2022-07-01 united-states/federal/usc/title-11/1182.md
python tools/law.py diff 2022-05-01 2022-07-01 united-states/federal/usc/title-11/1182.md
python tools/law.py laws 1990-01-01 1990-12-31 germany
```

Dates must be written YYYY-MM-DD. When a date falls before a record starts or after it ends, the tools say so on
stderr, because each country's record covers a different period (see `record_to` in `manifest.json`).

Plain git works too, with care:

- `git log --first-parent` is a world chronology of laws taking effect.
- `git grep --recurse-submodules <term> <commit>` searches all the law in force at that moment, in every country.
- `git diff --submodule=diff <commit> <commit>` shows every change in every country between two moments.
- Inside a corpus, `git blame` names the law that wrote each line, and `git log -p --word-diff -- <file>` shows each
  law's change word by word, which matters where a line is a whole paragraph. Blame and log do not cross from here
  into a corpus: run them in the corpus folder, or use `law.py`.
- To look around an older moment, use a separate worktree, not `git checkout` here:
  `git worktree add ../then <commit> && cd ../then && git submodule update --init`. Checking out an old commit here
  leaves the folders of corpora that did not exist yet, and the tools, which live in the last commit, disappear.
- Git cannot store dates before 1970, so `git log --before=1960-01-01` gives a wrong answer without saying so. The
  tools read the `In-force` trailer instead.
- Each corpus's own tags are copied here under its path, for example `germany/bund/acts/gg/36`.
- After a corpus is rebuilt (its maintainers force-push), run `git submodule update --init` and, inside that corpus,
  `git fetch --force --tags`: a plain fetch keeps old tags with the same names.
- The most amended provisions of a corpus: inside its folder, `git log --format= --name-only | sort | uniq -c | sort -rn | head`.

## Tests

```
python -m unittest discover -s tests -v
```

The 48 tests check the jurisdiction tree and the timeline, known readings in each country, and that the answers here
agree with each corpus read with its own tools. REPRODUCE.md lists them, with the exact build and a hash-for-hash
rebuild check.

## How it was made

`tools/build.py` builds this repository from the published corpus repositories, deterministically. REPRODUCE.md
records the command, the software, the commits pinned, the decisions made by hand and what an AI model did and did
not do.

## Videos

global-law-film-3-showcase-v3-readme.mp4

[
](https://private-user-images.githubusercontent.com/67372285/688227125-6020acb1-53f3-4b65-94a4-fe132b867358.mp4?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTMzMDU5OTksIm5iZiI6MTc5MzMwNTY5OSwicGF0aCI6Ii82NzM3MjI4NS82ODgyMjcxMjUtNjAyMGFjYjEtNTNmMy00YjY1LTk0YTQtZmUxMzJiODY3MzU4Lm1wND9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjEwMjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMDI5VDIwMjgxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA1ZDdhMTBmMzU5YjAxZWFiMzk5YmE5OGRlZjQ0Nzk3OTAzMzhlNmM1YjdiMzMyNjNiZDdhYmRiNTAwYWVjOWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT12aWRlbyUyRm1wNCJ9.fnjMbxUYAezSfRnUhqPD1JWQJ_ZPWhTycKwygPxYvNM)





global-law-film-2-country-readers-v2-readme.mp4

[
](https://private-user-images.githubusercontent.com/67372285/688227093-3e3076d7-cfb4-4e0a-8552-2926a630fc8e.mp4?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTMzMDU5OTksIm5iZiI6MTc5MzMwNTY5OSwicGF0aCI6Ii82NzM3MjI4NS82ODgyMjcwOTMtM2UzMDc2ZDctY2ZiNC00ZTBhLTg1NTItMjkyNmE2MzBmYzhlLm1wND9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjEwMjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMDI5VDIwMjgxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5OTMxOTM4MTEyMTlhZGY1NWQ0NmI4NWYwNWQ2N2FiYzdiNjkyMmI3YWQxYzM4ZDlhZWFlMmNjZjg2M2Y2MGQmWC1BbXotU2lnbmVkSGVhZG
SnooPeripherals5313184
🟧 echo.github ⭐The repository describes a Git-based collection of legal corpora arranged by jurisdiction and effective date, with tools and an MCP server fLexifina project maintainers——
🟠 redditUsing Claude to put all Global Law into Git
ClaudeAI
SnooPeripherals531379873
🟧 hnGit for Global Lawalansaber10
🟧 hnAI to find vulnerabilities in global legislation (on Git)alansaber10
🟧 hnFormalizing the US Tax Codeadunk71
🟧 hnFormalizing US Tax Code (Using Lean)dnw155106

Interpretation history

Decision trace