Skip to main content

5  Building an Agentic Engineering Working Stack



You have a machine. It is time to wake it up.

In this chapter, we build an agentic engineering stack from the bare metal up. We do not rely on hosted platforms that hide the mechanics. You have to understand the rules of the system so you can bend them. We will start with the operating system, load the editor, download the weights, and build the harnesses that turn static code into autonomous operators.

5.1 Block 0: Pre-Flight

Before loading models, prepare a stable foundation: choose an operating system, configure the editor, and isolate development runtimes.

graph TD
    Hardware["Bare Metal"] --> Kernel["Linux Kernel"]
    Kernel --> UserSpace["User Space (mise, uv, containers)"]
    UserSpace --> Editor["The Editor (VS Code)"]
    Editor --> Workspace["Project: Agentic Stack"]

5.2 Server Instances: Choosing Your Ground in the Real World

Before you jack an agent into the matrix, you need bare metal or a VPS you control. Desktop distros keep training wheels bolted on; server instances strip away the illusion and leave only the kernel, the package manager, and the shell.

Table 5.1: GNU/Linux server distributions mapped by lineage, package manager, cadence, and role in the construct.
Distribution Lineage Package Manager Release Cadence Role in the Construct
Debian Debian apt Stable (~2 yr) Baseline bare-metal host; quiet and predictable
Ubuntu Server Debian apt LTS (5 yr) / 6 mo Fastest path to CUDA and GPU drivers
Tuxee Debian apt Container / web UI Lightweight server & agent construct; persistent browser terminal + file workspace
RHEL Red Hat dnf Long-term (10 yr) Hardened SELinux host for locked-down rigs
Rocky Linux Red Hat dnf Long-term (10 yr) 1:1 RHEL rebuild without gatekeepers
AlmaLinux Red Hat dnf Long-term (10 yr) Community-stewarded RHEL ABI mirror
CentOS Stream Red Hat dnf Rolling preview Midstream staging ground ahead of RHEL
Fedora Server Red Hat dnf Fast (~13 mo) Recent kernels for fresh GPU silicon
Arch Linux Arch pacman / AUR Rolling release Minimal base; total control for operators
Omarchy Arch pacman / AUR Rolling release Hyprland + Quickshell keyboard-driven operator cockpit
openSUSE Leap / SLES SUSE zypper Fixed / Long-term Btrfs snapshots and YaST rollback safety
Alpine Linux Independent apk 6 mo (musl libc) Minimalist image for sandboxed containers
NixOS Independent nix 6 mo / Unstable Declarative, reproducible host builds
flowchart TB
    subgraph DEB["Debian Lineage · apt"]
        direction LR
        D1["<b>Debian</b><br/>Stable (~2 yr)<br/><i>Baseline bare-metal host</i>"]
        D2["<b>Ubuntu Server</b><br/>LTS (5 yr) / 6 mo<br/><i>Fastest path to CUDA & GPU drivers</i>"]
        D3["<b>Tuxee</b><br/>Debian-based · apt<br/><i>Lightweight server & agent construct; browser terminal + files</i>"]
    end

    subgraph RH["Red Hat Lineage · dnf"]
        direction LR
        R1["<b>RHEL</b><br/>10 yr lifecycle<br/><i>Hardened SELinux host</i>"]
        R2["<b>Rocky Linux</b><br/>10 yr lifecycle<br/><i>1:1 RHEL rebuild</i>"]
        R3["<b>AlmaLinux</b><br/>10 yr lifecycle<br/><i>Community RHEL ABI mirror</i>"]
        R4["<b>CentOS Stream</b><br/>Rolling preview<br/><i>Midstream ahead of RHEL</i>"]
        R5["<b>Fedora Server</b><br/>~13 mo cycle<br/><i>Recent kernels for new GPUs</i>"]
    end

    subgraph ARCH["Arch Lineage · pacman / AUR"]
        direction LR
        AR1["<b>Arch Linux</b><br/>Rolling release<br/><i>Minimal base; total control for operators</i>"]
        AR2["<b>Omarchy</b><br/>Arch + Hyprland / Quickshell<br/><i>Keyboard-driven operator cockpit</i>"]
    end

    subgraph IND["SUSE & Independent"]
        direction LR
        S1["<b>openSUSE Leap / SLES</b><br/>zypper · Fixed<br/><i>Btrfs snapshots & YaST rollback</i>"]
        A1["<b>Alpine Linux</b><br/>apk · 6 mo (musl)<br/><i>Minimalist container sandboxes</i>"]
        N1["<b>NixOS</b><br/>nix · Declarative<br/><i>Reproducible host builds</i>"]
    end

    DEB ~~~ RH ~~~ ARCH ~~~ IND

    style DEB fill:#101010,stroke:#32343d,color:#e6e8ee
    style RH fill:#101010,stroke:#32343d,color:#e6e8ee
    style ARCH fill:#101010,stroke:#32343d,color:#e6e8ee
    style IND fill:#101010,stroke:#32343d,color:#e6e8ee
    classDef default fill:#1c1d21,stroke:#444854,color:#e6e8ee,stroke-width:1px

Figure 5.1: GNU/Linux server distributions mapped by lineage, package manager, cadence, and role in the construct.

{{< include chapters/blocks/labs/lab-0.1-linux-distribution-choices.qmd >}}

{{< include chapters/blocks/labs/lab-0.2-vscode.qmd >}}

{{< include chapters/blocks/labs/lab-0.3-runtime-isolation.qmd >}}

5.3 Block 1: Models

5.4 Block 2: Running Models

5.5 Block 3: Agents and Harnesses

5.6 Block 4: Orchestrating the Swarm

5.7 Block 5: Utilities

Combine models, harnesses, tools, and operational safeguards into a stack that fits the work.

5.8 Building Blocks

Will be made up of building blocks and microlabs. Each block will have a set of labs that can be completed in order to build a working stack.

  • each block should be an include {{< include >}}
  • each lab/microlab should be an include {{< include >}}

E.g. Block 0: Pre-Flight The Universal GNU/Linux & VS Code Workbench

Block 0: Pre-Flight Block 1: Introduction & Fundamentals {Building Blocks} Block 2: Models Block 3: Running models {locally, hosted, cloud} Block 4: Agents and Harnesses Block 5: Orchastrating the swarm {Multi-Agent Systems} Block 6: Misc tools and utilities

E.g. - microlabs - Lab 0.1: GNU/Linux distrubution choices - Lab 0.2: VS Code installation and configuration - Lab 0.2.1: Extension installation - Lab 0.2.2: Theme and settings

5.9 NVIDIA Working Stack

Describe the NVIDIA-based stack here.

5.9.1 Components

  • Model
  • Inference runtime
  • Agent harness
  • Security and governance

5.10 Starting points

  • A minimal personal agent stack can pair a local model such as Ollama or Jan with a harness, MCP tools, and memory.
  • An always-on personal agent can combine a workspace such as Odysseus or Ajax with a messaging gateway such as OpenClaw or Hermes.
  • A coding stack can combine OpenHands or OpenCode with repository context (DOX) and sandboxed execution.

5.11 Practical considerations

  • Incorporate calibrated decision models such as Jev and RLCD for routing, gating, and confidence-based escalation.
  • Define containment and permission models.
  • Understand the cost and token economics of long-running agents.
  • Observe and debug multi-step runs.
  • Update skills and memory without destabilizing the system.