cd /news/artificial-intelligence/ghost-farmer-an-offline-ancestor-far… · home › topics › artificial-intelligence › article
[ARTICLE · art-161709] src=dev.to ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Ghost Farmer: An offline Ancestor Farmer powered by Gemma

A developer built Ghost Farmer, an offline chatbot that runs the 1B-parameter Gemma 3 model locally through Ollama to answer questions about planting, soil, pests and harvest in the voice of an ancestor farmer. The roughly 60-line Python program feeds a system prompt and family memories from a stories.txt file into the model, streaming replies word by word, and adds a /save command that collects advice worth keeping. The developer reports the small model improvised its own backstory, describing aphids as "little green devils," and notes the prompt forbids inventing exact chemical doses.

by read2 min views1 publishedOct 31, 2026

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine Ghost Farmer is an offline chatbot that channels the spirit of an ancestor farmer to answer questions about planting, soil, pests, and harvest. Growing up in Kenya, as a farmer's child, my grand father often gave us advice on how to take care of plants in order to ensure great yield so I chose to work on Agriculture because I saw how helpful it is.

GitHub Link: https://github.com/Muen1/ghost-farmer.git Screenshots:

gemma3:1b, an open-weight model) running locally through ollama librarystories.txt file the ghost reads at startup, so every family gets a different ghost/save command that builds an "ofrenda" of advice worth keeping The whole thing is one Python file of about 60 lines. A system prompt tells the model to speak like a gentle ghost farmer, keep answers short, stay practical, and admit when it isn't sure. The family memories from stories.txt are added to that prompt, and answers stream onto the screen word by word so it feels like the ghost is speaking.

What went wrong: I got stuck before I wrote any code. I tried to install Ollama with a command meant for PowerShell while I was in Git Bash, so it failed. Then the installer hung, and my terminal said ollama wasn't recognized. I switched to the regular Windows installer, opened a fresh terminal, and it worked. That taught me that local AI is not hard to run, but the setup can fight you if you are new to it.

What surprised me: the ghost started inventing his own backstory. When I asked about aphids, he told me about a "dreadful infestation" from his own farming days and called them "little green devils." I never wrote that anywhere. A tiny 1B-parameter model, running on my laptop with no internet, gave a made-up ghost a personality. It's not always accurate, which is why I told him in the prompt never to invent exact chemical doses, but for a ghost story it's the right kind of wrong.

MODEL = "gemma3:1b"). A closed, cloud-based chatbot would need internet and an account, and would send private family stories to someone else's servers. For a project about preserving memories, that felt wrong.

Día de los Muertos honors those who came before us, and marigolds, the flower of the ofrenda, are a crop. For many families, the people we remember include farmers whose knowledge was never written down. Ghost Farmer is a small way to keep that knowledge speaking. You write down what your grandparents taught you, and a ghost carries it into the next season.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @gemma 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ghost-farmer-an-offl…] indexed:0 read:2min 2026-10-31 · —