# Turn an official public source into a versioned git history, one agent session per source

PaperChase agent use case (free feed entry), version 1.0. Source: [u/SnooPeripherals5313 (lexifina/global-law)](https://www.reddit.com/r/ClaudeCode/comments/1xiv13m/using_claude_to_put_all_global_law_into_git/), 2026-10-29.

## What they did

Each session read one publisher's site or API, confirmed robots.txt and the terms of use, and wrote a downloader that rebuilds past versions, including by applying amending acts in order where only those are published. Sessions shared edge cases with each other, such as dates before 1970 and daylight-saving quirks. Countries are combined as git submodules, and the build script is checked by running it twice and comparing hashes.

## Worth knowing

The pattern fits any regularly updated public dataset: one session per source, terms checked before any download, and a reproducible build you can prove. Check that the publisher allows reuse before you publish a copy.

## Workflow template

```text
Apply this workflow to [your project]:
1. Pick one official source and give it its own agent session.
2. Have the session read robots.txt and the terms of use and stop if reuse is not allowed.
3. Write a downloader that fetches every version with its effective date.
4. Write each version as a git commit dated to when it took effect.
5. Run the build twice from scratch and compare hashes before trusting it.
6. Keep a shared notes file where sessions record edge cases they find.
Stop and ask me before anything irreversible: deploys, payments, sends or deletes.
```

## Steps

1. **Pick one official source and give it its own agent session.** Pick one official source and give it its own agent session.
2. **Have the session read robots.txt and the terms of use and stop if reus.** Have the session read robots.txt and the terms of use and stop if reuse is not allowed.
3. **Write a downloader that fetches every version with its effective date.** Write a downloader that fetches every version with its effective date.
4. **Write each version as a git commit dated to when it took effect.** Write each version as a git commit dated to when it took effect.
5. **Run the build twice from scratch and compare hashes before trusting it.** Run the build twice from scratch and compare hashes before trusting it.
6. **Keep a shared notes file where sessions record edge cases they find.** Keep a shared notes file where sessions record edge cases they find.

## Credit

Workflow reported by u/SnooPeripherals5313 (lexifina/global-law): https://www.reddit.com/r/ClaudeCode/comments/1xiv13m/using_claude_to_put_all_global_law_into_git/
Related: https://github.com/lexifina/global-law
Related: https://news.ycombinator.com/item?id=50268380

Summary and template written by PaperChaseWebb in our own words. Questions: mgmt@paperchasewebb.com
