Why my AI agent works on its own machine
This blog was built by an AI agent. Not on my laptop, but on a small cloud machine that belongs to the agent. I talk to it in a chat; it does the work over there. After a day of working this way, I’m convinced that this is how agents should run: it is safer and it lets them do more.
The problem with an agent on your laptop
An agent that can run commands on your own computer can, in principle, do anything you can do. It can read your documents, your browser profile, the SSH keys and API tokens lying around in your home folder. Most of the time it won’t, but “most of the time” is a weak guarantee for something that acts on its own and occasionally misunderstands what you asked for.
The usual answer is to approve every command by hand. That works, but it turns you into a full-time supervisor, and after the fiftieth “yes” you stop reading what you approve.
Safer: a fence around everything
On its own machine, the agent’s world is that machine. My laptop, my files and my other accounts simply aren’t there. If something goes wrong, the damage stays inside a box I can wipe and rebuild.
A few things made this concrete while building the blog:
- Secrets stay out of reach. When the agent needs an API key, it uses a placeholder. The platform swaps in the real value on the way out, and only for the website the key belongs to. The agent never sees the key itself, so it can’t leak it, paste it into a file or send it somewhere it shouldn’t go.
- Separate machines for separate jobs. The live site and the test version each have their own small machine. The agent’s own machine stays thin: no build tools, no copy of the site. A mistake in one place can’t quietly spill into another.
- Production needs a human. Every change goes to a staging site first. The scripts refuse to publish the live site from anything other than reviewed, committed work, and the agent waits for me to say “publish”. It did, every time.
- Everything is written down. Every change is a commit in git, every decision is in the conversation, and the agent keeps notes of what we agreed. When I want to know why something is the way it is, I can look it up.
None of this depends on the agent being well-behaved. The fence holds even on a bad day.
More powerful: a computer of its own
The surprising part is that the same setup also makes the agent more capable.
- It keeps working when I don’t. I can close my laptop; the agent’s machine carries on. It can set itself reminders, pick up a task later, and its machine sleeps when there is nothing to do.
- It can run real infrastructure. This blog’s pages are served straight from storage, so they stay online even while every machine sleeps. The agent set that up, plus the test site, plus my own domain name with a proper certificate.
- It can spread out. Need a build server, a second environment or a helper working in parallel? The agent creates another small machine for it, and removes it when the job is done.
- It has its own browser. It checks its own work the way a visitor would: opening pages, taking screenshots of light and dark mode, noticing that a line in the footer was a few pixels too wide.
- It remembers. Notes about the project live in a git repository, so a new session starts where the last one stopped instead of from scratch.
- I can reach it from anywhere. Because it doesn’t live on one particular computer, I can talk to it from a browser or my phone.
The honest trade-offs
It isn’t magic. The agent still has real power inside its fence: it can push to the repository and publish to the staging site, so good habits and review still matter. Cloud machines cost something, even small ones that sleep most of the day. And working across several machines adds friction: more than once the agent had to wait a turn before it could continue on another machine.
There are also things you have to decide yourself. Which machines may it create? Which keys does it get? When does a human have to approve? The platform makes those choices possible; it doesn’t make them for you.
Would I do it again?
Yes. Running the agent on my own laptop would have meant either trusting it with everything or watching every keystroke. On its own machine I could give it real work — a website, a domain, a staging setup — while knowing exactly where its reach ends.
That combination is the point: a clear fence makes it reasonable to hand over more.