{"slug": "an-ai-agent-with-two-computers-designing-a-permission-gate-that-doesn-t-become", "title": "An AI agent with two computers: designing a permission gate that doesn't become wallpaper", "summary": "A developer built TwinkleBot, an AI agent that runs across two computers: a disposable Ubuntu sandbox where it operates freely, and the host machine where every shell command, file write, message, payment, publish or delete must pass a permission gate. The gate sorts host actions into read-only, state-changing and irreversible tiers, and the developer reports that an early version prompting on everything trained them to click through approvals without reading, producing false confidence worse than no gate at all.", "body_md": "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.\n\nI 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?\n\nThis 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.\n\nWatch 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:\n\nThat's the part I care about, because that's the part where an agent stops being a demo and starts being a coworker.\n\nMy 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.\n\nTwinkleBot splits execution into two distinct worlds.\n\n**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.\n\n**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.\n\nThe asymmetry is the whole point. Disposable things don't need ceremony. Irreplaceable things do.\n\nHere'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.\"\n\nThe 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.\n\nThe gate classifies every host-side action by impact:\n\n| Tier | Examples | Behavior | \n|---|---|---|\n| Read-only | `ls` ,`cat` ,`git status` , reading a log | Runs directly, no prompt | \n| State-changing | writing a file, `git commit` , installing a package, editing config | Prompts, shows the exact command and what it touches | \n| Irreversible | sending a message or email, paying, publishing, deleting | Never gets a blanket yes, even if you approved the same class before | \n\nThat 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.\n\nMy first version asked for permission on everything.\n\nWithin 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.\n\nThat's a worse outcome than no gate at all, because at least with no gate I'm paying attention.\n\nTwo fixes came out of that:\n\nRule of thumb I now use: if a prompt can be answered correctly without reading it, it shouldn't be a prompt.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n`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.\nOpen source, self-hosted, bring your own model key — your files don't leave the machine unless you tell them to.\n\nRepo: [github.com/caixy-plus/twinklebot](https://github.com/caixy-plus/twinklebot)\n\nIf 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.", "url": "https://wpnews.pro/news/an-ai-agent-with-two-computers-designing-a-permission-gate-that-doesn-t-become", "canonical_source": "https://dev.to/klipapp/an-ai-agent-with-two-computers-designing-a-permission-gate-that-doesnt-become-wallpaper-kj6", "published_at": "2026-11-28 03:36:04+00:00", "updated_at": "2026-11-28 03:43:35.062372+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-tools"], "entities": ["TwinkleBot", "WSL2", "OrbStack", "Ubuntu"], "also_reported_by": [], "takeaway": "Tier host-side agent actions by impact and never grant blanket approval for irreversible ones, because prompting on every action trains users to click through unread and manufactures false confidence.", "recommendation": {"advice": "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.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/an-ai-agent-with-two-computers-designing-a-permission-gate-that-doesn-t-become", "markdown": "https://wpnews.pro/news/an-ai-agent-with-two-computers-designing-a-permission-gate-that-doesn-t-become.md", "text": "https://wpnews.pro/news/an-ai-agent-with-two-computers-designing-a-permission-gate-that-doesn-t-become.txt", "jsonld": "https://wpnews.pro/news/an-ai-agent-with-two-computers-designing-a-permission-gate-that-doesn-t-become.jsonld"}}