---
title: "CC Native MEMORY.md"
description: "How Claude Code's native MEMORY.md works beside OrchestKit, and why decisions kept there survive plugin removal."
canonical: "https://orchestkit.dev/docs/memory/native-cc-memory"
---

# CC Native MEMORY.md

How Claude Code's native MEMORY.md works beside OrchestKit, and why decisions kept there survive plugin removal.

import { Callout } from 'fumadocs-ui/components/callout';

CC Native memory is Tier 3, the **survivability layer**. Claude Code maintains a file at `~/.claude/projects/<project>/memory/MEMORY.md` that it automatically injects into the system prompt for every session. What is in that file persists even if the plugin is removed, reinstalled, or upgraded.

## How Claude Code Native Memory Works

Claude Code has its own built-in memory system, independent of any plugins:

1. It maintains a directory at `~/.claude/projects/` with one subdirectory per project
2. The project subdirectory is named using the absolute path with separators replaced by dashes (e.g., `/Users/alice/my-app` becomes `-Users-alice-my-app`)
3. Inside each project directory, `memory/MEMORY.md` contains the persistent memory
4. Claude Code injects the entire contents of this file into the system prompt at the start of every session

This means anything written to MEMORY.md is visible to Claude in every conversation, without any plugin or tool call needed. The file is plain Markdown.

## How Decisions Reach MEMORY.md

No OrchestKit hook writes MEMORY.md, and nothing scores decisions. Claude writes it, for example when `/ork:memory remember` stores a durable fact as a memory file, or when you ask. The `session-summary` hook suggests what to capture at the end of a busy session; it does not write memory.

## Size Limits

MEMORY.md is injected into the system prompt, so keep it short. OrchestKit enforces no entry limit and archives nothing: trimming the file is up to you or to Claude. Decisions removed from it stay in Tier 1 (Graph) and Tier 2 (Local JSONL) if they were stored there.

## File Location

The path is constructed from the project directory:

```
Project:  /Users/alice/coding/my-app
Path:     /Users/alice/.claude/projects/-Users-alice-coding-my-app/memory/MEMORY.md
```

On Windows, both `/` and `\` separators are replaced with `-`:

```
Project:  C:\Users\alice\my-app
Path:     C:\Users\alice\.claude\projects\-C-Users-alice-my-app\memory\MEMORY.md
```


## Manual Editing

You can edit MEMORY.md directly. It is a plain Markdown file. Any changes you make will be injected into Claude's system prompt in the next session.

Common reasons to edit manually:

- Remove outdated decisions that no longer apply
- Reword a decision for clarity
- Add context that hooks did not capture
- Reorganize entries by topic

<Callout type="warn">
If you edit MEMORY.md while a Claude Code session is active, the changes take effect in the next session, not the current one. The file is read at session start.
</Callout>

## The Survivability Guarantee

The core design principle behind Tier 3:

```
OrchestKit installed     -->  All 3 tiers active, decisions flow everywhere
OrchestKit removed       -->  Tier 3 still works, MEMORY.md still injected
Different plugin version -->  Tier 3 still works, previous decisions visible
New machine, same repo   -->  Tier 3 works if ~/.claude/ is synced/backed up
```

This means the decisions you keep there are not locked into OrchestKit. They are plain text in a file that Claude Code itself manages. Even if you stop using OrchestKit entirely, Claude remembers what matters.

## Relationship to Other Tiers

Tier 3 is the curated tier. What it holds is what Claude or you chose to write, not the output of a threshold. A decision can sit in the graph without reaching MEMORY.md, or the other way round.

## Hooks Involved

| Hook | Role |
|---|---|
| `session-summary` (stop hook) | Suggests graph entity capture via `additionalContext` at session end |

## Troubleshooting

### Decisions Not Appearing in MEMORY.md

Nothing writes this file automatically. Ask Claude to keep the decision, or edit the file yourself. The parent project directory must exist; Claude Code creates it on first use.

### MEMORY.md Growing Too Large

OrchestKit enforces no limit. Edit the file to remove obsolete entries.

### Entries From a Different Project

Verify the project path mapping. The directory name conversion replaces all path separators with dashes. If two projects map to the same path ID, they share a MEMORY.md. This is uncommon but possible with symbolic links or unusual directory structures.

## Next Steps

- [Architecture Overview](/docs/memory/overview): see how Tier 3 fits into the full system
- [Graph Memory](/docs/memory/graph-memory): the primary tier
- [Set Up Cross-Session Memory](/docs/cookbook/setup-memory): end-to-end cookbook
