Skip to content

[FEATURE] Portable project memory across machines (multi-device workflow) #25739

@hc-7000

Description

@hc-7000

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

When working on the same project from multiple computers (e.g. a workstation and a laptop), Claude Code's project memory doesn't carry over. The ~/.claude/projects/ directory stores memories under paths derived from the absolute project path (e.g. -Users-xxx-Sync-Project-yyy), which means:

  1. Different usernames between machines = different memory subdirectory
  2. Different mount points for the same synced folder = different memory subdirectory
  3. Settings, plans, and session data are all local to one machine

For users who sync their project folders (via iCloud, Syncthing, Dropbox, etc.) and switch between machines daily, this means Claude Code loses all accumulated project context each time.

Proposed Solution

A few possible approaches:

  • Project-relative memory: Allow storing .claude/memory/ inside the project directory itself (similar to how .claude/settings.json can be project-local), so it syncs naturally with the project.
  • Project identity by name, not path: Resolve memory by a project identifier (e.g. git remote URL, or a .claude/project-id file) rather than the absolute filesystem path.
  • Memory sync/export: A /memory export and /memory import command to make portability explicit.

Environment

  • macOS, two machines (workstation + laptop)
  • Projects synced via cloud sync
  • Same user, same projects, same (or different) absolute paths

Alternative Solutions

Manually copying MEMORY.md into the project folder alongside CLAUDE.md. This works but loses the automatic memory management — you have to remember to keep it updated.

Priority

Medium - Would be very helpful

Feature Category

Configuration and settings

Use Case Example

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestplatform:macosIssue specifically occurs on macOS

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions