imsgcrawl: agents read iMessage from a read-only snapshot
OpenClaw's imsgcrawl gives agents bounded, read-only commands over a local iMessage archive; @steipete suggests pairing it with a reply-reminder loop.
A personal agent can now search your iMessage history through a few bounded terminal commands instead of clicking through the Messages app. On Dec 5, 2026, @steipete suggested asking your agent to install imsgcrawl, or its WhatsApp counterpart wacrawl, "to access your iMessage/WhatsApp messages without having to use computer use." He paired it with a standing prompt: "check my messages every 10 minutes and help me be a better friend." According to The Independent AI, the agent he used was OpenAI's.
Per its README, imsgcrawl reads ~/Library/Messages/chat.db through a temporary read-only SQLite snapshot and syncs it into a local archive at ~/.imsgcrawl/archive.db. Agents get status, sync, chats, messages --chat ID, search and contacts export. List and search output is bounded by default, with --all as an explicit opt-in, and --json returns stable fields and local chat IDs. Text output renders terminal control characters as visible escapes, so message content can't run escape sequences. Edits and retractions are stored as append-only revisions, and normal reads skip deleted content. Prebuilt binaries cover macOS and Linux; building from source needs Go 1.27.0 or newer, and your terminal may need Full Disk Access.
Our reading: the bounded defaults are the useful design choice for agents. An agent pulling 20 messages at a time costs less context and exposes less than one that dumps years of history. Message text is still written by other people, though, so treat what the agent reads as untrusted input before letting it act on anything.
The README warns that the database and archive hold private names, phone numbers, emails and conversation text, and says to keep them local unless every disclosure is explicitly approved. The Independent AI advises sticking to your own personal chats, never client or staff conversations, and checking what the agent stores. It also reports that @steipete pointed out newer models can often open the local message databases directly, with no extra tool needed. Check how wacrawl reaches WhatsApp data in its own repo before installing it.
Try it: install imsgcrawl and run imsgcrawl status, which checks that the source and archive are readable without printing any messages. If it passes, run imsgcrawl sync and then imsgcrawl --json chats --limit 20, and give your agent that bounded command rather than raw database access.
Sources
- GitHub - openclaw/imsgcrawl: it crawls your imessages. crawlkit-pilled repo · GitHub
- @steipete: let your agent read your iMessage and WhatsApp (carefully) · The Independent AI · The Independent AI
- @steipete: Ask your dot to install https://github.com/openclaw/imsgcrawl or https://github.com/openc… · @steipete