Tuesday, December 1, 2026
  • About
  • Advertise
  • Privacy & Policy
  • Contact
Unlock Your Potential With AI | AI Mind Center
  • AI News & Trends

    Edge0-145B on a laptop? The 29GB claim, checked

    Gemini2.5 Pro (I/O edition) First Look: How to Get Access

    Gemini2.5 Pro (I/O edition) First Look: How to Get Access

    May the Fourth be with you: Launching AI MIND CENTER

    May the Fourth be with you: Launching AI MIND CENTER

  • AI Productivity Tools

    Seedream 5.5 blind test: FLUX 3 quality, 15x cheaper

    AI influencer character reference and cloned voice waveform on the left, three phone videos of the character on the right

    How to Create an AI Influencer: The Full Pipeline, the Failures, and What It Actually Costs

    The 17 AI Tools Actually Worth Using in 2026

    ⚡ Best AI Writing Tools 2025: Transform Your Content Creation Game

    ⚡ Best AI Writing Tools 2025: Transform Your Content Creation Game

    Top 15 AI Tools Every Developer Should Be Using in 2025

    Top 15 AI Tools Every Developer Should Be Using in 2025

  • AI for Developers

    GLM-5.4 Has No Benchmark Table: Run a 5-Task Test

    Inkling 2 Mini: Will It Run on Your Machine?

    Same model, up to 5x the cost? What Runta’s test says

    MAI Code 2: 96% of Opus at 5% of the cost?

    Getting Started with OpenAI’s API: A Practical Guide for Developers (2026 Edition)

    Getting Started with OpenAI’s API: A Practical Guide for Developers (2026 Edition)

    How to Use GitHub Copilot: From Beginner to Advanced (Complete 2026 Guide)

  • AI in Game Development

    GTA VI’s AI line, and the Steam rule for your game

    The Ultimate Guide to AI-Generated Assets in Unreal Engine 5.3

    7 AI Game Development Tools that Are Changing the Industry

    7 AI Game Development Tools that Are Changing the Industry

  • AI Agents & Automation
No Result
View All Result
  • AI News & Trends

    Edge0-145B on a laptop? The 29GB claim, checked

    Gemini2.5 Pro (I/O edition) First Look: How to Get Access

    Gemini2.5 Pro (I/O edition) First Look: How to Get Access

    May the Fourth be with you: Launching AI MIND CENTER

    May the Fourth be with you: Launching AI MIND CENTER

  • AI Productivity Tools

    Seedream 5.5 blind test: FLUX 3 quality, 15x cheaper

    AI influencer character reference and cloned voice waveform on the left, three phone videos of the character on the right

    How to Create an AI Influencer: The Full Pipeline, the Failures, and What It Actually Costs

    The 17 AI Tools Actually Worth Using in 2026

    ⚡ Best AI Writing Tools 2025: Transform Your Content Creation Game

    ⚡ Best AI Writing Tools 2025: Transform Your Content Creation Game

    Top 15 AI Tools Every Developer Should Be Using in 2025

    Top 15 AI Tools Every Developer Should Be Using in 2025

  • AI for Developers

    GLM-5.4 Has No Benchmark Table: Run a 5-Task Test

    Inkling 2 Mini: Will It Run on Your Machine?

    Same model, up to 5x the cost? What Runta’s test says

    MAI Code 2: 96% of Opus at 5% of the cost?

    Getting Started with OpenAI’s API: A Practical Guide for Developers (2026 Edition)

    Getting Started with OpenAI’s API: A Practical Guide for Developers (2026 Edition)

    How to Use GitHub Copilot: From Beginner to Advanced (Complete 2026 Guide)

  • AI in Game Development

    GTA VI’s AI line, and the Steam rule for your game

    The Ultimate Guide to AI-Generated Assets in Unreal Engine 5.3

    7 AI Game Development Tools that Are Changing the Industry

    7 AI Game Development Tools that Are Changing the Industry

  • AI Agents & Automation
No Result
View All Result
Unlock Your Potential With AI | AI Mind Center
No Result
View All Result
Home AI Agents & Automation

6 Guardrails Before Your AI Agent Works While You Sleep

Felipe Machado by Felipe Machado
December 1, 2026
in AI Agents & Automation
9
0
16
SHARES
130
VIEWS
Share on FacebookShare on XShare on Linkedin

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.

Header of Dmitry Kudryavtsev's article 'Self-hosted software development factory', dated November 29, 2026
Header of Dmitry Kudryavtsev's article 'Self-hosted software development factory', dated November 29, 2026

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. Labels stage/research, stage/plan and stage/implement control 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.
Hacker News page for the article, showing 326 points
Hacker News page for the article, showing 326 points

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.

README of the Infisical agent-vault repository on GitHub, described as an HTTP credential proxy and vault for AI agents
README of the Infisical agent-vault repository on GitHub, described as an HTTP credential proxy and vault for AI agents

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.

Safe Outputs reference page of GitHub Agentic Workflows (gh-aw)
Safe Outputs reference page of GitHub Agentic Workflows (gh-aw)

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.
Felipe Machado

Felipe Machado

I'm truly excited about what AI has to offer—especially in how it can unlock our potential across every area of life. I dive deep into a variety of AI-related topics and share the most valuable insights and tools I've discovered that are helping me every day. That way, you don’t have to spend hours researching—I’ve done the hard work for you, so you can save time and focus on what matters most.

Related Posts

AI Agents & Automation

Gmail Agents Must Use MCP by Feb 1: The Budget Math

November 27, 2026
AI Agents & Automation

Not Firing, Not Hiring: A Playbook for AI Review Agents

November 26, 2026
AI Agents & Automation

Your ZDR Flag Only Binds the First Hop: Check It

November 23, 2026

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

Unlock Your Potential With AI | AI Mind Center

Unlock your potential with AI Mind Center! Explore AI tools, tutorials, and inspiration to grow, create, and geek out.

Follow Us

Subscribe to our newsletter!

Browse by Category

  • AI Agents & Automation
  • AI for Developers
  • AI in Game Development
  • AI News & Trends
  • AI Productivity Tools

Recent News

6 Guardrails Before Your AI Agent Works While You Sleep

December 1, 2026

Gmail Agents Must Use MCP by Feb 1: The Budget Math

November 27, 2026

Not Firing, Not Hiring: A Playbook for AI Review Agents

November 26, 2026
  • About
  • Advertise
  • Privacy & Policy
  • Contact

© 2026 | Website Made By aimindcenter.com.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • AI News & Trends
  • AI Productivity Tools
  • AI in Game Development
  • AI for Developers
  • AI Agents & Automation

© 2026 | Website Made By aimindcenter.com.

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.