Blog

The archive was always open. Now it is readable.

Portugal put its old archives online. Over one summer, AI helped me read them back to 1666. What that changes for heritage.

$31,500. That is what the reading behind this article would have cost at API list prices: at least 25 billion tokens. I paid a monthly subscription.

In August I went on holiday with one document: my grandfather's birth entry, number 418 of 1926, in the civil registry of Estremoz. Eleven weeks later I can open a baptism written on 10 August 1666 and read the names of people I descend from.

I did not go to an archive. I did not learn palaeography. Most of it was done from a phone.

Open archives, closed handwriting

Portugal's archives are extraordinary, and few people know it. Priests recorded baptisms, marriages and burials from the sixteenth century on. Notaries kept their deeds. Orphans' courts inventoried the estates of the dead who left heirs. The army kept a page on its soldiers, down to the colour of their eyes. The district archives and the national archive have photographed a huge part of it and put it online, free to view.

The images are there. What was missing was a way to read them at scale. A 1690 baptism is a photograph of a hand, with abbreviations, water stains, and a script that changes with every new priest.

What the pages said

This is the part that feels like time travel. Not names and dates, but rooms, faces and silences.

The numbers

The stack, for the nerds

Claude Code ran in a Docker container on a small VPS, inside one tmux session I reached over SSH from my phone. No IDE and no notebook: a terminal, a git repository, and a lot of Markdown.

Pipeline: phone over SSH and tmux, a container running Claude Code with up to four sub-agents, fetching from the digitarq API, FamilySearch and GERMIL, reading with vision and cropped margins, a second model and a human checking contested words, a GEDCOM where every fact cites its source, and a static site on Cloudflare Pages
An 1899 baptism register from Alter do Chão with its two margin columns boxed, and below, the margins of eight pages cropped and set side by side: entry numbers 30 to 36 with the names Leonel, Marianna, Gertrudes, António, Francisco, Joaquim and Luiz

One rule held the whole thing together. Every fact in the tree cites its source, and most point at a page image you can open. The rest say what they rest on: a catalogue description, an estimate, or family testimony.

Why the second model matters, and where it stops

On one pair of baptisms, from 1875 and 1878, the two models agreed on two names and disagreed on two others. Agreement is cheap confidence. The disagreements were the useful part: they marked the exact words to go back to. On both, the second model was wrong. And Claude's own conclusion on one of them, built on a deed of 1916, turned out backwards: a third baptism, from 1883, showed the surname belonged to the husband, not the wife.

A second reader is worth having. It is not an oracle. The referee is always another document.

The archives have their own traps, and a model alone falls into them. At Barbacena in 1747 there are two men called Manoel Gomes, both married to an Isabel Lopes, three openings apart in the same book. A match on names picks the wrong man. A younger sister's baptism, with its grandparents named, settled which one was ours.

What this makes possible

My family is one test case, and the method has limits: some books have no margin index, or one that misleads, and must be read page by page. But the archives are already online, and the same tools can be pointed at other parishes and towns.

What changed

The archives were opened years ago. The reading was the bottleneck, and its cost has collapsed: the images are free to view, and the reading cost me one subscription and my evenings. What is left for the human is the part that was always the most valuable: checking identities, resolving contradictions, and saying plainly what is not known.

If you work on heritage, archives or open data in Portugal, I would like to compare notes. The tree, the documents and the music are at family.aiteklabs.com.

Archive images: Arquivo Distrital de Évora and Arquivo Distrital de Portalegre (DGLAB).

ServicesBlogMarketplaceAchievementsClientsContact