claude-code - 💡(How to fix) Fix iMessage plugin: per-project channel routing [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47150Fetched 2026-04-13 05:40:08
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

  • Manually swapping access.json between sessions — error-prone
RAW_BUFFERClick to expand / collapse

Feature Request

Problem:
When working on multiple projects (e.g., two separate iOS apps), there's no way to route different phone numbers to different Claude Code sessions via the iMessage channel. The access.json config at ~/.claude/channels/imessage/ is global — all allowlisted numbers reach whichever session is active.

Use case:
A developer building two apps (JobWerks + Homeowner's Blueprint) with dual SIM iPhone wants:

  • Phone number A → only reaches Claude Code session for Project A
  • Phone number B → only reaches Claude Code session for Project B

This enables context-separated communication without cross-talk between projects.

Proposed solution:
Support per-project iMessage channel configs, e.g.:

  • ~/.claude/channels/imessage/projects/<project-dir-hash>/access.json
  • Or a project field in access.json that maps sender IDs to project directories
  • Claude Code session only surfaces messages from numbers mapped to its current working directory

Alternatives considered:

  • Manually swapping access.json between sessions — error-prone
  • Running two sessions and keeping both numbers in one allowlist — no isolation, messages land in wrong context

Impact:
Any developer using Claude Code across multiple projects with iMessage would benefit from this. It's especially relevant for teams/individuals building complementary apps (e.g., two-sided marketplaces with separate codebases).

🤖 Generated with Claude Code

extent analysis

TL;DR

Implementing per-project iMessage channel configurations, such as using a project field in access.json to map sender IDs to project directories, could resolve the issue of routing different phone numbers to different Claude Code sessions.

Guidance

  • Consider modifying the access.json file to include a project field that maps sender IDs to specific project directories, allowing for context-separated communication.
  • Consider using a directory structure like ~/.claude/channels/imessage/projects/<project-dir-hash>/access.json to store project-specific iMessage channel configurations.
  • Evaluate the feasibility of implementing a feature that restricts Claude Code sessions to only surface messages from numbers mapped to their current working directory.
  • Assess the potential impact of this feature on teams and individuals building multiple projects with complementary apps.

Example

No explicit code example is provided, as the issue focuses on proposing a solution rather than implementing a specific code change.

Notes

The proposed solution requires modifications to the existing Claude Code configuration and potentially the application itself. The feasibility and implementation details of this feature may depend on the specific requirements and constraints of the Claude Code platform.

Recommendation

Apply a workaround, such as manually managing separate access.json files for each project or using a custom script to automate the process, until a more robust per-project iMessage channel configuration feature is implemented. This recommendation is based on the potential benefits of implementing a more flexible and scalable solution for managing multiple projects with Claude Code.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix iMessage plugin: per-project channel routing [1 comments, 2 participants]