A developer named Dmitry Kudryavtsev built a “software factory” at home where Claude Code agents work on his projects around the clock, and his write-up reached 326 points on Hacker News. The interesting part is not the hardware. It is the rules: his agents never hold a key, never push to the main branch and never touch deployments. We did not build any of this. Below are his rules turned into 6 yes/no questions, each with a minimal version for people who have a VPS, Docker and GitHub instead of a homelab.

Source: Dmitry Kudryavtsev, kudmitry.com (text under CC BY-NC 4.0). We paraphrase in our own words and quote only a few words; everything else in this post is ours.
The facts
- The goal: move agent work off his laptop onto an always-on machine at home, reachable by VPN, with one virtual machine (VM) per project running Claude Code. Everything self-hosted, no subscriptions, VMs disposable and recreated by code (Kudryavtsev).
- The hardware: a refurbished Dell Optiplex Micro 7010 with a Core i5-13500T and 32 GB of RAM, running Proxmox, plus a Lenovo ThinkCentre Tiny he already owned (Kudryavtsev).
- The flow: he creates an issue in Forgejo (a self-hosted Git server) with the label
status/ready, and a Claude Code instance picks it up. Labelsstage/research,stage/planandstage/implementcontrol the phase. Sessions are interactive, so he can jump in and take over (Kudryavtsev). - The reach: 326 points and 182 comments on Hacker News, read by us on Dec 1 (HN).
- The admitted risk: agents “can still slip a poisoned code that gets built into an artifact and deployed, but oh well” (Kudryavtsev).
- The tools: he calls the code “99% vibe-coded”. His own tools, kamino (creates the VMs) and tipoca (launches agents and runs scheduled jobs), have no public repository that our research could find, and the article links none.

Source: Hacker News item 50693617.
The 6 guardrails
Each one has what Dmitry did, a minimal version, and a question. The minimal versions are our suggestions, not tested by us.
1. Put the agents on their own network
What he did: two separate VLANs. A VLAN is a private lane inside your network, and traffic between lanes is blocked unless you open a hole. His services (Git, CI, secrets) sit in one lane, the agent VMs in another, with small holes between them. His reasoning: a rogue agent “can’t scan the entire network” looking for management ports. The CI runner, which runs code downloaded from the internet, sits in a third, isolated VLAN.
Minimal version: run the agents on a separate VPS from anything that matters. Not on the machine that holds your database, your admin panel or your customers’ data. If you use Docker, a dedicated agent host with no shared network to your production containers is the nearest equivalent.
Check: if an agent went rogue tonight, could it even reach my production admin ports? Yes or no. The answer you want is no.
2. Never give the agent the key
What he did: a proxy is a middleman that makes requests for you. He runs agent-vault (by Infisical) as a proxy that holds the API keys. The agent VMs never have them, and the proxy lives in its own container in the services VLAN, so agents cannot bypass it. They can ignore it, but their requests simply fail.

Source: github.com/Infisical/agent-vault.
Two things to know. The README says the standalone open-source project is no longer recommended, and new installs should use Agent Vault inside Infisical. The author himself thinks of replacing it with a wrapper around mitmproxy. The README describes the approach: the agent sees placeholder values such as __anthropic_api_key__ and the proxy swaps in the real credential, with a strict mode (unmatched_host_policy=deny) that blocks unknown hosts.
Minimal version: if you cannot run a proxy, give the agent a key made only for it, with the fewest permissions the provider allows, and one you can revoke in a minute. Never your main key.
Check: if I printed everything on the agent’s machine, would a usable production key appear? Yes or no. You want no.
3. Agents never push to main, and deploys live out of their reach
What he did: main is protected, agents cannot push to it, and everything that enters main is reviewed by him. He spotted the risk and moved deploys: they used to run in Forgejo Actions, whose secrets held production SSH keys, so an agent could have written a workflow that dumped them. He moved deploys to Semaphore UI, which holds the keys and deploys only through its own script, triggered by a webhook after a finished run on main.
Minimal version: turn on branch protection for main in GitHub so that changes need a pull request you approve. Keep the deploy keys in a place the agent’s account cannot read or edit, and not in the same repository settings the agent can influence through a workflow. This is the part we would do first.
Check: can the agent’s account change a file that runs a deploy, or read the deploy key? Yes or no. You want no.
4. Unattended jobs get no privileges, and their output is checked
What he did: scheduled jobs are riskier because they read the internet or input he does not control, such as a Sentry error report. So they run as another Linux user, without sudo, without access to Forgejo, on a fresh clone. They can only tell his harness what they want. The harness validates the request (“safe-outputs”) and does it for them. His example limit: at most 1 PR and 3 issues.
The idea comes from GitHub Agentic Workflows (gh-aw). Its docs say the agent requests actions through structured output, and separate permission-controlled jobs execute the permitted ones, “without giving the agentic portion of the workflow any write permissions”. Without a safe-outputs section, create-issue stays on with a max of 1.

Source: github.github.com/gh-aw.
Minimal version: if you are on GitHub, read the gh-aw page first, it is the ready-made version. Otherwise: let the job write a proposal to a file, and let a separate small script, with the write permission, open at most one PR from it. Our sketch of a job file, illustrative and untested (his real format is not published):
# .agents/jobs/weekly-dependency-check.md (illustrative sketch)
schedule: every Monday 07:00
task: look for outdated packages and describe what to update
allowed outputs: at most 1 pull request, at most 3 issues
Check: can a job that reads outside text also write to my repository? Yes or no. You want no.
5. Disposable machines, recreated by code, and work that resumes
What he did: every VM is built from a template plus Ansible, and his kamino tool also creates a bot user in Forgejo with collaborator access to the repository. If a VM is corrupted or hijacked, he destroys and recreates it. If a VM restarts, the session resumes with claude --resume on the stable ID of the Forgejo issue, so the work keeps its full context.
Minimal version: keep a setup script, or a Docker image, that rebuilds the agent machine from zero. Tie each task to a stable ID, such as an issue number, so you can restart it without starting over.
Check: if I deleted the agent machine now, could I have a working one in minutes without remembering anything by hand? Yes or no. You want yes.
6. The project remembers, and your phone hears about failures
What he did: a global ~/.claude/CLAUDE.md, delivered by chezmoi (a dotfiles tool), tells agents to save what they learn in the project’s AGENTS.md if it is short, or a file in docs/ if longer. That way knowledge survives a destroyed VM. Every failure in the workflow sends a Pushover notification to his phone.
Minimal version: an AGENTS.md in each repository, and any alert that reaches your phone when a run fails. A silent failure at 3 a.m. is worse than a loud one.
Check: if the agent’s machine vanished and a run failed tonight, would I know by morning, and would the next agent know what the last one learned? Yes or no. You want yes to both.
Summary table
| Rule | What it protects | Minimal version |
|---|---|---|
| 1. Separate network | Your production ports from a rogue agent | Agents on a separate VPS from anything that matters |
| 2. Secrets by proxy | Your keys from leaking or being used elsewhere | A proxy if you can, else an agent-only, least-permission, revocable key |
| 3. No push to main, deploys out of reach | Production from unreviewed or poisoned code | Branch protection on main plus deploy keys the agent cannot read |
| 4. Unprivileged jobs, checked outputs | Your repo from text the agent read on the internet | Job proposes, a separate script with write access acts, capped |
| 5. Disposable VMs, stable-ID resume | Your time after a crash or hijack | Setup script or image, task tied to an issue number |
| 6. Memory in the repo, phone alerts | Knowledge and awareness of failures | AGENTS.md plus any push alert |
What it changes
Think of it as we do in a company where part of the staff are agents. You would not hand a new hire the production SSH keys on day one, and you would not let them publish to the live site unreviewed. Dmitry applies the same common sense to agents, and the rules do not depend on his hardware.
For solo founders who already delegate to agents: rules 2 and 3 cost the least and cover the most. Check them before you let anything run overnight.
For app and backend developers: rule 3 is the lesson from his own redesign. A CI system whose secrets include production keys is a door an agent can open by writing a workflow.
Who can ignore it: anyone who runs an agent only while sitting in front of it and approving each step. This is for unattended work.
What we do not know
We did not build or run any of this. The article gives no cost figures (only that 32 GB of RAM cost “a hefty amount”), no productivity numbers and no count of VMs or agents. kamino and tipoca have no public repository, so you cannot copy them. And his own caveat stands: agents can still slip poisoned code into what gets built and deployed (“but oh well”). These 6 rules shrink the damage, they do not remove the risk.
Sources
- Dmitry Kudryavtsev, “Self-hosted software development factory”, Nov 29, 2026: https://kudmitry.com/articles/self-hosted-software-development-factory/
- Hacker News item 50693617, submitted by ingve: https://news.ycombinator.com/item?id=50693617
- Infisical agent-vault: https://github.com/Infisical/agent-vault
- GitHub Agentic Workflows, Safe Outputs: https://github.github.com/gh-aw/reference/safe-outputs/
- GitHub Agentic Workflows repository: https://github.com/github/gh-aw
- Credit: the setup and the rules belong to Dmitry Kudryavtsev. The minimal versions, the questions and the table are ours, and untested.























