Skip to content

imessage - Setup Guide

Source: nousresearch/hermes-agent Skill: imessage Installs: 331

The imessage skill connects Hermes Agent to Apple's iMessage network, enabling automated message sending, receiving, conversation management, and notification routing through the Messages app on macOS.

Installation

npx skills add https://github.com/nousresearch/hermes-agent --skill imessage

After install, reload skills: - Hermes CLI: /reload-skills or restart session - Hermes gateway: /restart or hermes gateway restart

Prerequisites

Requirement Details
macOS iMessage is macOS-only
Signed into iMessage Messages.app logged in with Apple ID
Hermes Agent v0.20.0+ running on Mac
Accessibility permissions System Settings → Privacy → Accessibility (for Messages.app automation)

Capabilities

Capability Trigger Output
Send message "Send an iMessage to team: build is green" Message delivered
Read messages "Check my latest iMessages" Recent messages list
Conversation search "Find messages from team about deployment" Matching messages
Attachment handling "Send the Q3 report PDF via iMessage" File attachment sent
Group chat "Notify the engineering group" Group message sent
Auto-reply "Auto-reply to iMessages containing 'status'" Automated response

Setup: macOS Messages Automation

# Verify Messages.app accessibility
osascript -e 'tell application "System Events" to get name of process "Messages"'

# Send via AppleScript (fallback when headless)
osascript -e 'tell application "Messages" to send "Hello" to buddy "+15551234567" of service "E:user@icloud.com"'

# Read recent messages via SQLite
sqlite3 ~/Library/Messages/chat.db "
SELECT m.text, m.date, h.id 
FROM message m 
JOIN chat_message_join cmj ON m.ROWID = cmj.message_id 
JOIN chat c ON cmj.chat_id = c.ROWID 
JOIN handle h ON m.handle_id = h.ROWID 
ORDER BY m.date DESC LIMIT 10;
"

CorpusIQ Use Cases

  1. Founder alerts - Critical notifications to the founder via iMessage (build failures, auth expirations)
  2. Team pings - Quick status updates to the ops team
  3. Automated check-ins - Daily summary delivery via iMessage
  4. iOS notification bridge - Route agent alerts to founders' iPhones
  5. Client communication - Automated client status updates for enterprise accounts

Integration with CorpusIQ

CorpusIQ is the connector layer that lets AI assistants read the systems a business already runs on - accounting, payments, CRM, email, files and analytics - and answer with the source named. It is read-only by design: it retrieves data and never writes to, or acts in, a connected system, which is what makes it safe to point at live accounts.

This page is part of the CorpusIQ directory, the reference we maintain for the MCP server and agent-skill ecosystem. Run alongside CorpusIQ, a third-party server like this one can be combined with a company's own business data in a single answer.

See what CorpusIQ connects

Limitations

  • macOS only - No Linux or Windows support (iMessage is Apple-proprietary)
  • No headless API - Requires Messages.app running on a logged-in Mac
  • Rate limits - Apple silently throttles automated sending
  • No message reactions - Tapbacks and effects not scriptable
  • Database format changes - chat.db schema varies between macOS versions

Troubleshooting

Issue Likely Cause Resolution
Messages.app won't respond Missing accessibility permissions Grant in System Settings → Privacy
chat.db locked Messages.app has exclusive lock Close Messages.app before reading
Send fails iMessage not activated Sign in to Messages.app manually once
AppleScript fails Security prompt Run osascript manually first to trust

Verification

After installation, verify the skill is loaded:

hermes skills list | grep imessage

Test with a simple send:

"Send a test iMessage to myself: 'Hermes iMessage skill verified'"

AI answers on your data. See where every number comes from.

Connect your tools and ask in ChatGPT, Claude, or Perplexity. Enterprise-grade answers in minutes. From $29.95/month.

Start free, no credit card
Contact Terms Privacy Pricing