# An AI agent with two computers: designing a permission gate that doesn't become wallpaper

> Source: <https://dev.to/klipapp/an-ai-agent-with-two-computers-designing-a-permission-gate-that-doesnt-become-wallpaper-kj6>
> Published: 2026-11-28 03:36:04+00:00

**Recommendation:** Gate host-side agent actions in three tiers and require per-action approval for irreversible ones; if a prompt can be answered without reading it, don't make it a prompt.
More in the playbook "Securing agents and AI tools": <https://wpnews.pro/playbooks/agent-security>

Most AI agents today fall into one of two buckets: they're toys that demo beautifully inside a disposable sandbox, or they quietly want root on your laptop.

I wanted neither. So TwinkleBot runs on **two computers**, and the entire design problem became: how does an agent stay genuinely useful on my real machine without me white-knuckling the mouse the whole time?

This is a write-up of that boundary — the permission model, the three action tiers, and the design mistake that made my first version worse than having no gate at all.

Watch any agent launch video and you'll see the same shape. The agent spins up a container, installs things, refactors a repo, prints a happy summary. Impressive. But notice what it never touches:

That's the part I care about, because that's the part where an agent stops being a demo and starts being a coworker.

My earlier attempts failed in the two predictable ways. Either the agent couldn't reach the host at all, so I was copy-pasting output back and forth like a human IPC bus. Or I gave it host access and it did something I didn't intend while I was making coffee. Neither is something I'd leave running.

TwinkleBot splits execution into two distinct worlds.

**Bot's Computer** — an isolated Ubuntu sandbox (WSL2 on Windows, OrbStack on macOS, container on Linux). Inside it, the agent has full control: shell, files, browser, background services, package installs. No prompts. If the sandbox gets compromised or just gets messy, I destroy it and provision a new one. It's disposable, so it can be permissive.

**Your Computer** — the actual host machine. Every shell command, file write, outbound message, payment, publish, or delete crosses a permission gate first. The gate shows the literal command and its blast radius before anything executes.

The asymmetry is the whole point. Disposable things don't need ceremony. Irreplaceable things do.

Here's the thing I underestimated: the gate isn't a safety checkbox bolted onto an agent. It's the interface between "the agent is useful" and "I'm comfortable walking away."

The model is swappable. I run several providers behind the same gate, and the approval behavior is identical regardless of which one is driving. What actually determines whether I trust the thing is whether the prompt tells me the truth about what's about to happen — and whether it interrupts me rarely enough that I still read it.

The gate classifies every host-side action by impact:

| Tier | Examples | Behavior | 
|---|---|---|
| Read-only | `ls` ,`cat` ,`git status` , reading a log | Runs directly, no prompt | 
| State-changing | writing a file, `git commit` , installing a package, editing config | Prompts, shows the exact command and what it touches | 
| Irreversible | sending a message or email, paying, publishing, deleting | Never gets a blanket yes, even if you approved the same class before | 

That third tier is the one people skip. "Always allow" is fine for `npm install`. It is not fine for "send this email to 200 customers." Once something can't be undone, the approval has to be per-action, forever — because the failure mode isn't annoyance, it's a mistake you can't retract.

My first version asked for permission on everything.

Within a day I was clicking through the dialog without reading a single word. My brain had correctly classified it as noise — the exact same prompt appeared four times a minute, so of course I stopped reading. And an approval prompt that nobody reads doesn't just fail to protect you; it manufactures false confidence. It *feels* safe while doing nothing.

That's a worse outcome than no gate at all, because at least with no gate I'm paying attention.

Two fixes came out of that:

Rule of thumb I now use: if a prompt can be answered correctly without reading it, it shouldn't be a prompt.

**Per-Bot memory, not global memory.** I originally shared memory across every agent. Bad idea — the release bot doesn't need to know what the research bot learned about my inbox. Memory and workspace are now scoped per Bot, with explicit sharing when a handoff needs context. There's a cross-Bot search so a coordinator can look things up without every agent knowing everything.

**Specialist Bots with their own sandboxes.** One agent for shipping, one for research, one for support triage. Each gets its own disposable computer, workspace and library. They coordinate by handing work to each other rather than one giant context window pretending to be a team.

**Secrets never reach the model.** Credentials live in a local encrypted vault and are injected into the browser or the shell by handle. The agent gets an opaque reference, not your password, and the plaintext is never in the context window.

**One conversation, every device.** Desktop, Android, Feishu, Telegram — same session and history. It matters more than it sounds: approval prompts arrive wherever you already are, so "the agent is waiting on you" doesn't mean walking back to a laptop.

`git commit` vs `git push --force` are one character apart in spirit and worlds apart in consequences, and the gate occasionally gets the tier wrong. Recovery is manual.
Open source, self-hosted, bring your own model key — your files don't leave the machine unless you tell them to.

Repo: [github.com/caixy-plus/twinklebot](https://github.com/caixy-plus/twinklebot)

If you've shipped an agent into a real workflow: where did your permission model break first? I'm specifically curious whether others hit the permission-fatigue wall, and what tiering looked like on the other side.
