Link Séance: a local Gemma 3 writes grounded epitaphs for the dead links in your bookmarks
- Hardware
- A plain 2-core CPU with no GPU
- Models & engines
- One Python file (standard library plus llama-cpp-python), MIT licensed
gemma-3-4b-it as a 4-bit GGUF (2.5 GB) through llama-cpp-python; gemma-3-1b-it also tested; optional Ollama backend with gemma3:4b - Key gotcha
- Wayback captures taken after a page died often return HTTP 200 with an error page, parking page or the redirect target, so "latest snapshot" is misleading.
What they built
Link Séance takes any file with URLs in it (plain text, Markdown or a browser's bookmarks.html export) and checks each link: alive, DEAD (DNS gone, broken TLS, 404/410/5xx) or WANDERING (it now redirects to a shutdown notice or a different site).
For lost pages it finds the last moment the page was still itself in the Internet Archive's Wayback Machine, reads that snapshot, and has Gemma 3 running on the author's own CPU write a two-sentence epitaph. The results go into an OFRENDA.md and an offline, candle-lit ofrenda.html.
Most of the engineering went into keeping the epitaphs true: a verifier rejects anything the archived page didn't say, and after three failed drafts the tool quotes the archive verbatim instead.
Setup
- One Python file (standard library plus llama-cpp-python), MIT licensed
- gemma-3-4b-it as a 4-bit GGUF (2.5 GB) through llama-cpp-python; gemma-3-1b-it also tested; optional Ollama backend with gemma3:4b
- A plain 2-core CPU with no GPU
How it works
- It asks the Wayback Machine's CDX API for one capture per month, records what the URL redirects to today, then binary-searches for the last month where the snapshot wasn't an error, parking page or the redirect target.
- Every draft must pass verify(): all proper nouns and numbers must appear in the archived text, at least 60% of the first sentence's content words must come from the snapshot, no first person, and exactly two sentences starting "Here lies".
- A rejected draft is shown back to Gemma with the exact reason (for example the specific word the archive never used) and retried; rejected drafts are printed and kept in OFRENDA.md for auditing.
- Link checks, CDX answers and snapshots are cached on disk, so --offline replays a run with no network; the model never needs the network.
Results & numbers
- A 13-link run on a reconstructed 2009 bookmarks list took about six and a half minutes on the 2-core CPU, mostly model time.
- It placed Megaupload's last living capture in January 2012 and Yahoo Answers' in May 2021 without being told either date.
- Gemma 3 1B ran about four times faster but wrote vaguer epitaphs that the guardrail rejected more often; 4B was the author's sweet spot.
Gotchas
- Wayback captures taken after a page died often return HTTP 200 with an error page, parking page or the redirect target, so "latest snapshot" is misleading.
- The death date is an estimate: for Google Wave it stopped in September 2009 when the preview page changed, though Wave lived until 2012.
- The check works on words, not meaning, so it can't tell if a farewell line is too sentimental.
- Pages behind a login, or with too little readable text, get a quote or a note instead of a generated epitaph.
“You don't need a frontier model to keep a memory alive. You need the right constraints around a small one.”— Abdul AmberNeel
Do it yourself
- Clone the link-seance repo and run pip install -r requirements.txt.
- Download gemma-3-4b-it-Q4_K_M.gguf from ggml-org/gemma-3-4b-it-GGUF on Hugging Face into models/.
- Export your browser bookmarks to bookmarks.html (or use any text or Markdown file with links).
- Run python link_seance.py your-bookmarks.html --model models/gemma-3-4b-it-Q4_K_M.gguf, or use --backend ollama --model gemma3:4b if you already use Ollama.
- Open the generated OFRENDA.md or ofrenda.html, and use --offline to re-run from the cache without a connection.
pip install -r requirements.txt
curl -L -o models/gemma-3-4b-it-Q4_K_M.gguf \
https://huggingface.co/ggml-org/gemma-3-4b-it-GGUF/resolve/main/gemma-3-4b-it-Q4_K_M.gguf
python link_seance.py your-bookmarks.html --model models/gemma-3-4b-it-Q4_K_M.ggufSimilar setups
PatchPal TinyAgent: a coding agent on a 4B model and a 6GB laptop GPU
WiseProbe adapted its PatchPal coding agent to run Gemma 4 E4B or Qwen3.5 4B through Ollama on a 6GB RTX A1000, using handoff-note compaction and capped file reads to work inside a 16K or 32K window.
Local AI: a one-click Windows app that picks a model for your PC and sets up Ollama for friends
Tired of setting up local LLMs for friends, a developer built a free MIT-licensed Windows app that detects your GPU and RAM, installs Ollama without admin rights, pulls a fitting model and opens a private chat.
rip: a local Gemma 2 2B writes epitaphs and revival ideas for your abandoned side projects
A Hacktoberfest CLI scans your folders for dormant projects and has Gemma 2 2B on Ollama write a witty obituary and a suggestion to revive each one, sending only metadata, never code.
Séance: local Whisper and Gemma 4 turn a grandmother's Malayalam voice notes into a searchable family archive
Clivin John built Séance, which transcribes and translates his grandmother's voice notes on his laptop, has Gemma 4 write memory cards, and answers questions only with her exact, verified words.