Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk4 min

How to Share Project Memory Between Cursor and Claude Code

A committed root AGENTS.md is the practical shared project-instructions file for Cursor and Claude Code. Learn how to configure Claude Code, preserve tool-specific rules, and avoid confusing local auto memory with shared context.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To share durable project knowledge between Cursor and Claude Code, put it in a version-controlled root AGENTS.md file and commit it with the repository. This shares project instructions—not chat history or either tool’s private automatic memory. Cursor documents AGENTS.md as a project-instructions option, and Claude Code can read it directly in supported versions and configurations.

What “shared memory” means in these tools

Cursor and Claude Code do not provide one shared, automatic memory store for their conversations. The practical shared layer is a set of project instructions checked into the repository, so both tools can use the same durable context when working on that project.

Keep that shared file focused on information that should remain useful across sessions: architecture, coding conventions, build and test commands, important workflows, and decisions that cannot be reliably inferred from the code. Do not treat it as a transcript or a place to save every temporary thought.

Set up a shared root AGENTS.md

  1. Create the file at the repository root. Write it in plain Markdown. Cursor lists AGENTS.md as a project-instructions option, and its CLI documentation says it reads root AGENTS.md and CLAUDE.md alongside .cursor/rules. See Cursor’s project rules documentation and Cursor CLI documentation.
  2. Add durable project guidance. Record the project’s conventions, architecture, workflows, and commands. Keep tool-specific features out of this baseline unless both tools can use them.
  3. Commit the file. Version control makes the guidance available to teammates and to either tool when they work from the repository.
  4. Confirm Claude Code loads it. Check that Claude Code meets the version and settings requirements described below. If it does not load the file directly, use the documented CLAUDE.md import fallback.
  5. Keep specialized rules in their native locations. Use .cursor/rules/ for Cursor rules that need metadata or path-specific application, and Claude Code’s own mechanisms where a rule only applies there.

Make Claude Code read the shared file

Anthropic says Claude Code reads AGENTS.md by default when there is no CLAUDE.md or CLAUDE.local.md in the working directory or any parent. Direct reading requires Claude Code v2.1.277 or later. If an existing Claude instruction file is present, or the shared file does not appear to load, check the installed version and the Project instructions option in /config.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Pearson Computer Networking, 8E
  • brand: Pearson
  • Computer Networking, 8e

Anthropic documents these Project instructions choices: claude-md-or-agents-md (the default), claude-md-and-agents-md, claude-md, and managed-only. The last option omits project and user instructions at launch. After changing or checking the setup, run /context and confirm the file appears under Memory files. Details are in Claude Code’s memory documentation.

Use an import when you need CLAUDE.md

If you need a Claude-specific file beside the shared one, put @AGENTS.md near the top of CLAUDE.md, then add Claude-only guidance below it:

@AGENTS.md

## Claude Code

Add any Claude-specific instructions here.

Anthropic also documents a symlink from CLAUDE.md to AGENTS.md, but notes that Claude Code’s Edit and Write tools refuse to write through symlinks. Windows clones may also fail to preserve a committed symlink as a symlink unless Git is configured for it. For teams working across Windows, macOS, and Linux, the import is the simpler documented fallback.

What belongs in tool-specific rules

A shared root file is a straightforward baseline, not a replacement for every native feature. Cursor’s .cursor/rules supports version-controlled project rules, including metadata and path-based application; Cursor also has global user rules and memories generated from Chat. Claude Code has its own CLAUDE.md and .claude/rules/ mechanisms. Keep rules that depend on one tool’s structure or behavior in that tool’s files, and avoid duplicating shared guidance where it can drift.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What does not synchronize

Claude Code’s auto memory is separate from repository instructions. Anthropic documents it under ~/.claude/projects/<project>/memory/. The project path derives from the Git repository, so worktrees and subdirectories in that repository share it on that machine; those files are machine-local and are not shared across machines or cloud environments. Cursor’s chat-generated memories and local user rules are likewise not merged into Claude Code’s memory. For the shared, intentional project context, use the committed repository file.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Can you migrate existing Cursor rules?

Claude Code’s /init can read Cursor rules in .cursor/rules/ or the legacy .cursorrules file and incorporate relevant material into a generated CLAUDE.md. Its /import command performs a one-time import of supported coding-agent configuration and requires Claude Code v2.1.213 or later. These commands help move existing instructions; they do not keep separate files synchronized. After importing, decide which file is authoritative and remove or update duplicated instructions deliberately.

Shared project instructions versus tool-specific memory

Mechanism What it is useful for Sharing and scope
Root AGENTS.md Durable project-wide instructions in plain Markdown Shared through the committed repository; available to Cursor and supported Claude Code setups
.cursor/rules/ Cursor-specific rules, including metadata and path-based application Project rules can be version-controlled; Cursor also has global user rules and chat-generated memories
CLAUDE.md and .claude/rules/ Claude Code instructions and Claude-specific rules Project-level files can travel with the repository; use @AGENTS.md to include the shared baseline where needed
Claude Code auto memory Machine-local notes Claude Code retains for a project Stored under ~/.claude/projects/<project>/memory/; not shared across machines or cloud environments

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.