The fix that bothered me

Watch from 0:00 on YouTube

I audited every AI skill installed on my Mac, 140 of them, and fixed most of what I found. One fix bothered me. An SEO skill I use has a weakness I couldn’t patch: it follows redirects and trusts DNS in a way that a hostile website can turn against my home network. My mitigation was to stop pointing it at anything dangerous. I gave up a capability and called it a fix.

That logic generalises badly. Every skill I can’t fully trust becomes a skill I use less. Do that enough times and you’ve solved your security problem by not using your tools.

So I decided to build a computer where that isn’t the trade.

The thing I had backwards

Watch from 0:55 on YouTube

My starting idea was to run the dangerous skills on a second machine. I have a private overlay network with a handful of nodes on it, Raspberry Pis, a Windows box and a cloud VM, so I’d put a second agent on one of those and be careful it couldn’t reach the others.

That framing lasted until I measured it. I already have unrestricted shell on every one of those nodes. On 2 of the Pis, the agent runs as root, not because anyone chose that, but because no unelevated account was ever configured, so every command I send lands as user ID 0. A second agent on one of those machines adds no reach that doesn’t already exist.

I’d been thinking about the wrong risk. What a second agent adds isn’t access. It’s autonomy: an agent running in loops, between my turns, unsupervised, with nobody reading each step.

That changed the whole design. If the risk is autonomy, then restricting what the agent is allowed to do is the wrong lever, because a restriction is a rule, and rules are things an agent with root can edit. The lever is the environment. Make the walls real, and then it genuinely doesn’t matter what the agent decides to try.

This is the most useful idea here, so I’m dwelling on it. My first instinct was confidently wrong, and one measurement corrected it.

What I measured first

Watch from 2:22 on YouTube

3 things, all on live hardware, before spending anything.

1. Does network isolation actually hold? My overlay has a property I’d hit before: you can’t filter peer by peer, because every peer arrives looking like the gateway address. There’s nothing to filter on. So the unit of isolation isn’t a firewall rule, it’s network membership. I checked:

Node Peers it can see
a Pi alone on its own network 1, itself
a Pi on the main network 4

A node alone on a network has no path to anything. That’s not a setting I have to maintain. It’s the shape of the thing.

2. Is the guest segment real, or just a different subnet on the same router? The Pi on the isolated network is on my guest wifi. From it, I probed my actual home network: the router, the machine running Home Assistant, the managed switch. Nothing: no ping, no TCP, 4 targets, all refused. Then I swept the whole guest subnet and found 2 live hosts, the Pi itself and the gateway, and the gateway has no open ports at all from the guest side. No admin page, no SSH, not even DNS over TCP.

3. What’s actually on the machine I was about to use? This is the one I nearly skipped, and it killed the plan. That isolated Pi was the obvious host: already on the guest segment, already walled off, apparently idle. So I looked at what it was running. 11 containers: a news aggregator with a web front end, an API, a worker, a scheduler, a Redis instance and 2 Postgres databases, plus a price monitor, a card game and a static site.

It isn’t empty. It’s a small production environment. “Isolated to just that device” is only a meaningful sentence if you know what’s on the device. I’d have put an agent that runs untrusted web content one namespace away from 2 live databases, and I’d have described that as containment.

So: a new machine. A Dell mini PC, $300 Canadian, dedicated to this and nothing else.

The design

Watch from 4:40 on YouTube

A virtual machine, not a container. Containers were my first recommendation, and most of the argument holds: root inside, unprivileged outside, which neatly ends the fight between “this agent should have no privileges” and “this agent genuinely needs to install packages and drive a browser”. But a VM wins on one thing, and it’s decisive: snapshots. A container rebuild gives you a clean image. A VM snapshot gives you a clean image plus the tuned state you spent a week building. That turns the posture from “I hope the containment held” into “assume it didn’t, and revert”. For a box whose whole job is running untrusted content, being able to say “I don’t need to work out what happened, I just need this to be 20 minutes ago” is the feature.

The overlay agent runs on the host. Claude runs inside the guest. The machine needs my overlay agent on it or I can’t reach it at all, but that agent holds credentials, so they don’t live in the same place:

Layer What it holds
host the hypervisor and the overlay agent: my way in
guest VM Claude and the skills. No overlay agent, no overlay credentials

The nice thing about this split is that it isn’t a permissions problem any more. Claude doesn’t lack permission to read those credentials. The credentials aren’t in its filesystem. There’s no token to withhold and no config to get wrong.

And here’s where I was wrong a second time. My first draft of the firewall rules said: allowlist the handful of domains it needs, Anthropic’s API, the npm registry and a few others. That doesn’t work. The firewall I’m using filters addresses, not names, so the moment a CDN rotates an address the allowlist breaks, or worse, silently stops matching what you think it matches.

So the rule became the one that actually holds: the VM may not reach any private address at all. Not my home network, not the guest segment it sits on, not my overlay range. Everything else, the open internet, is allowed. It’s a blunter rule and a stronger one, and it’s the rule that makes a failure elsewhere survivable: if the guest wifi’s client isolation turns out to be switched off, this rule is what’s still standing.

The rule also keeps a counter. In a month I can ask how many times the agent tried to reach my home network. That’s the closest thing I’ll ever have to a log of intent.

The name

Watch from 7:11 on YouTube

It had been “Claude2” in my notes the whole time, and functional labels invite you to treat a thing as infrastructure. This one has a role. I talk to it, so it gets a name.

I wanted something short, Japanese, and genuinely gender-neutral, not just neutral-sounding to an English speaker, which rules out most of the obvious picks. It’s Nagi, 凪: the word for the dead calm when the land breeze and the sea breeze cancel each other out and the water goes completely flat. A stillness that exists because two opposing forces are in balance.

Which is the entire design. An agent running free, inside walls that hold.

What it costs

Watch from 7:49 on YouTube

The cost, stated up front: my SEO crawl won’t run on Nagi. It provisions short-lived cloud machines on my overlay to do its crawling, and that needs exactly the overlay credentials I’ve deliberately kept off Nagi. So it stays outside, launched from my Mac onto a throwaway machine. That’s the price of the design, and I’d rather name it now than discover it later and call it a bug.

And 5 things I didn’t know:

  1. Is client isolation actually on for my guest wifi? I couldn’t test it. There was one device on that segment, so there was nothing for it to fail to reach; it needed 2. That’s an acceptance test, not a fact, and if it came back wrong, the host (not the VM, the host) could reach those 2 Postgres databases.
  2. Can an overlay node credential be replayed to control other nodes? The whole host-holds-the-credential design assumes not. I needed to confirm that rather than assume it.
  3. Does the Dell even have a wifi card? These mini PCs often ship with the slot empty, and the guest network is a wifi network.
  4. Which account pays? If the agent runs on my main account, a runaway loop competes for quota with the sessions I’d use to stop it.
  5. Which API keys am I willing to put on a machine designed on the assumption that it gets compromised? Anything on Nagi can be stolen. The answer has to be: only keys I’d be happy to revoke that afternoon.

That was the bet. My first round of fixes made my main machine safer by making it smaller: fewer permissions, fewer folders, fewer things I was willing to point my tools at. This is the opposite move. Build one machine where the walls are real, and then stop negotiating with the agent about what it’s allowed to do inside them.

I wrote all of it down before starting: every decision, why I made it, and what I believed at the time. Not because I expected to be right. The only honest way to find out what you got wrong is to have written down what you thought beforehand.

Answered since

Watch from 10:06 on YouTube

I’ve built it since, and all 5 questions have answers. The wifi card was there. The credential can’t be replayed. The first answer on client isolation was wrong, a test that passed for the wrong reason, and it took a second, better test to prove the isolation was real. That’s in The Build.

If you’re planning something like this, that’s the whole method. Write down what you believe. Then go and measure it. The measurement that proves you wrong is the one that was worth doing.