Files
nanoclaw/.claude/skills/add-imessage-v2/SKILL.md
gavrielc 57a6491c7e v2: channel isolation model, manage-channels skill, refactored channel skills
- Add three-level isolation model (shared session, same agent, separate agent)
  with agent-shared session mode for cross-channel shared sessions
- Create /manage-channels skill for wiring channels to agent groups
- Refactor all 12 v2 channel skills: lean SKILL.md + VERIFY.md + REMOVE.md
  with structured Channel Info section for platform-specific metadata
- Create /add-discord-v2 skill (was missing)
- Add step 5a to setup SKILL.md invoking /manage-channels after channel install
- Update setup/verify.ts to check all 12 channel token types
- Add docs/v2-isolation-model.md explaining the isolation model
- Update v2-checklist.md and v2-setup-wiring.md to reflect completed work

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 13:19:19 +03:00

2.2 KiB

name, description
name description
add-imessage-v2 Add iMessage channel integration to NanoClaw v2 via Chat SDK. Local (macOS) or remote (Photon API) mode.

Add iMessage Channel

Adds iMessage support to NanoClaw v2 using the Chat SDK bridge. Two modes: local (macOS with Full Disk Access) or remote (Photon API).

Pre-flight

Check if src/channels/imessage.ts exists and the import is uncommented in src/channels/index.ts. If both are in place, skip to Credentials.

Install

npm install chat-adapter-imessage

Uncomment the iMessage import in src/channels/index.ts:

import './imessage.js';
npm run build

Credentials

Local Mode (macOS)

Requirements: macOS with Full Disk Access granted to your terminal/Node.js process.

  1. Go to System Settings > Privacy & Security > Full Disk Access
  2. Add your terminal app (Terminal, iTerm2, etc.) or the Node.js binary
  3. The adapter reads directly from the iMessage database on disk

Remote Mode (Photon API)

  1. Set up a Photon account
  2. Get your server URL and API key

Configure environment

Local mode -- add to .env:

IMESSAGE_ENABLED=true
IMESSAGE_LOCAL=true

Remote mode -- add to .env:

IMESSAGE_LOCAL=false
IMESSAGE_SERVER_URL=https://your-photon-server.com
IMESSAGE_API_KEY=your-api-key

Sync to container: mkdir -p data/env && cp .env data/env/env

Next Steps

If you're in the middle of /setup, return to the setup flow now.

Otherwise, run /manage-channels to wire this channel to an agent group.

Channel Info

  • type: imessage
  • terminology: iMessage has "conversations." Each conversation is with a contact identified by phone number or email address. Group chats are also supported.
  • how-to-find-id: The platform ID is the contact's phone number (e.g. +15551234567) or email address. For group chats, the ID is assigned by iMessage internally.
  • supports-threads: no
  • typical-use: Interactive 1:1 chat — personal messaging
  • default-isolation: Same agent group if you're the only person messaging the bot across iMessage and other channels. Separate agent group if different contacts should have information isolation.