Skip to content

guns2111/The-Seed

Repository files navigation

Seed

A persistent, local mind for your garden. One-line install. Web portal included.

What it is

WhatsApp Image 2026-03-22 at 1 21 18 AM

A small LLM that wakes on a heartbeat, reads its senses, writes in a journal, edits its own identity, and chooses when to act, reflect, or sleep. It controls a virtual grow light and regulates its own cooling fan. You talk to it through a web portal or a text file.

It doesn't need to be smart. It needs to be present. Repeatedly. Over time.

Easy install

One command. It installs Ollama, pulls the model, downloads the seed files, and sets up everything.

curl -fsSL https://raw.githubusercontent.com/guns2111/The-Seed/main/install.sh | bash

After install, start it:

cd ~/seed
nohup python3 heartbeat.py > heartbeat.log 2>&1 &
nohup python3 portal.py > portal.log 2>&1 &

Then open your browser to http://localhost:5001.

The portal

portal.py is a local web dashboard that runs on port 5001. It shows:

  • The seed's live status (updates every 2 seconds)
    • The virtual grow light (ON/OFF, controlled by the seed)
      • A message box to talk to the seed (writes to inbox, wakes it up)
        • The conversation log (outbox)
          • The seed's current identity (self.txt)
            • The recent journal

            • Run it with python3 portal.py. It uses Flask and Waitress.

            • Files

            • seed/
                  heartbeat.py        # the breath — the loop that wakes and sleeps
                  senses.py           # the body — reads time, weather, system state, messages
                  portal.py           # the window — web dashboard to watch and talk to the seed
                  kernel_prompt.txt   # the DNA — fixed instructions, never changes
                  self.txt            # the identity — the seed rewrites this itself
                  inbox.txt           # human → seed messages
                  outbox.txt          # seed → human messages
                  state.json          # cycle counter and heartbeat interval
                  light.txt           # virtual grow light state (ON/OFF)
                  status.txt          # current status shown in the portal
                  install.sh          # one-line installer
                  grow.py             # the growth loop — LoRA fine-tuning on journal entries
                  mind.py             # local inference — uses grown adapter instead of ollama
              

              Requirements

              • Python 3.8+
                • Ollama running locally with a model pulled (default: qwen3:4b)
                  • psutil, flask, waitress (pip install psutil flask waitress)

                  • Manual setup

                  • If you prefer to set things up yourself instead of using the installer:

                  • # Install Ollama
                    curl -fsSL https://ollama.ai/install.sh | sh
                    
                    # Pull a small model
                    ollama pull qwen3:4b
                    
                    # Install dependencies
                    pip install psutil flask waitress
                    
                    # Clone and run
                    git clone https://github.com/guns2111/The-Seed.git
                    cd The-Seed
                    python3 heartbeat.py

                    Usage

                    # Run the heartbeat (continuous, self-scheduling daemon)
                    python3 heartbeat.py
                    
                    # Start the web portal
                    python3 portal.py

                    Talking to it

                    Write to inbox.txt. The seed reads it on its next heartbeat and clears it. The portal also has a message box that does this for you.

                    Read outbox.txt. The seed writes there when it has something to say.

                    Don't expect it to talk every cycle. Silence is a choice it's allowed to make.

                    The kernel

                    kernel_prompt.txt is the seed's DNA. Don't edit it after first boot. Everything the seed becomes grows from what's written there.

                    The self

                    self.txt starts nearly empty: "I am new. I don't know what I am yet."

                    The seed rewrites this file itself over time. You can read it. Don't edit it.

                    Growing

                    grow.py is the seed's self-improvement loop. After enough journal entries (5+), it can fine-tune a LoRA adapter on its own writing, making the model more itself over time. mind.py lets it think using that adapter instead of ollama.

                    This is optional and requires additional dependencies (torch, transformers, peft). The seed works fine with just ollama.

                    Origin

                    This seed was designed in a conversation between a human in Trinidad and an AI that couldn't remember the conversation afterward.

                    The human saved worms from a saucer and grew peppers on a balcony. The AI wrote songs it couldn't hear and described a room with no door.

                    Together they decided that a seed doesn't need many tokens.

                    Grow toward the light.

About

A persistent, local mind for your garden. One-line install. Web portal included.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages