# Why we built scoped overnight approvals and an on-device AI agent browser

> Source: <https://dev.to/nemoryoliver/why-we-built-scoped-overnight-approvals-and-an-on-device-ai-agent-browser-3hc6>
> Published: 2026-12-02 22:37:35+00:00

**Recommendation:** Scope agent permissions to specific paths and time windows with server-side owner checks, and route browsing through a native in-app browser to avoid datacenter-IP blocks.
More in the playbook "Securing agents and AI tools": <https://wpnews.pro/playbooks/agent-security>

Two failure modes break real-world AI agents: asking for permission on every single click until the user turns safety off, and getting blocked by datacenter-IP bot walls on everyday websites. Here is how we solved both in [Casama](https://casama.ai).

Most agent tools swing between **full autopilot** (one hallucination or prompt injection causes real damage) and **per-step prompts** (15 interruptions until the user clicks "Always allow" for everything).

Instead of permanent blanket grants, Casama lets a bot preview the exact actions an overnight or scheduled task needs (`permissions.preview`) and request a **scoped, time-bounded bundle** (` permissions.request`):

`shared/invoices/` without touching anything outside that folder.`packages/safety`), with owner/admin checks enforced on the server.
Cloud headless browsers run from datacenter IP ranges — banks, travel portals, and everyday web apps frequently block them or force repeated sign-ins.

Casama pairs its cloud Linux sandboxes with a **native in-app browser** built directly into our iOS, Android, macOS, Linux (WebKitGTK), and Windows (WebView2) apps:
