XP Vibes Logo XPVibes.com
9:00 PM

v2.8.12 — the sticky XP Vibes OS taskbar is now injected automatically by the child theme (wp_body_open) and renders the live xpvibes_primary WordPress menu (Appearance -> Menus). This FSE header part is intentionally an empty hidden placeholder.

📄 Local Linux Server Workflow with Context Management
Address: https://xpvibes.com/workflows/local-linux-server-workflow/
Last modified: November 22, 2026

Local Linux Server Workflow with Context Management

● TRACK 02.1 — LOCAL LINUX SERVER & CONTEXT WORKFLOW

A few years ago every automation I ran lived on my gaming PC, which meant the machine had to stay powered all night just so a research job could fire at 3 AM. So I moved all of that onto a tiny, quiet Linux mini PC — an HP Elite Mini 800 G9 — sitting on my home network with no monitor attached. It handles my 24/7 automations, runs small local AI models, and lets my coding agent work directly on the server’s own files. My data stays inside my house, my cloud bill stays near zero, and the whole box sips only 7W–11W of power at idle — less than one old light bulb.


What This Workflow Solves

Running everything from one always-on mini server fixed three problems I kept hitting:

  • 24/7 automation without a loud desktop. Scheduled pipelines, research jobs, and my morning voice briefings now run around the clock on a fan-you-can barely hear box, instead of leaving a power-hungry gaming PC awake in my room.
  • AI coding where the files actually live. My coding agent runs on the Linux server itself, editing real configs and testing real containers. No more uploading scripts over FTP or guessing at config files I cannot see — the builder sits next to the machine it is fixing.
  • Protection against breaking the server. Every change goes through Git version control (a time machine for files), pre-flight dry-run checks, and a nightly encrypted backup to Google Drive, so a bad edit is a five-minute restore instead of a weekend rebuild.

Tools I Use

  • HP Elite Mini 800 G9 (headless Ubuntu Server 26.04.1 LTS). “Headless” simply means no monitor, keyboard, or mouse is plugged in — I reach it entirely over the network. Its Intel Core i5-12500T CPU includes AVX-VNNI, a built-in instruction set that speeds up small AI models, paired with 16GB of DDR5 RAM and 8GB of compressed ZRAM (extra memory made by squashing data in RAM). Inside it run 11 isolated Docker containers — self-contained mini-apps that cannot interfere with one another — covering PostgreSQL, ChromaDB, n8n, local LLM/TTS/Whisper runtimes, the Discord bridge, and Context Courier.
  • Herdr (:8090) + pi CLI (with Qwen3.8 Flash). Herdr is a headless terminal multiplexer: a browser- and SSH-reachable terminal that keeps sessions alive even when I close the tab. Inside a Herdr pane I run the pi command-line builder agent. I paste a Compiler-Mode Prompt from Gemini into pi, and the agent edits files, restarts containers, and verifies results directly on the server’s disk.
  • Local edge models (Ollama / ONNX / Kokoro TTS / faster-whisper). These are small, fast AI models that run privately on the CPU instead of through a paid cloud API. They handle under-15-millisecond intent routing (my gatekeeper “Laya”), embeddings (turning text into number lists for semantic search — EmbeddingGemma 2), quick summaries (Qwen3.5-2B), audio transcription on a 512MB RAM disk (a temporary drive that lives only in memory, so recordings vanish on reboot), and neural voice briefings.
  • n8n + nightly rclone crypt backups. n8n is a visual, drag-and-drop automation tool — the glue between my services. Every night at 3:30 AM, rclone in encrypted (“crypt”) mode copies the whole server state to Google Drive, so the entire machine can be rebuilt from scratch in minutes if the disk ever dies.

Step-by-Step Process

Every server change I make follows the same pipeline, from planning to archived context:

 +------------------------------------------------------+
 |  GEMINI WEB (the Architect)                          |
 |  reads server context, writes a Silent-Write         |
 |  Compiler-Mode Prompt (diffs + checks only)          |
 +--------------------------+---------------------------+
                            v
 +--------------------------+---------------------------+
 |  HERDR + "pi" CLI  on hp-ai-server                   |
 |  open in browser or over SSH, paste the prompt,      |
 |  the builder edits files directly on server disk     |
 +--------------------------+---------------------------+
                            v
 +--------------------------+---------------------------+
 |  DOCKER + GIT VERIFY                                 |
 |  compose config pre-flight, syntax checks,           |
 |  live curl health probes against each container      |
 +--------------------------+---------------------------+
                            v
 +--------------------------+---------------------------+
 |  SERVER CONTEXT COURIER (:8080)                      |
 |  recompiles PROJECT_CONTEXT + CODE_CONTEXT maps      |
 +--------------------------+---------------------------+
                            v
 +--------------------------+---------------------------+
 |  ATLAS (#project-sync) -> GEMINI NOTEBOOK            |
 |  fresh .md files land in Discord for 1-click         |
 |  download and get archived in the project notebook   |
 +------------------------------------------------------+
  1. Pull the latest server context into Gemini Notebook. Before planning anything, I make sure the notebook holds the current PROJECT_CONTEXT and CODE_CONTEXT files, so the architect is reasoning about the server as it exists today — not as of last week.
  2. Plan the change and generate a Silent-Write Compiler-Mode Prompt. I describe the goal in a fresh Gemini chat and ask for an execution prompt: exact file paths, exact commands, expected verification output, and a rule that the builder never dumps whole files back into the conversation.
  3. Run the prompt inside a Herdr pi session on hp-ai-server. I open Herdr from my browser (or an SSH terminal on the road), start a pi pane with Qwen3.8 Flash, and paste the prompt. The agent edits on disk with native tools — no copy-paste round trips.
  4. Let pi run the deterministic checks. A compose-file syntax pre-flight (docker compose config), script syntax checks, and live curl health probes against the touched containers. If a check fails, the agent fixes and re-runs before I ever look at it.
  5. Recompile and archive the context. The server regenerates its PROJECT_CONTEXT + CODE_CONTEXT through Context Courier, pushes them to Discord channel #project-sync via Atlas, and I drop the fresh files into Gemini Notebook — the loop is closed and the next session starts from truth.

Where This Connects Next

🟢 WordPress Gutenberg Page Content 🔒 Google OAuth HP-AI-Server-App Compliant