Skip to content
Claude-Mem × PhotonTesting guide

Turn iMessage group chats into memory.

Claude-Mem listens to the chats you choose and writes down what people decided, planned, promised and shared. Each chat becomes its own Claude-Mem project, so your agents can search it like any other memory. It only listens: it never sends, reacts or changes a chat.

Claude-Mem 16.2.0 or laterOpen sourceUpdated

Before you start

  • Claude-Mem installed, with its worker running. The worker is the part that turns conversations into notes. Both paths hand messages to it.
  • Node.js, so npx works in Terminal.
  • A group chat you can test in, ideally with a friend or two who know it's a test.
Terminal
npx claude-mem@latest install
npx claude-mem@latest start

Using @latest makes sure you get the newest release. The iMessage features shipped in Claude-Mem 16.2.0.

Optional · Two minutes

Try it first with no line at all

The repository ships a made-up Saturday of two group chats: a dinner plan with an edited message, an unsent message, a photo and a tapback, plus a launch chat. Replay it to see exactly what Claude-Mem would send to the worker.

Terminal
git clone --depth 1 https://github.com/thedotmack/claude-mem.git
cd claude-mem
npx claude-mem@latest imessage observe --replay tests/fixtures/imessage/group-chats.jsonl --dry-run

What you should see

Two conversation windows, one per group chat, each line written as [time] Name: message. The edit shows the final text, the unsent message is gone, the photo appears as [photo], and the direct message in the sample is skipped.

Drop --dry-run to send the replay to your real worker and see actual notes.

Path A · Step 01

Get a Photon account and a dedicated line

The observer listens through an iMessage line from Photon, the messaging platform for agents.

  1. Sign up at app.photon.codes and create a project. Photon asks for a phone number that can receive iMessage, to bind your account.
  2. Get a dedicated line. Group chats need one, and it's part of Photon's Business plan. The Free and Pro plans use a shared pool of numbers, which don't support group chats. See Photon's pricing for today's plans.
  3. That's it. You don't need to copy the project id or secret: setup signs in for you.
Path A · Step 02

Run setup

Terminal
npx claude-mem@latest imessage setup

Pick Sign in to Photon in your browser (the default). Setup runs Photon's own sign-in, which prints a link and a code and opens your browser. Approve it there. Setup then:

  • asks which Photon project has your line, if you have more than one
  • reads that project's existing secret (it never rotates it, so other apps on the project keep working)
  • checks the project with Photon and prints the line's phone number
  • installs the Photon SDK into ~/.claude-mem/imessage-observer/
Success looks like

Setup prints your line's phone number and saves ~/.claude-mem/imessage-observer/config.json, readable only by you. If it says your project uses a shared line, the project has no dedicated line and would hear nothing from group chats.

Connecting without a browser (scripts or servers)

Pass --project-id and --project-secret, or set PHOTON_PROJECT_ID and PHOTON_PROJECT_SECRET. If Photon gave you one line's server address and token instead, use --address and --token (or PHOTON_IMESSAGE_ADDRESS and PHOTON_IMESSAGE_TOKEN). Each pair counts only when both halves are set, and flags win over the environment. Setup checks the project before saving, so a wrong pair never replaces a setup that works.

Path A · Step 03

Add the line to a group chat

Add the line's phone number to the group, like adding a person. Everyone in the chat can see it in the member list, so tell the group it keeps notes.

Path A · Step 04

Start listening

Terminal
npx claude-mem@latest imessage observe

# in a second Terminal window, once people have talked:
npx claude-mem@latest imessage chats

Success looks like

The observer keeps running and renews Photon's short-lived tokens on its own. imessage chats lists each group it has seen and its project name, such as imessage-weekend-crew-3fa94c1d.

The Mac app can also run a Photon line from the menu bar: choose Photon line at the top of its window. An existing setup appears automatically.

Path B · Step 01

Install Claude-Mem Messages for Mac

  1. Make sure the worker is running (see Before you start).
  2. Download Claude-Mem Messages, unzip it, move Claude-Mem Messages.app to Applications and open it. It's a universal app for macOS 14 and later on Apple silicon and Intel Macs.
  3. If macOS blocks the first open, go to System Settings → Privacy & Security and select Open Anyway. The current release is ad-hoc signed. Apple's first-open instructions
  4. At the top of the window, choose Messages on this Mac.
Path B · Step 02

Allow Full Disk Access

  1. Click Open Full Disk Access in the app.
  2. Turn on Claude-Mem Messages under System Settings → Privacy & Security → Full Disk Access. If it isn't listed, use the + button and pick it from Applications.
  3. Reopen the app if macOS asks.
Success looks like

Your chat list opens, newest first. The app reads Messages read-only and starts with new messages, so nothing from your history is sent.

Path B · Step 03

Pick chats and say what to watch for

  • Tick a chat to observe it. Untick it to stop. Filter by Group chats or Observing, or search by name or person.
  • Observe for: select a chat and write what matters, like “plans, dates and who's bringing what” or “money: who paid, who owes”. Chats without their own use Observe for, in every chat on the overview.
  • Use Names from Contacts puts people's names in the notes instead of “Phone ending 1234”. macOS asks once for Contacts access.
  • Listen starts by itself once you tick a chat. Closing the window keeps it listening from the menu bar; Quit there stops it.
Prefer Terminal? Every step is a command

Terminal then needs Full Disk Access itself.

Terminal
npx claude-mem@latest imessage mac check                  # can it read Messages? is Claude-Mem up?
npx claude-mem@latest imessage mac chats --groups         # list group chats and their ids
npx claude-mem@latest imessage mac pick '<chat id>' --on --focus 'plans and money'
npx claude-mem@latest imessage mac observe --dry-run      # print what would be sent
npx claude-mem@latest imessage mac observe                # listen until Ctrl-C

Check the notes

  1. Have a short real conversation in the test chat: make a plan, change your mind once, agree on who does what.
  2. Wait for the chat to go quiet for 10 minutes (see the timing below).
  3. Open your Claude-Mem viewer and pick the chat's project, or ask your agent: “Search my memory in the imessage-weekend-crew project for what we decided.”
Success looks like

Notes on what was decided, who is doing what and when, with names. When a conversation ends after four quiet hours, it's summarized too.

When notes appear

Messages are collected while people are talking, then handed over as one window. Whichever comes first:

10 minof quiet in the chat
50messages in the window
1 hoursince the window opened
  • Four hours of silence ends a conversation. Its windows share one Claude-Mem session, summarized when it ends.
  • Edits, unsends and tapbacks change the window that's still open.
  • Photos and files appear as [photo] or [file: menu.pdf]. Their contents aren't read.
  • Renaming a group keeps the same project.
  • Ctrl+C sends the windows that are still open, once.

If something doesn't work

Setup says my project uses a shared line

Shared lines don't support group chats. Your Photon project needs a dedicated line, which is part of Photon's Business plan.

The observer is running but no notes show up

Notes arrive after 10 quiet minutes, so wait before checking. Make sure the worker is running with npx claude-mem@latest start: if the worker can't take a window, that window is skipped and logged, not saved for later. Also check the chat is a group: direct chats are ignored on the Photon line unless you pass --include-direct.

A new chat isn't being saved

If Photon can't yet say what a new chat is called, nothing from it is sent until it can, so it never lands under a made-up project name. Send another message once the group has a name.

People show up as “Phone ending 0001”

That's on purpose, so a full number is never stored by accident. In the Mac app, turn on Use Names from Contacts. For the Photon line, add names to ~/.claude-mem/imessage-observer/contacts.json, including your own number:

Terminal
{ "+15551230001": "Jordan", "sam@example.com": "Sam" }

macOS won't open the app

Go to System Settings → Privacy & Security and select Open Anyway for Claude-Mem Messages. Only do this for the official download from the Claude-Mem GitHub releases.

The Mac app shows no chats

Full Disk Access isn't on yet. Turn it on for Claude-Mem Messages, then reopen the app. Running npx claude-mem@latest imessage mac check tells you whether Messages can be read and Claude-Mem is up.

Messages were missed while the connection dropped

The observer reconnects to Photon's live stream on its own. Messages sent while it was disconnected aren't fetched afterwards.

Still stuck? Open an issue on GitHub with the step that failed and the error text. Keep tokens, secrets and private messages out of screenshots.

Privacy

  • Listen-only. Claude-Mem never sends a message, reacts or changes a group.
  • Tell the group. On the Photon path, the line is visible in the member list.
  • No message text on disk from the observer. The only file it writes is chats.json, the list of chats and their project names.
  • Keep a chat out. Add its project name, or a pattern like imessage-family-*, to CLAUDE_MEM_EXCLUDED_PROJECTS in Claude-Mem's settings. Nothing from that chat is sent.
  • Private tags work. Text inside <private>…</private> is removed before memory is written.