Ofrenda Keeper: local Gemma 3 makes a Día de los Muertos card from only what you said
- Models & engines
- Gemma 3 4B (Q4_K_M GGUF) in Ollama on CPU, about 9 tokens per second on an 8-core machine
- Key gotcha
- Two misattributions still got through (right words, wrong person), because word overlap can't tell who did what, so the card still needs a human read-through.
What they built
Ofrenda Keeper turns what you tell it about someone you miss into a Día de los Muertos altar card. The author started by asking Gemma 3 for a card about a made-up grandfather and got back a surname, favorite foods, favorite artists and sayings that were never mentioned.
The app's one rule is that if you didn't say it, it doesn't go on the card, and if you weren't sure, it asks you instead of guessing. Every detail carries the exact words it came from, hedged details become questions, and missing pieces such as a song or the years become gentle follow-ups.
A button shows what the same model would write without the guard, so you can compare. Memories are stored in a SQLite file on your own disk and the model runs on your own CPU, so nothing is uploaded.
Setup
- Gemma 3 4B (Q4_K_M GGUF) in Ollama on CPU, about 9 tokens per second on an 8-core machine
- Mastra: an Agent with Memory in a LibSQL file, two createTool tools and a two-step workflow
- Express and a single HTML file for the card; code on GitHub (hongpengtan0-max/ofrenda-keeper)
How it works
- The Mastra agent replies briefly and asks one question, and Memory stores the thread so the card is always rebuilt from everything you've said.
- In the first workflow step, Gemma gets only your own messages and must return each detail with a verbatim quote.
- In the second step, a verify-quote tool checks in plain code that the quote exists in your words, that the detail doesn't go beyond it, and that the sentence wasn't hedged. Anything that fails goes to an ask-follow-up tool and becomes a question.
- Because Gemma 3 through Ollama doesn't do reliable native tool calling, the workflow runs the tools rather than the model choosing them.
Results & numbers
- On 12 fictional test memories, the unguarded prompt produced 83 invented claims out of 167 (49.7%); Ofrenda Keeper produced 0 invented claims out of 61.
- Key details captured rose from 87.5% to 91.7%, with about 4.5 follow-up questions per card.
- Each card took 12.6 seconds on CPU, against 26.1 seconds for the unguarded prompt.
- The rubric, raw outputs and labels are in the repo's eval folder.
Gotchas
- Two misattributions still got through (right words, wrong person), because word overlap can't tell who did what, so the card still needs a human read-through.
- It can be too strict: a sentence with a hedge gets the whole detail held back.
- The first version captured only 37.5% of key details because Gemma invented its own field names and the code silently dropped them; mapping field names fixed it.
- The test set is small and was labeled with an AI coding assistant's help under the author's direction, as the post discloses.
“If you didn't say it, it doesn't go on the card. If you weren't sure, it asks you instead of guessing.”— hongpengtan0-max
Do it yourself
- Install Ollama and pull a Gemma 3 4B model.
- Clone hongpengtan0-max/ofrenda-keeper from GitHub and start the Express app.
- Type a memory about someone, including anything you're unsure of.
- Hover each detail on the card to see the words it came from, and answer the follow-up questions.
- Set OFRENDA_MODEL to a bigger Gemma if you have the RAM, and rerun the eval to check it actually improved.
Similar setups
Ghost in the Machine: a fake 1998 terminal where a local Gemma 3 whispers back at every command
A Hacktoberfest entry in a single HTML file: you type into a simulated old shell and a presence called the tenant answers each command with one eerie line, streamed from Gemma 3 4B on Ollama.
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.
Haunted Haiku: a local Gemma 3 poet that also designs the card
E. Smith built a small Dash app where a local Gemma 3 in Ollama writes an eerie haiku and picks its colours and emoji in one JSON reply, so the poem and its picture work with Wi-Fi off.
Constraint Kitchen: a Gemma 3 1B DIY idea generator that refuses rather than lies
Shashwat Sinha built a local app that turns household junk into DIY project ideas and build guides with gemma3:1b on an 8 GB M3 Mac, and checks every answer in Python so it refuses when the model breaks your constraints.