<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Zhixin Qin</title>
    <description>The latest articles on DEV Community by Zhixin Qin (@ziwenqingshu).</description>
    <link>https://dev.to/ziwenqingshu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4196415%2Fd85b5d81-b525-4164-9961-8d64cc80407e.png</url>
      <title>DEV Community: Zhixin Qin</title>
      <link>https://dev.to/ziwenqingshu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ziwenqingshu"/>
    <language>en</language>
    <item>
      <title>Wayback Séance: I asked dead websites to tell their own life stories, and made the ghosts cite their sources</title>
      <dc:creator>Zhixin Qin</dc:creator>
      <pubDate>Tue, 27 Oct 2026 02:55:32 +0000</pubDate>
      <link>https://dev.to/ziwenqingshu/wayback-seance-i-asked-dead-websites-to-tell-their-own-life-stories-and-made-the-ghosts-cite-49cl</link>
      <guid>https://dev.to/ziwenqingshu/wayback-seance-i-asked-dead-websites-to-tell-their-own-life-stories-and-made-the-ghosts-cite-49cl</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week4-2026-10-26"&gt;Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;GeoCities shut down before I was old enough to use the web. I never saw it alive. All I've seen of it is in screenshots, in other people's nostalgia, and in the Internet Archive, which kept its front page hundreds of times while nobody was looking.&lt;/p&gt;

&lt;p&gt;So for Día de los Muertos I built a séance for dead websites.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Wayback Séance&lt;/strong&gt; (网页招魂) takes the address of a website that's gone or changed beyond recognition. It pulls the site's real history out of the Wayback Machine and lets a small open-weight model, running on my own CPU, speak as the site's ghost. The ghost tells its own life story in four chapters: &lt;strong&gt;birth, glory years, decline, last words.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;seance geocities.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The output is two things. First, a séance in your terminal, where the ghost speaks one sentence at a time. Second, a self-contained HTML &lt;strong&gt;ofrenda&lt;/strong&gt;: papel picado, candles, a chart of the site's whole life in captures, the testimony, and the snapshots themselves laid out like photos on an altar.&lt;/p&gt;

&lt;p&gt;The rule that makes it more than a spooky prompt: &lt;strong&gt;the ghost may only remember what the archive kept.&lt;/strong&gt; Every sentence has to cite a real snapshot, like &lt;code&gt;[S3]&lt;/code&gt;. Before you get to see a sentence, a plain, deterministic checker holds it up to that snapshot. Quoted words have to appear there, and so do years, numbers and names. If they don't, the sentence is struck through and marked &lt;em&gt;silenced by the medium&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;I added that rule after my very first test. I asked Gemma, with no evidence at all, to speak as the ghost of GeoCities. It answered:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"I was once the king of the web, a haven for creativity and quirky designs, but alas, I faded with the rise of flashier platforms. Remember the dancing babies and animated GIFs?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It sounds lovely, and I can't check a word of it. Maybe the dancing babies were there. None of the seven GeoCities snapshots I later fed it mentions them. A remembrance that makes up its own past isn't honoring the dead; it's fan fiction. Día de los Muertos is about remembering people &lt;em&gt;as they were&lt;/em&gt;, so I wanted a ghost that could prove its memories.&lt;/p&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Live ofrendas&lt;/strong&gt; (GitHub Pages): &lt;strong&gt;&lt;a href="https://ziwenqingshu.github.io/wayback-seance/" rel="noopener noreferrer"&gt;ziwenqingshu.github.io/wayback-seance&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://ziwenqingshu.github.io/wayback-seance/geocities.html" rel="noopener noreferrer"&gt;geocities.com&lt;/a&gt;, 1996–2007&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://ziwenqingshu.github.io/wayback-seance/del.html" rel="noopener noreferrer"&gt;del.icio.us&lt;/a&gt;, 2003–2025&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://ziwenqingshu.github.io/wayback-seance/vine.html" rel="noopener noreferrer"&gt;vine.co&lt;/a&gt;, 2012–2019&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ziwenqingshu.github.io/wayback-seance/geocities.zh.html" rel="noopener noreferrer"&gt;geocities.com in Chinese (中文)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On every ofrenda, each citation chip links to the exact archived snapshot it came from, so you can check the ghost yourself. The sentences the medium silenced are kept at the bottom, struck through, because I think they're the most interesting part.&lt;/p&gt;

&lt;p&gt;A real terminal séance with GeoCities:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fziwenqingshu%2Fwayback-seance%2Fmain%2Fdocs%2Fdemo.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fziwenqingshu%2Fwayback-seance%2Fmain%2Fdocs%2Fdemo.gif" alt="Wayback Séance: snapshots of geocities.com are summoned, then the ghost speaks chapter by chapter, with an unverified sentence struck in red" width="720" height="774"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To be upfront about the recording: Gemma is running live. The archive responses are replayed from a live run I recorded the same morning, using the tool's own &lt;code&gt;--record&lt;/code&gt; / &lt;code&gt;--fixtures&lt;/code&gt; flags. After a morning of test runs, web.archive.org started timing out on my VM (probably my own fault for hammering it), and I'd rather not hammer it more for a GIF. The GIF renderer also caps idle pauses at 1.5 seconds; the model timing printed at the end is the real one.&lt;/p&gt;
&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/ziwenqingshu" rel="noopener noreferrer"&gt;
        ziwenqingshu
      &lt;/a&gt; / &lt;a href="https://github.com/ziwenqingshu/wayback-seance" rel="noopener noreferrer"&gt;
        wayback-seance
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Summon the ghost of a dead website: a local Gemma tells its life story, citing only real Wayback Machine snapshots. 网页招魂
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Wayback Séance · 网页招魂&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;&lt;a href="https://github.com/ziwenqingshu/wayback-seance/actions/workflows/ci.yml" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/ziwenqingshu/wayback-seance/actions/workflows/ci.yml/badge.svg" alt="CI"&gt;&lt;/a&gt;
&lt;a href="https://github.com/ziwenqingshu/wayback-seance/LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/c82aa50b9b1c4ebe464ec85fb9065fbfe652a802050a25eb8fcb0733a0d8f1be/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d6634613432612e737667" alt="License: MIT"&gt;&lt;/a&gt;
&lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/8e65f5c2ccc18f6ebab54124b346e456d206e97b80914685e5f03b509c8376bc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d332e31322532422d6139386264362e737667"&gt;&lt;img src="https://camo.githubusercontent.com/8e65f5c2ccc18f6ebab54124b346e456d206e97b80914685e5f03b509c8376bc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d332e31322532422d6139386264362e737667" alt="Python 3.12+"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Give it the address of a dead website. It calls the site's ghost back from the Internet Archive, and the ghost
tells you its life story in the first person: birth, glory years, decline, last words.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The catch, and the whole point: &lt;strong&gt;the ghost may only remember what the archive kept.&lt;/strong&gt; Every sentence it speaks has
to cite a real Wayback Machine snapshot, and a deterministic checker holds each sentence up to that snapshot before
you get to see it. Sentences that don't match are struck through and "silenced by the medium".&lt;/p&gt;
&lt;p&gt;The ghost's voice is a small &lt;strong&gt;open-weight model running on your own CPU&lt;/strong&gt; (Gemma 3 4B through llama.cpp by
default). No API keys, no cloud, no account.&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/ziwenqingshu/wayback-seance/docs/demo.gif"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fziwenqingshu%2Fwayback-seance%2FHEAD%2Fdocs%2Fdemo.gif" alt="A live séance with geocities.com"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Live ofrendas:&lt;/strong&gt; &lt;a href="https://ziwenqingshu.github.io/wayback-seance/geocities.html" rel="nofollow noopener noreferrer"&gt;geocities.com&lt;/a&gt; ·
&lt;a href="https://ziwenqingshu.github.io/wayback-seance/del.html" rel="nofollow noopener noreferrer"&gt;del.icio.us&lt;/a&gt; ·
&lt;a href="https://ziwenqingshu.github.io/wayback-seance/vine.html" rel="nofollow noopener noreferrer"&gt;vine.co&lt;/a&gt; ·
&lt;a href="https://ziwenqingshu.github.io/wayback-seance/geocities.zh.html" rel="nofollow noopener noreferrer"&gt;geocities.com (中文)&lt;/a&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Why&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Ask a small model to "speak as the ghost of GeoCities" and it will warmly remember…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/ziwenqingshu/wayback-seance" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;It's a Python 3.12 package with &lt;strong&gt;zero runtime dependencies&lt;/strong&gt; (stdlib only; llama-cpp-python is an optional extra), MIT licensed. It has 63 tests at 97% branch coverage, and CI runs ruff and pytest on Linux, macOS and Windows. The tests never touch the network: the archive is replayed from recorded GeoCities responses, and the model is a deterministic fake. The fake quotes snapshot titles and tells exactly one lie per chapter ("Millions of visitors adored my Dancing Baby animation"), so the tests can watch the medium catch it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The model.&lt;/strong&gt; The model is &lt;a href="https://ai.google.dev/gemma" rel="noopener noreferrer"&gt;Gemma 3 4B instruction-tuned&lt;/a&gt;, as the Q4_0 GGUF from &lt;a href="https://huggingface.co/unsloth/gemma-3-4b-it-GGUF" rel="noopener noreferrer"&gt;unsloth/gemma-3-4b-it-GGUF&lt;/a&gt;, served by &lt;a href="https://github.com/ggml-org/llama.cpp" rel="noopener noreferrer"&gt;llama.cpp&lt;/a&gt;'s &lt;code&gt;llama-server&lt;/code&gt; in Docker. It runs on a 4-vCPU cloud VM with no GPU. Any OpenAI-compatible local server works, so Ollama (&lt;code&gt;gemma3:4b&lt;/code&gt;) is supported too. Last week I used Gemma 3 1B for a different project. This time I went up to 4B, because a ghost needs a voice, and the CPU could afford it: about 30 tokens/s generating. A full séance is around 2,700 prompt tokens and 390 generated tokens, which takes &lt;strong&gt;15 to 22 seconds&lt;/strong&gt; of model time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Wayback pipeline.&lt;/strong&gt; All of it uses two public endpoints:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The &lt;a href="https://github.com/internetarchive/wayback/tree/master/wayback-cdx-server" rel="noopener noreferrer"&gt;CDX API&lt;/a&gt; lists every capture of a URL. I collapse it to one capture per month, which gives me 332 rows for geocities.com, from 1996 to today. Those rows alone tell a story: when the site was busiest, and the year its address stopped serving pages and started answering with redirects (GeoCities' now leads to &lt;code&gt;yahoo.com&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;web.archive.org/web/&amp;lt;timestamp&amp;gt;id_/&amp;lt;url&amp;gt;&lt;/code&gt; returns a capture byte for byte, as the crawler saw it, with no Wayback toolbar. I pick seven snapshots spread across the site's life, skipping any that share a content digest. Then I extract the title, the meta description and the visible text with the stdlib's &lt;code&gt;html.parser&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The archive is honest in ways that surprised me. Every GeoCities capture I fetched from 2014 to 2019 is a "200 OK" with an &lt;strong&gt;empty body&lt;/strong&gt;: the address answered, but nobody was home. One del.icio.us capture came back still compressed and decoded to a soup of Latin-1 symbols. So the gatherer detects these hollow shells and avoids their neighbours. It fills the widest gap left in the timeline with another capture, on a fixed fetch budget so it never hammers the archive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Chapters, not one big prompt.&lt;/strong&gt; Each chapter sees only its own era. Birth gets the first snapshots, glory and decline get the middle, and last words get the final page plus the facts about the afterlife. Before I kept the afterlife facts for the last chapter only, the GeoCities ghost brought up its redirect to Yahoo in almost every chapter. It was a little obsessed with its own death.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The medium's post-check.&lt;/strong&gt; This is the heart of the project, and it's ordinary code (&lt;code&gt;grounding.py&lt;/code&gt;). As Gemma streams, a segmenter cuts out each complete sentence. It keeps the trailing &lt;code&gt;[S3]&lt;/code&gt; attached, and it never splits inside a quotation. My first version cut &lt;code&gt;“multimedia Things!” beckoned…&lt;/code&gt; in half and then accused both halves of having no citation. Each sentence is then judged against the snapshot it cites:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;it must cite something, and the snapshot must exist;&lt;/li&gt;
&lt;li&gt;every quoted phrase must appear in that snapshot (plurals are forgiven, invented phrases are not);&lt;/li&gt;
&lt;li&gt;every year and number must appear there, or in the counted facts;&lt;/li&gt;
&lt;li&gt;capitalised names must appear there;&lt;/li&gt;
&lt;li&gt;and enough of its content words must come from it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The verdict is &lt;strong&gt;grounded&lt;/strong&gt;, &lt;strong&gt;faint&lt;/strong&gt; (a real quote wrapped in made-up embroidery, or a citation from the wrong chapter), or &lt;strong&gt;silenced&lt;/strong&gt;. Across the three English séances on the demo page, the ghosts spoke 35 sentences: 20 grounded, 4 faint, 11 silenced.&lt;/p&gt;

&lt;p&gt;My favourite catch came from the GeoCities ghost, in the decline chapter (punctuation lightly tidied):&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I recall a time when "Welcome, Guest [ Sign In ]" was offered freely, promising a space to "share your personality with the world." &lt;code&gt;[S5 · 2005]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;del&gt;The insistent suggestion of "GeoCities PLUS No ads plus extra storage" appeared alongside options for "your own domain plus email."&lt;/del&gt; &lt;code&gt;[S6 · 2006]&lt;/code&gt;&lt;br&gt;
&lt;em&gt;silenced by the medium: quote "your own domain plus email" is not in S6&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I went digging, because it sounded too specific to be invented. It wasn't invented. The &lt;strong&gt;July 2005&lt;/strong&gt; snapshot says, word for word, "GeoCities PLUS No ads plus extra storage", then "Just $4.95/mo.", then "GeoCities PRO Your own domain plus email". By &lt;strong&gt;December 2006&lt;/strong&gt;, the page it cited, that offer read "No ads plus more storage for just $4.95/mo." &lt;strong&gt;The ghost had the words right and the year wrong.&lt;/strong&gt; That's exactly the kind of memory I wanted it &lt;em&gt;not&lt;/em&gt; to pass off as fact.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Chinese mode&lt;/strong&gt; (&lt;code&gt;--lang zh&lt;/code&gt;) was a must for me. The ghost speaks Chinese but has to quote the original English words, so the same checks still work:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;我记得自己曾经是"Welcome to GeoCities Home Page"，一个充满着"Free Home Pages"和"Free Member Email"的承诺之地。 &lt;code&gt;[S1 · 1996]&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I wrote the Chinese prompt &lt;em&gt;in&lt;/em&gt; Chinese, because asking for Chinese in an English prompt kept getting English back. Then something eerie happened. Twice, the Chinese ghost "remembered" a phrase from my own instructions: 互联网档案馆保存下来的你的真实快照, "the real snapshots of you kept by the Internet Archive". It quoted the séance's rules back to me as one of its memories. The checker marked it &lt;em&gt;faint&lt;/em&gt;, since there's nothing in the snapshot to check it against, and I left it in the ofrenda. It's the most ghost-like line in the project.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it can't do.&lt;/strong&gt; The check is lexical, so it can show a sentence's checkable parts came from the cited page, but it can't show the sentence is &lt;em&gt;true&lt;/em&gt;. One GeoCities line passed as grounded: "despite the promise of 'easy-to-use site building tools,' the volume of visitors diminished". The quote is real. The decline in visitors is Gemma's own story. Vine's ghost was the quietest: its pages were mostly a video player and an app-store button, so there was little to remember. When Gemma filled the silence with poetry, the medium cut 7 of its 12 sentences. I'd rather have a ghost that admits what it doesn't know than one that fills the gaps for me.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;This project is about things that disappeared because a company decided they should. GeoCities, del.icio.us and Vine were all free, beloved, hosted, and then gone. Building their séance on top of a hosted model API, which can be deprecated, repriced or sunset just as easily, would have been a bad joke. Open pieces made it work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The model is a file on my disk.&lt;/strong&gt; Nobody can turn off a GGUF. The same Gemma 3 4B weights will still be there to speak for these ghosts in ten years.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It works with the lights off.&lt;/strong&gt; With &lt;code&gt;--fixtures&lt;/code&gt; and a local model, a whole séance runs with no internet at all. That's how the demo GIF was made when the archive stopped answering my VM.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I could see and change everything.&lt;/strong&gt; I knew exactly which text the model got for each chapter. I could tune the prompts per era, and when Gemma misbehaved I could read why. The "grounding" is one file of plain Python that anyone can audit, not a black-box feature behind someone else's endpoint.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The memories are open too.&lt;/strong&gt; The Internet Archive is the most important open infrastructure on the web, and its CDX API is free. Every ofrenda links back to it, with a line asking people to &lt;a href="https://archive.org/donate" rel="noopener noreferrer"&gt;support it&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No key, no bill, no region lock.&lt;/strong&gt; I build from mainland China, where several big hosted model APIs aren't officially available. An ungated GGUF and an MIT-licensed runtime work the same everywhere.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Spirit of It
&lt;/h2&gt;

&lt;p&gt;Here is the moment it landed for me. I summoned del.icio.us, the bookmarking site where a lot of the early web learned what a "tag" was. Its 2003 snapshot lists the "most recent posters" by username, real people saving links to share. Its glory-years page says "Keep, share, and discover the web."&lt;/p&gt;

&lt;p&gt;Then I scrolled to the last relic, from June 2025. The entire readable page, after twenty-two years, is one line:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Welcome to del.icio.us. Please log in.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A login prompt, and nothing else. It has said exactly that since at least 2022, and the archive still comes by every month to listen. I didn't need the ghost to add anything. When it tried to embroider those last words anyway, the medium silenced both sentences.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Best Use of Gemma.&lt;/strong&gt; Gemma 3 4B (open weights, run locally through llama.cpp, or Ollama) is the only model in Wayback Séance, and it is the ghost's entire voice in English and Chinese. The project is built around what a small Gemma does well (atmosphere, voice, faithful quoting when it's handed real text) and what it does badly (inventing confident details). That's why there's chapter-scoped evidence, citation-tagged streaming output, and a deterministic checker that grades every sentence Gemma speaks against the snapshot it cites.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>opensource</category>
      <category>ai</category>
    </item>
    <item>
      <title>SlothCommit: a 1B Gemma on a plain CPU now writes my commit messages (after I caught it copying its homework)</title>
      <dc:creator>Zhixin Qin</dc:creator>
      <pubDate>Tue, 20 Oct 2026 14:55:17 +0000</pubDate>
      <link>https://dev.to/ziwenqingshu/slothcommit-a-1b-gemma-on-a-plain-cpu-now-writes-my-commit-messages-after-i-caught-it-copying-its-1na7</link>
      <guid>https://dev.to/ziwenqingshu/slothcommit-a-1b-gemma-on-a-plain-cpu-now-writes-my-commit-messages-after-i-caught-it-copying-its-1na7</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week3-2026-10-19"&gt;Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;There are two pieces of writing I put off as a CS student. One is the commit message at 11:40 pm, when the bug is finally fixed and my brain has nothing left. That's how my history ends up full of &lt;code&gt;fix&lt;/code&gt;, &lt;code&gt;fix2&lt;/code&gt;, &lt;code&gt;ok now it works&lt;/code&gt; and the classic &lt;code&gt;asdf&lt;/code&gt;. The other is the weekly "so what did you do this week?" update, which always means scrolling back through those same useless commits to work out what I actually did.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SlothCommit&lt;/strong&gt; hands both jobs to a small open-weight model running on my own machine:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;sloth commit&lt;/code&gt; reads my staged diff and writes a &lt;a href="https://www.conventionalcommits.org/" rel="noopener noreferrer"&gt;Conventional Commit&lt;/a&gt; (&lt;code&gt;fix(cli): ...&lt;/code&gt;, with a short body), then asks &lt;strong&gt;Yes / Edit / No&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sloth week&lt;/code&gt; turns the last 7 days of commits into a changelog grouped by type, with a 2–4 sentence summary I can paste into a standup or group chat. &lt;code&gt;--lang zh&lt;/code&gt; writes it in Chinese.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sloth hook install&lt;/code&gt; is for when even typing &lt;code&gt;sloth&lt;/code&gt; is too much. It adds a &lt;code&gt;prepare-commit-msg&lt;/code&gt; hook, so a plain &lt;code&gt;git commit&lt;/code&gt; arrives with the message already filled in. If the model is down, the hook gets out of the way and never blocks the commit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The model is &lt;strong&gt;Gemma 3 1B&lt;/strong&gt;, running through &lt;strong&gt;llama.cpp&lt;/strong&gt;. No API key, no account, no per-token bill, and no diff ever leaves &lt;code&gt;localhost&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It's for anyone who writes code and hates writing &lt;em&gt;about&lt;/em&gt; code, and for every teammate who has to read &lt;code&gt;git log&lt;/code&gt; afterwards.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;A real terminal session, recorded with asciinema. The GIF renderer caps idle pauses at 2 seconds, so the timings Gemma prints in the terminal are the real ones. Every model output is unedited Gemma 3 1B, running on a 2-vCPU ARM cloud box with no GPU:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnzlxhnbiqirue2hexi2o.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnzlxhnbiqirue2hexi2o.gif" alt="SlothCommit demo: sloth commit, sloth week --lang zh, and the git hook" width="784" height="694"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To be upfront: the repo in the demo is a small GPA calculator I wrote just for the recording. Its first six commits were also written by &lt;code&gt;sloth commit&lt;/code&gt;, then backdated so &lt;code&gt;sloth week&lt;/code&gt; had a week to summarise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/ziwenqingshu" rel="noopener noreferrer"&gt;
        ziwenqingshu
      &lt;/a&gt; / &lt;a href="https://github.com/ziwenqingshu/slothcommit" rel="noopener noreferrer"&gt;
        slothcommit
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;🦥 SlothCommit&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Let a local Gemma model do the git chores you keep putting off.&lt;/strong&gt;
Writes your commit messages, your weekly "what did I even do" report, and
(if you're truly committed to laziness) fills in &lt;code&gt;git commit&lt;/code&gt; for you
Offline. Free. Your code never leaves your machine.&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/ziwenqingshu/slothcommit/docs/demo.gif"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fziwenqingshu%2Fslothcommit%2FHEAD%2Fdocs%2Fdemo.gif" alt="SlothCommit demo"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;$ git add -A &amp;amp;&amp;amp; sloth commit
🦥 Gemma via llama-server: 4.8s. Nothing left this machine.

fix(cli): add GPA calculation fix

- Fixed a potential error in the GPA calculation by adding a check for
  unknown grades and raising an UnknownGradeError
...
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;(That's a real, unedited output from Gemma 3 &lt;strong&gt;1B&lt;/strong&gt;. It's a first draft, not
an oracle: &lt;code&gt;sloth commit&lt;/code&gt; asks Yes / Edit / No before committing. Every commit
in &lt;strong&gt;this&lt;/strong&gt; repo's history was written by SlothCommit and left unedited, so you
can judge the quality yourself.)&lt;/em&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;What it does&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;Chore it removes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;sloth commit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;reads &lt;code&gt;git diff --cached&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;…&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/ziwenqingshu/slothcommit" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;About 940 lines of Python (plenty of it docstrings) and no runtime dependencies (the in-process backend is an optional extra). There are 30 tests, MIT license, and a CI workflow. The tests swap Gemma for a fake backend, so they run in 0.2 seconds with no model. Credits for everything I built on are in &lt;code&gt;CREDITS.md&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;There's one more thing I'm a bit proud of: &lt;strong&gt;every commit that built the tool was written by SlothCommit and pushed unedited.&lt;/strong&gt; (The one exception is a later hand-written touch-up to the demo GIF, and its message says so.) You can judge the quality yourself, and I'll say below where it falls short.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The stack.&lt;/strong&gt; I used &lt;a href="https://ai.google.dev/gemma" rel="noopener noreferrer"&gt;Gemma 3 1B instruction-tuned&lt;/a&gt;, as the Q4_0 GGUF from &lt;a href="https://huggingface.co/unsloth/gemma-3-1b-it-GGUF" rel="noopener noreferrer"&gt;unsloth/gemma-3-1b-it-GGUF&lt;/a&gt;, an ungated conversion, so the first run is a plain download with no Hugging Face login. It runs on llama.cpp's &lt;code&gt;llama-server&lt;/code&gt;. SlothCommit has three backends and picks whichever is available: &lt;code&gt;llama-server&lt;/code&gt;, then Ollama (&lt;code&gt;gemma3:1b&lt;/code&gt;), then in-process &lt;code&gt;llama-cpp-python&lt;/code&gt;. (Honesty note: the Ollama backend is unit-tested against Ollama's documented API, but I couldn't get the Ollama binary to download in my sandbox, so all the numbers below are from llama.cpp.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The real work was keeping a 1B model honest.&lt;/strong&gt; My first version just sent the diff with a list of rules. On my 7 test diffs, Gemma wrote "handle empty input in parser" for four of them, which was the example sentence from my prompt. So the design ended up as "Gemma does the part that needs language, and Python does everything else":&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Schema-constrained output.&lt;/strong&gt; Gemma has to answer with JSON matching &lt;code&gt;{type, scope, subject, body}&lt;/code&gt;, and &lt;code&gt;llama-server&lt;/code&gt; compiles that schema into a grammar. The output always parses, and &lt;code&gt;type&lt;/code&gt; is always one of the ten valid commit types. It &lt;em&gt;can't&lt;/em&gt; answer with a poem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Facts in code, not in the prompt.&lt;/strong&gt; If only Markdown files changed, I narrow the schema's &lt;code&gt;type&lt;/code&gt; enum to just &lt;code&gt;docs&lt;/code&gt; before Gemma sees it. The same goes for tests, CI, and brand-new code files (&lt;code&gt;feat&lt;/code&gt;). Scope cleanup (&lt;code&gt;gpa.py&lt;/code&gt; → &lt;code&gt;gpa&lt;/code&gt;), the 72-character header, line-wrapping and de-duplicating the body are all plain Python.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Few-shot instead of rules.&lt;/strong&gt; Three tiny examples (a README edit, an HTTP timeout fix, a pomodoro timer) taught the format far better than a paragraph of instructions. They never change, so &lt;code&gt;llama-server&lt;/code&gt; caches that prefix. A warm request only has to read my diff.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Condense big diffs instead of truncating them.&lt;/strong&gt; Small diffs go in as they are. Big ones (new modules, mostly) are cut down to each file's definitions, comments and docstrings. In that case Gemma isn't allowed to write bullet points, because with only an outline its "details" were mostly made up.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A homework-copying detector.&lt;/strong&gt; This was my favourite bug. When I pointed SlothCommit at its own source code, the first batch of new files came back as &lt;code&gt;docs(readme): add install instructions&lt;/code&gt;. A later one was &lt;code&gt;fix(http): add request timeout and raise on http errors&lt;/code&gt;, word for word my few-shot example. Gemma had given up on the diff and copied its homework. Now, if the subject shares most of its words with one of the examples, SlothCommit says so and falls back to a boring but true message built from the file list.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The weekly report never invents the changelog.&lt;/strong&gt; Grouping commits into Features, Bug fixes, Docs and so on is deterministic code. Gemma only writes the summary on top. For Chinese I use a prompt written &lt;em&gt;in&lt;/em&gt; Chinese, because asking for Chinese in an English prompt got English back.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Two sandbox stories that made it into the code:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;My requests to &lt;code&gt;localhost&lt;/code&gt; kept returning &lt;strong&gt;404&lt;/strong&gt;. The machine had an HTTP proxy configured, and Python's &lt;code&gt;urllib&lt;/code&gt; was politely sending my diff to it. SlothCommit now builds a proxy-free opener for local backends. That fixed the bug, and it also means a system proxy can never quietly carry your code anywhere.&lt;/li&gt;
&lt;li&gt;Speed: &lt;code&gt;llama-cpp-python&lt;/code&gt;'s prebuilt wheel read prompts at about 25 tokens/s. The official llama.cpp ARM build with the &lt;strong&gt;Q4_0&lt;/strong&gt; quant read them at &lt;strong&gt;182 tokens/s&lt;/strong&gt;, because Q4_0 gets repacked for the CPU's int8 matrix instructions. A commit message is mostly &lt;em&gt;reading&lt;/em&gt; a diff and barely &lt;em&gt;writing&lt;/em&gt;, so that one choice made the tool usable. (Along the way I also filled the sandbox's RAM-backed disk with a 4B model and an Ollama tarball, and spent a while confused about why every download came back 0 bytes. Sloth tip: run &lt;code&gt;df -h&lt;/code&gt; first.)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;For this project, open weights aren't a philosophy slide. Each item below is something that would have broken with a closed API:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The code never leaves the machine.&lt;/strong&gt; A commit tool reads &lt;em&gt;everything&lt;/em&gt; you write: coursework you're not supposed to share, internship code under an NDA, half-finished research. With a local Gemma, the whole data flow is "your disk → your RAM → your &lt;code&gt;.git&lt;/code&gt;". I didn't have to write a privacy policy because there's nothing to have a policy about.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It costs nothing and needs no account.&lt;/strong&gt; A tool you run on every commit can't come with a per-token bill or a credit card form, especially for students. Also, several big hosted model APIs don't officially serve mainland China. An ungated GGUF and an MIT-licensed runtime work the same everywhere, offline included.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I could look inside and fix things.&lt;/strong&gt; Every fix above came from having the whole stack open. I benchmarked quantizations myself and picked Q4_0 for a reason I can point to. I cached the few-shot prefix in the server and narrowed the grammar per request. When the model misbehaved I could see exactly what it was given and why. With a closed endpoint I'd just be tweaking a prompt and hoping.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It can be swapped.&lt;/strong&gt; Want a smarter sloth? Set &lt;code&gt;SLOTH_OLLAMA_MODEL=gemma3:4b&lt;/code&gt; or point &lt;code&gt;SLOTH_MODEL&lt;/code&gt; at any GGUF. Nothing in SlothCommit is tied to a vendor.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The honest trade-off: a 1B model is a first-draft writer, not an oracle. That's why &lt;code&gt;sloth commit&lt;/code&gt; asks before committing and the changelog is built in code.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Lazy Payoff
&lt;/h2&gt;

&lt;p&gt;Only numbers I actually measured. All of them come from a 2-vCPU ARM cloud box with no GPU, running Gemma 3 1B Q4_0 on &lt;code&gt;llama-server&lt;/code&gt;. A normal laptop should do at least as well.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;th&gt;Measured&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;sloth commit&lt;/code&gt; on the demo repo, 8 commits&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2.2 – 4.8 s each, mean 3.4 s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SlothCommit writing its &lt;em&gt;own&lt;/em&gt; 10 build commits (bigger diffs)&lt;/td&gt;
&lt;td&gt;3.0 – 8.5 s each, mean 5.4 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;sloth week&lt;/code&gt; (6–7 commits, English or Chinese)&lt;/td&gt;
&lt;td&gt;3.0 – 4.7 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Small diff with the server warm vs. its very first request&lt;/td&gt;
&lt;td&gt;1.1 s vs. 8.2 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same diff in-process through &lt;code&gt;llama-cpp-python&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;67.9 s (use the server!)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Memory used by &lt;code&gt;llama-server&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;~1.6 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;$0, no network after the ~720 MB model download&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I didn't measure how long I &lt;em&gt;used&lt;/em&gt; to spend on commit messages, so I won't invent a "saves 2 hours a week" number. What I can say for sure is that this week, 11 commits went into SlothCommit's own history and I typed exactly zero characters of those messages.&lt;/p&gt;

&lt;p&gt;How good are they? About what you'd expect from a 1B model in a hurry. Most are fine. A few are sloth-quality: a &lt;code&gt;.gitignore&lt;/code&gt; commit typed as &lt;code&gt;feat&lt;/code&gt;, a body claiming it "improves performance" that nobody measured, one &lt;code&gt;test(tests): add test_git_and_cli.py&lt;/code&gt; that is technically true and spiritually lazy, and my favourite: a README edit summarised as &lt;code&gt;docs(readme): add GPA calculation fix&lt;/code&gt;, because the README quotes that line from the demo and Gemma simply quoted it back. The Chinese weekly summary sometimes adds achievements that never happened, so I read it before sending. My plan: keep the guard rails tight, and let anyone with more RAM switch to Gemma 3 4B.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Best Use of Gemma.&lt;/strong&gt; Gemma 3 1B is the only model in SlothCommit and does every piece of writing in it: commit subjects and bodies, plus English and Chinese weekly summaries. The project is built around what a 1B Gemma can and can't do on a CPU: schema-constrained decoding, few-shot prompts with a cached prefix, deterministic type narrowing, condensed diffs, and a detector for when it copies its examples. It runs fully local through llama.cpp or Ollama, offline and free.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
