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.
The gap every agent demo skips
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:
- a file that actually lives on your laptop
- a browser tab where you're already logged in
- the shell on your host, where your real credentials sit
- anything that costs money or sends a message in your name
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.
Two computers, one hard boundary
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.
The permission gate is the product, not the model
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.
Three tiers of action
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.
The mistake that made v1 worse than no gate
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:
- Nothing in the sandbox asks. Most agent work — exploration, drafting, installing, testing — happens in the disposable box, so it generates zero prompts. The gate only fires when work crosses into the host.
- Tiers, not warnings. Read-only actions execute silently. Only state-changing and irreversible actions interrupt. My approval budget is now spent on decisions that actually matter, which is the only way a gate stays readable after week one.
Rule of thumb I now use: if a prompt can be answered correctly without reading it, it shouldn't be a prompt.
Other decisions that fell out of the boundary
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.
What's still wrong
- Classification is heuristic, not a proof.
git commitvsgit push --forceare one character apart in spirit and worlds apart in consequences, and the gate occasionally gets the tier wrong. Recovery is manual. - Approval prompts are still vulnerable to habituation in volume. Long refactors can produce a dozen state-changing prompts in a row, and that's the exact condition that trained me to click through v1. Batching is the open question.
- Mobile approvals are worse than desktop ones. Reviewing a literal command on a phone screen is not a real review, so I try to keep irreversible work on desktop.
Try it
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
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.
