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
npxworks in Terminal. - A group chat you can test in, ideally with a friend or two who know it's a test.
Using @latest makes sure you get the newest release. The iMessage features shipped in Claude-Mem 16.2.0.
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.
Drop --dry-run to send the replay to your real worker and see actual notes.
Get a Photon account and a dedicated line
The observer listens through an iMessage line from Photon, the messaging platform for agents.
- Sign up at app.photon.codes and create a project. Photon asks for a phone number that can receive iMessage, to bind your account.
- 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.
- That's it. You don't need to copy the project id or secret: setup signs in for you.
Run 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/
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.
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 04Start listening
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.
Install Claude-Mem Messages for Mac
- Make sure the worker is running (see Before you start).
- 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.
- 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
- At the top of the window, choose Messages on this Mac.
Allow Full Disk Access
- Click Open Full Disk Access in the app.
- 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.
- Reopen the app if macOS asks.
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.
Check the notes
- Have a short real conversation in the test chat: make a plan, change your mind once, agree on who does what.
- Wait for the chat to go quiet for 10 minutes (see the timing below).
- 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.”
When notes appear
Messages are collected while people are talking, then handed over as one window. Whichever comes first:
- 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:
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-*, toCLAUDE_MEM_EXCLUDED_PROJECTSin Claude-Mem's settings. Nothing from that chat is sent. - Private tags work. Text inside
<private>…</private>is removed before memory is written.