I self-host my agent factory A developer running an open source Go CMS and a Go/Vue SaaS app has spent about three months self-hosting an "agent factory" in which coding agents run on a single AMD Ryzen 5 5600 desktop with 32 GB RAM and an RTX 3060, while heavy commands like `go test ./...`, `go vet`, `golangci-lint`, `vite build` and `vue-tsc` are offloaded to six old PCs on the home LAN running Fedora 44 Server. The setup was shaped by a generated GraphQL file that takes about 6.4 GB of RAM to compile, and by OOM kills and hard freezes in late September when five or six agents each ran their own test suite in separate git worktrees. The author positions the design as the inverse of Dmitry Kudryavtsev's self-hosted software development factory, which moves whole agents into isolated Proxmox VMs, and credits Kudryavtsev's approach as better on isolation. How I self-host my agent factory Dmitry Kudryavtsev recently wrote up his self-hosted software development factory https://kudmitry.com/articles/self-hosted-software-development-factory/ . He runs a Proxmox box with one VM per project, Forgejo issues that start Claude Code sessions, Semaphore for deploys, and a secrets proxy so the agents never see an API key. I read about it on the hacker news front page and I thought I would write how I do it just so that others are also encouraged to write theirs. I've been running something with the same goal for about three months: agents doing most of the typing/coding while I review and decide. I made nearly every decision the other way round compared to Dmitry. He moved the agents off his laptop and into isolated VMs. I kept the agents on my desktop and moved the heavy commands they run onto a pile of old PCs. This post covers what that looks like, why I chose it, and where his design is better than mine. My laptop or phone now act as remote terminals only and that is why working on an Ipad is just fine in on some days. The project behind all this is an open source Go CMS https://github.com/Zen-Labs-Corp/hatamoto , plus a larger Go and Vue SaaS app. Both have big test suites, and one of them has a generated GraphQL file that takes about 6.4 GB of RAM to compile. This bottleneck shaped everything and why I chose this setup The hardware The desktop is where I work and where every agent runs: - AMD Ryzen 5 5600 6 cores, 12 threads , 32 GB RAM, RTX 3060 - Ubuntu 26.04 Although Fedora now looks tempting - Runs the agent harness, the terminal multiplexer, Postgres for local dev, a local Ollama for small jobs, and about twenty systemd timers - I use Pi harness, Herdr for multiplexing, Tailscale for network, systemd mostly, Github for code as it is open source and I need free actions and a heavy custom /pipeline that I wrote for all agents that has so many bells and whistles built in including a security audit at end of each run. The build servers are six machines I already owned or picked up cheaply. None of them was bought for this: | Host | CPU | RAM | Disk | Notes | |---|---|---|---|---| | zen-corner | i5-4460 4c | 24 GB | Samsung 860 EVO SSD | the workhorse, takes about half of all jobs | | zen-h97 | i5-4460 4c | 32 GB | MX500 SSD + HDD | the most memory, so it takes heavy compiles | | zen-komorebi | i3-6100 2c/4t | 24 GB | HDD | | | zen-msi | i3-7100 2c/4t | 24 GB | HDD | an old gaming laptop with a dead battery | | zen-asus | i7-3770K 4c/8t | 10 GB 1333HZ - I call this the AI turbo | MX500 SSD + HDD | fast CPU, little RAM, gets light jobs only | | zen-h110 | Skylake-era | 16 GB | | currently offline; the queue skips it | They all run Fedora 44 Server, headless, on the home LAN, and they're on my tailnet. Together they cost me roughly nothing, and they use less power than the desktop does when it's swapping. Decision 1: offload commands, not agents An agent session mostly waits. It sends a prompt, waits for the model, reads a file, and edits a file. That takes very little CPU. What hurts is what it runs: go test ./... , go vet , golangci-lint , vite build , vue-tsc . With five or six agents working at once, each running its own test suite in its own git worktree, my desktop went into OOM kills and hard freezes several times in late September. Dmitry's answer is to move the whole agent into a VM. Mine is to keep the agents where I can see them and move only the expensive commands. I see three advantages with my approach: 1. One environment. Every agent shares my editor, my dotfiles, my git config, my Postgres, and my browser profile for screenshots. There's nothing to provision. 2. Compute adds up. Six old 4-core machines are a lot of test throughput. 3. Nothing changes for the agent. It runs go test like it always does but a wrapper decides where that actually run. Isolation is the main decision driver here for me. I come back to that below, because it's the reason that made me change things. The go-queue: a wrapper around go ~/.local/bin/go sits ahead of the real go on PATH . It's a bash script I built. Every go build , go test and go vet from every terminal, agent, worktree and Makefile on the desktop goes through it. Weights. Each command gets a weight. Modules listed in a heavy file the SaaS app with the 6.4 GB generated file are heavy. Everything else is light. Locally, a heavy job runs alone: it waits for every running Go job and blocks new ones. Light jobs share three local slots. A turnstile lock stops light jobs from starving a waiting heavy one. Remote hosts by memory. Each host has a line in a config file: name, SSH target, memory budget RAM minus 2 GB , and max jobs. Every job reserves its expected peak: 7 GB for a heavy compile, 3 GB for other heavy-module work, 2 GB for light. A host accepts a job while reserved + need <= budget and it's under its job cap. The least-loaded reachable host gets the next job. Sometimes that blows up the machine despite the limits and so I built an auto reboot when that happens and the machine hangs for a while. Routing: - Heavy work goes remote and waits for room. It only runs locally if no host is reachable. - Tests go remote first, and fall back to a local slot if every host is full. - Light builds and vets use a local slot first, then go remote when the local slots are busy. - golangci-lint , staticcheck , govulncheck , gosec and go run