Research date 2026-11-18
Integrations and permissions
What it takes to let an agent reach Messages, Mail, Calendar, Reminders and Notes, why the current grants are too broad, and how to keep sending under human control.
macOS: what each kind of access actually requires
| Data or action | Mechanism | Permission (TCC) | Scope you get | Tools |
|---|---|---|---|---|
| Calendar, Reminders | EventKit | Per-app Calendar and Reminders grants, with a write-only option for Calendar | Good: per data type, per binary | remindctl; EventKit-based MCP servers [24][25] |
| Contacts | Contacts framework | Per-app Contacts grant | Good | MCP servers [24] |
| Notes | AppleScript or JXA to Notes.app | Automation grant from the host app to Notes | All notes, read and write | Hermes apple-notes skill; MCP servers [3][24] |
| Mail (Mail.app) | AppleScript or JXA; some tools read Mail's SQLite store directly | Automation to Mail; direct database reads need Full Disk Access | All mailboxes | MCP servers [24] |
| Mail (protocol) | IMAP and SMTP, or a provider API | None on the Mac. Scope comes from the credential. | As narrow as the provider allows (app password, OAuth scopes) | Hermes email gateway; Himalaya [3] |
| Messages, read | Read ~/Library/Messages/chat.db |
Full Disk Access for the host process | Everything Full Disk Access covers, far beyond Messages | imsg [25] |
| Messages, send | AppleScript to Messages.app | Automation to Messages | Can send to anyone | imsg send; BlueBubbles server [25][3] |
| Files | Direct | Folder grants (Desktop, Documents, Downloads, removable volumes) or Full Disk Access | Per folder | n/a |
| Screen and UI control | Accessibility, Screen Recording | Per-app grants | Whole desktop | cua, Peekaboo [3][17] |
| App actions through Siri | App Intents | System consent per app | Per intent; the cleanest model | Only for apps that ship intents; not a general agent API [20] |
| Shortcuts | shortcuts run CLI |
Inherits each shortcut's own grants | Per shortcut; a good hand-built allowlist | Apple-MCPs lists Shortcuts support [24] |
Two things to know:
- TCC grants attach to the "responsible" app, which for a CLI tool is usually the terminal or the launchd-run binary. Granting Full Disk Access to a terminal gives it to everything run in that terminal. This is from prior knowledge of macOS and is consistent with the
imsgand Hermes skill instructions, which tell you to grant Full Disk Access to the terminal [25][3]. - Apple is tightening exactly this. On 2026-10-02 Apple said it would add "additional controls" to Full Disk Access because of AI agents, noting that such access could expose "files, mail, messages, and even browsing history" [9]. The macOS 27.3 beta, reported 2026-11-16, splits the setting into "System & App Protection Override" and "Accessibility", encourages grants limited to specific apps or folders, adds an ask-each-time option, and shows a menu bar indicator when one app controls another. Existing grants stay in effect; developers must "gracefully handle" limited access; entitlement details are "coming soon" [10]. Any design that depends on blanket Full Disk Access is building on ground that is moving. Plan for per-folder grants and for helper binaries with a single narrow grant each.
A safer shape for macOS
- Separate macOS user account for the agent. It gets its own home directory, keychain and TCC database. Sign that account into only what the agent needs. The catch: Messages and iCloud data belong to the Apple ID signed in to that account, so reading your messages needs either your Apple ID on the agent account or a small broker in your own account. I found one tool (SandVault) that combines a separate account with sandbox-exec; I did not evaluate it [49].
- Broker processes with one grant each. A tiny signed helper that holds the Messages grant and exposes only "list recent threads", "read thread", "queue draft", over a local socket. The agent never holds Full Disk Access. No existing project packages this; it is gap 1 on the roadmap.
- Sandbox the agent's shell. Anthropic's
sandbox-runtime(srt, Apache-2.0, 7,170 stars) wraps any process usingsandbox-execon macOS and bubblewrap on Linux, with a network allowlist proxy, without a container [50]. Codex CLI, Claude Code and Gemini CLI all use Seatbelt on macOS [49]. Limits reported in 2026 write-ups:sandbox-execis marked deprecated though it still works on macOS 27.0.1; profiles that block writes can still leave secrets readable unless reads are denied explicitly; nested sandboxes break browsers launched inside [49] (secondary). - Containers and VMs. Apple's
containertool runs Linux containers in lightweight VMs on a Mac (Apache-2.0, 51,911 stars) [17]. Hermes Agent and OpenClaw both support Docker backends for tool execution; NanoClaw runs every agent in its own container by default [3][7][51]. A container cannot reach Apple app data at all, which is the point: run code tasks inside, keep personal-data tools outside behind the broker. - Agent-level approvals. Hermes:
approvals.mode: manualorsmart, and keepcron_mode: denyso unattended jobs fail closed [3]. OpenClaw: tool allow and deny policies and exec approvals in the Mac app [7].
Draft but do not send
| Channel | Pattern | Notes |
|---|---|---|
| Email over IMAP | Append the draft to the Drafts mailbox with IMAP APPEND. Give the agent IMAP only and no SMTP credential. | The mail client shows the draft on every device. The agent physically cannot send. Standard IMAP behaviour, from prior knowledge. |
| Gmail | A credential limited to composing drafts. | Scope names not re-verified today. |
| Mail.app | AppleScript: create an outgoing message with visible:true and never call send. |
Weaker: the same Automation grant also permits send. Enforce in the broker, not in the prompt. |
| Messages | There is no drafts API. Use a review queue: the agent writes proposed replies to a queue; you approve; only the approval path calls imsg send. An alternative is opening an sms: or imessage: URL to prefill the compose field for you to press return; I did not test this today. |
Apple2Agent implements native approval before outgoing mail [24]. Hermes's iMessage skill says to always confirm bulk sends but that is an instruction to the model, not an enforcement [3]. |
| Any channel | Split read tools and write tools into separate MCP servers or skills and enable only the read set for unattended jobs. | Hermes toolsets and OpenClaw tool policies both allow this [3][7]. |
iMessage specifically
| Option | How | Offline | Limits |
|---|---|---|---|
imsg |
Swift CLI on the Mac. Reads chat.db, watches for new messages as NDJSON or JSON-RPC, sends through Messages.app automation. v0.21.1, 2026-11-16. A Linux build can read a copied chat.db but cannot send. |
Yes | Needs Full Disk Access on the Mac. No group management [25]. |
| BlueBubbles server | Open-source macOS server (Apache-2.0, 1,146 stars) bridging iMessage to other devices over a REST API and webhooks. Hermes has an adapter. | Yes on a LAN | Needs an always-on Mac signed into Messages [3][17]. |
| Photon | Managed iMessage line service with a Hermes plugin. | No | Third-party service; messages leave the house [3]. |
| blueferry | iPhone to Linux over Bluetooth, no Mac. v0.9.1, 2026-10-31, 343 stars. Clients for GTK, KDE, Quickshell and terminal. | Yes | Experimental. Sees only messages while connected. No attachments, reactions or full sent history. Apple could change the Bluetooth behaviour [17]. |
| OpenClaw iMessage channel | Built in, uses imsg. |
Yes | Same permissions as imsg [6]. |
In practice: the always-on mini runs imsg or BlueBubbles and is the message hub; Linux clients talk to the agent gateway on the mini. blueferry is the fallback for a Linux box used away from the minis, and wiring it to an agent is unbuilt.
Linux
- Sandboxing is stronger than on macOS: bubblewrap (what
srtuses), Landlock, systemd unit hardening (ProtectHome,ReadWritePaths,PrivateNetwork,NoNewPrivileges), dedicated service users, rootless Podman. These are standard and scriptable. - Personal data is weaker: there is no common, permissioned API for calendar, contacts, mail and notes across desktops. The MCP bridges found expose D-Bus or the accessibility tree broadly [11]. On Omarchy (Hyprland) there is no desktop-wide portal permission system for these data types that I could find.
- The pragmatic approach on Linux is protocol-level access with narrow credentials: CalDAV and CardDAV for calendar and contacts, IMAP for mail, plain Markdown files for notes,
ghwith a fine-grained token for GitHub. That also works on macOS, which makes it the portable layer. iCloud calendars and contacts are reachable over CalDAV and CardDAV with an app-specific password (from prior knowledge; not re-verified today). - KDE Connect (4,169 stars) covers Android notifications and SMS; it does not help with iMessage [17].