NativeAIHub

Automations and Sandbox Model

Automations: Desktop App (all plans). Sandbox: CLI and Desktop App (all plans).2 min read
AspectAutomationsHooks
PurposePurposeWhen and what the agent runsHow the agent behaves during execution
TimingTimingScheduled (cron, daily, weekly)Fires at lifecycle events (PreToolUse, PostToolUse, etc.)
ContextContextCan preserve thread context across runsSynchronous, within a single session
Created byCreated byUser via sidebar or conversationallyConfiguration files
Example use caseExample use case"Every Monday, review open PRs and summarize""Before any file edit, run the linter"

Why OS native sandboxing matters

Most AI coding tools protect your system through permission prompts: the agent asks before doing something potentially dangerous, and you approve or deny. This works but relies on the agent correctly identifying which actions need permission and on you paying attention to each prompt. OS native sandboxing adds a second layer: even if a permission check is missed or bypassed, the operating system itself blocks unauthorized file access and network calls. It is the difference between a lock that asks you to confirm each visitor and a physical barrier that prevents entry entirely.

Automation ideas to get started

Start with simple, low-risk automations: a daily scan of your codebase for TODO comments, a weekly dependency update check, or a Monday morning summary of open pull requests. Thread automations work well for multi-day tasks like tracking a migration, where Codex wakes up periodically to check progress and report status. As you build confidence, expand to automations that make changes in dedicated git worktrees for safe experimentation.