# When did we decide coding agents could have our whole computers?

> Source: <https://sgnt.ai/p/agents-whole-computer/>
> Published: 2026-12-05 00:00:00+00:00

**Recommendation:** Sandbox coding agents in Docker with only project-folder access and age-encrypted credentials decrypted at launch, and segment containers by client on separate machines to limit blast radius.
More in the playbook "Securing agents and AI tools": <https://wpnews.pro/playbooks/agent-security>

# When did we decide coding agents could have our whole computers?

*(I wrote the article, ChatGPT painted the picture)*

Do you remember where you were when you started using a password manager? I do! I was sat at my mother-in-law’s house, 17th January 2011, and realized I’d almost certainly had the password I used for everything leaked, and it was time to put on my big boy pants and move to per-site passwords.

I think today we’re in a place where you would seriously question a technical colleague who wasn’t using a password manager, right? Friends and family are more difficult, and I’m still riding the high of getting my father-in-law on 1Password last year, and him having subsequently gotten his brother using it. But for your technical colleagues, using a password manager is now table stakes.

I remember where I was when I decided to use a password manager, but I don’t remember where I was when I made a conscious decision to let a coding agent access my whole computer.

I feel like the progression has been from posting tiny snippets of code into an interactive Stack Overflow replacement, to whole files, to “well here’s the codebase” and finally to “here’s the whole computer with decades of bash history and my SSH agent and a GitHub token”, without properly taking stock and asking “what the fuck are we actually doing here?”

I’ve been regularly scanning my agent transcripts for credentials (along with my home directory, fwiw), and it’s not unusual to find credentials in there. Try as they might, the little guys can’t help themselves accidentally leaking the occasional secret, even if they profess to feel real sad about it afterwards. Like humans, they fuck it up, often don’t realize they’ve fucked it up, and we should really be doing our best to limit the blast radius.

And this is well before we consider the gigantic pain in the ass that agent-backed malware is going to be. You’re no longer going to be able to hide behind the security of “I’m not interesting enough for a probe beyond a quick AWS key scan”, because the malware will have an agent to help with that. An agent with the time and interest to find useful stuff on your machine, *if it has access to it*.

So here’s the minimum bar, in my opinion, for technical people, today. Run your coding agent in a sandbox, without access to your whole machine. Give it access to the code it needs, and anything else you’ve explicitly turned on. Make sure it only has the credentials it’s going to need. I think we should get to the point where you’d question a technical colleague running an agent loose on their laptop.

If your agent goes rogue, you should know exactly which code and which credentials it had access to, which machines it could reasonably have SSH’d into, and which databases it could have exfiltrated while you were reading Hacker News.

The core of my setup is Docker, via a tool I wrote called [byre](https://github.com/pjlsergeant/byre). Its security model is explicitly “careless agent” rather than “intelligent malware”, and I’m trading off the extra isolation a VM would give me because I prefer the convenience of Docker. A careless agent can still make a mess of the project folder it’s in, but at least I know which folders it can probably access.

For credentials I give it directly, they’re encrypted with `age` and I have to supply the decryption password at sandbox launch. Once the sandbox is running, they’re in the environment. I could find something more inconvenient and more secure, but this is today’s consciously made trade-off, and it’s a *lot* better than “the agent just runs as me on my all-purpose machine”.

Then of course, there’s the AI-psychosis version, which is what I’m actually doing.

Containers live on distinct, barebones physical machines, broken down by theme/client. If an agent gets out of its container and into the others on the same machine, the machine only has other containers for that same client on it. There are no SSH private keys on disk, there’s nothing of value in the parent bash history, and there are no other general-purpose credentials.

These machines don’t have free network access to each other. The sgnt household has spent a decent amount of money on MikroTik switches this year (configured by Claude, natch) to make sure devbox A has no direct access to devbox B, and to make sure my wife’s cursèd Windows work laptop is treated by the network the same way a smart device purchased from AliExpress is.

There’s an agent responsible for the administrative plane across most of my projects (agents are useful), and it has some fairly hefty credentials on it. That agent lives in a sandbox on its own Raspberry Pi with nothing else on it, at all. When I spin up a container to try something new on a personal project, it lives on my personal devbox that simply does not have admin or client credentials on it. If you steal it from my house, all of its credentials are encrypted.

The only machine that has SSH keys on it is my laptop, and they all live in either 1Password or Secretive. I use a separate key for each machine, so I can label it and know exactly what access I’m granting with my fingerprint when a request pops up.

SSH agent forwarding is off by default, with a per-host decision. I run two separate SSH agents on my laptop. The one that grants access to machines lives in 1Password, and only the admin box gets that forwarded. GitHub keys need to find their way to more machines, so they go through a separate SSH agent (via Secretive) that is forwarded to most boxes. Those boxes don’t have the GitHub keys on disk, but they can still ask to use them. I’d like to find a way to lock down Git over SSH more than I currently do.

When an agent gets itself free and runs wild, I wanna be able to answer “what did it have access to?” without having to concede either “I’ve no idea” or “absolutely everything”. It’s nice to be able to rule out a leak of credential X because it isn’t on the same sandbox, machine, or network segment as the agent.

Moving to all this wasn’t a single date, and there wasn’t a single come-to-Jesus moment like there was with moving to a password manager. But for a project I start today, I can tell you when I decided what the agent could read. It was when I set up the sandbox and picked the folders to mount. If it turns out to need something else, I get to make that decision when I know what it needs it for.
