Why I built it
I wanted agents to keep working when I'm away from my desk: pick up a coding task I send from my phone, draft posts for my channels, send me a morning news digest, and remember what we figured out last week. Two constraints shaped everything else. The office Mac mini is a company asset, so nothing on it could be on the critical path. And code only counts once it's on GitHub, so every machine and every agent works from the same remote.
The hub is a small always-on mini PC at home. Its OS disk is treated as disposable, and all state lives on a separate data disk, so a reinstall costs an afternoon and loses nothing.
Architecture
Discord is the one place where I talk to agents. Telegram only receives alerts. Everything on the server binds to loopback or a private network; the few endpoints reachable from the internet go through Cloudflare Tunnel with authentication in front, and the router has no open ports.
Coding: from slash commands to a conversation
The first version (July 2026) was a Discord bot with no LLM in the dispatch path. Slash commands like /task, /diff and /pr fed a per-repo queue, and a small Haiku classifier only decided how heavy a task was: read-only, edit, or hand it to a stronger model. An earlier experiment with an LLM as the orchestrator kept running into token limits, while routing, queueing and reporting are deterministic work.
The second version (October 2026) replaced the slash commands with a long-running Claude Code session connected to Discord through Channels, so I just describe the task. It finds or clones the repo, opens a thread, and starts a headless worker in a fresh git worktree cut from the remote main branch. Up to five workers run in parallel and report back in their threads.
A few rules come from things that went wrong or nearly did:
- The prompt reaches the worker through a file, never the shell. A quote, a
$()or a leading dash in a chat message can't turn into a command. - One worktree per task. Two workers sharing a checkout inherited each other's branches.
- Git goes through a validating wrapper, not permission rules. Claude Code's permission patterns match literally only up to the first
*, so options and refspecs after it slip through. The wrapper allows log, diff, status, and a push to abot/branch, and the push happens only when I ask for it. - The dispatcher runs as its own unprivileged user, with no sudo, no access to my home directory, and fine-grained tokens scoped per repository owner.
Content and news: agents draft, people publish
Lyra is a content team of six Hermes Agent profiles: a manager, a researcher, an editor, and writers for Threads, LinkedIn and Medium. Eight scheduled jobs run the evening drafting batch, the weekly reflection and the reports. None of them can post. A separate deterministic desk bot is the only container that holds publishing credentials, and it publishes a draft only after I approve it with a button in Discord. Replies and follows stay manual for good.
The weekly reflection proposes changes to the writing rules, and I accept or reject each one. It can also propose removing a rule. I added that after the rule set grew so strict that the quality check rejected every draft in a batch.
Mira, the news curator, posts a digest every morning at 07:00. Posting and de-duplication are code, not model decisions: the digest may only cite URLs that a tool returned that day, and its toolsets are split so that web text read while writing the digest can never change its saved preferences.
Isolation is a test, not a setting
Every stack ships with a live isolation test that runs after each deploy: 127 checks across four stacks (31, 22, 47 and 27). They confirm that each container runs as its own user with no published ports, that vault mounts are read-only and expose only the folders that agent is allowed to see, that root filesystems are read-only where they should be, that publishing secrets are absent from the agent containers, and that a per-stack egress firewall allows the internet while blocking the LAN, the private network, the host and cloud metadata endpoints.
The coding workers are the exception: they rely on user separation rather than containers, and a per-task sandbox for them is the next item on the list.
One memory across three machines
When a Claude Code session ends on either of my Macs, a hook queues the transcript. A launchd job drains the queue every five minutes: it scrubs secrets, runs claude -p to extract structured blocks, and writes them into six folders of an Obsidian vault: Daily, Projects, Bugs, Patterns, Decisions and Knowledge. The vault now holds about 900 notes from roughly 300 sessions.
I extended this pipeline from a single-folder daily log that a former colleague started. My part was the six-category split, de-duplicating resumed sessions, fixing links that Obsidian silently ignored (graph links went from 115 to 438 after the migration), and incremental capture, after a session marked "too short to capture" at 5 lines grew to 6,299 lines and was never saved.
The vault is a private git repo cloned on all three machines and synced every 10 minutes. Each machine writes only to its own folder, so syncs never conflict. A second repo carries my Claude Code rules, skills and memory to every machine on the same schedule, and the server's dispatcher reads both read-only. The vault is also what vaultgate searches.
Watching it
HQ, a SvelteKit, Bun and SQLite control panel, shows the health of every agent group, the host and Docker. Each stack exports a small status file; the panel never gets the Docker socket, and a root-owned probe writes only named fields, so container secrets can't leak into it. Since November it also holds my task list, with a morning reminder in Discord and 12 MCP tools so any Claude session can read and update it.
Healthchecks.io dead-man checks cover the server, the dispatcher, each agent stack and the backups, and alert me on Telegram. A separate timer checks five production websites and posts a daily digest.
What running it taught me
- "Running" is not "working". After a power cut, the dispatcher came back "active" but had made its one Discord login attempt before DNS answered, so it sat connected to nothing for 11 hours. The same boot, two firewall units raced and one container ran for about 11 hours without its egress rules. Health checks now test the actual capability, the units are ordered and idempotent, and a regression test with a fake iptables covers the race.
- A single prompt can stall everything. Channels handles tool calls one at a time, so one unanswered permission prompt froze the dispatcher for 64 minutes. The worker launcher is pre-approved now.
- Stopping is not retiring. I stopped the first content agent with
launchctl bootout, which only unloads the job. The plist stayed, the agent came back after a reboot, and it quietly spent subscription quota every evening for weeks. Retiring now means removing the plist. - An alert nobody acts on is not monitoring. A subscription login lost its refresh token and the coding agent went offline while a critical alert sat on the panel for weeks. The fix is less about the token and more about where alerts land.