Docs / Connect / Claude Code memory
Claude Code writes notes to its future self, and those notes are only worth something if your other assistants can read them too. The claude-code source reads a Claude Code memory folder, or a project's CLAUDE.md files, and files each note as its own memory in a partition called Claude Code. It only reads. Nothing is ever written into .claude. Available from ModelBrain 0.6.6.
~/.claude/projects/<project>/memory. You can also point the source at a project folder to read its CLAUDE.md files and rules.From a terminal, connector_sync register <id> <path> --type claude-code does the same. For example: connector_sync register cc-notes ~/.claude/projects/my-app/memory --type claude-code.
The source picks a layout from the folder you give it.
memory, or any folder that holds a MEMORY.md. Every .md file under it is read, down to 8 levels.CLAUDE.md, CLAUDE.local.md and .claude/CLAUDE.md at the root, plus the .md files in .claude/rules, .claude/commands and .claude/agents.type value in a note's frontmatter becomes the memory's object type, so recall can filter on it. Tags in frontmatter carry over as they do for any Markdown note..claude, and any file whose name starts with a dot or ~$..md.--exclude-folder.A container file over 4 GiB is refused and recorded as a failure, not dropped. Set MODELBRAIN_CONTAINER_MAX_BYTES to change that ceiling. A single member over 32 MiB is refused the same way.
ModelBrain removes a member from memory only after it has read its container to the end. If a file cannot be parsed, every member already indexed from it stays put until the next good pass.
This source is hidden from relay callers. Anything that reaches ModelBrain through the hosted relay, which is how ChatGPT and Grok connect, cannot see what this source imported unless you add its partition (and the partition of any other source of the same kind) to that connection's allowlist yourself. Claude Code, Cursor and other local clients, which talk to ModelBrain on your own computer, can still see it.
kind, members, members_failed and last_container_bytes.Check the folder holds .md files at the level the layout expects. A project folder with no CLAUDE.md and no .claude folder has nothing to read.
Claude Code chooses its own folder names and does not document them. Browse to the folder in Finder or File Explorer and pick it directly.
Open the ModelBrain menu, choose Vaults, then Add Source, then Claude Code memory, and pick the memory folder, usually inside ~/.claude/projects. From a terminal, run connector_sync register with --type claude-code. Available from ModelBrain 0.6.6.
No. The source only reads. It never writes into .claude or into the folder you chose.
No. The partition is hidden from relay callers, which is how ChatGPT and Grok connect. Local clients such as Claude Desktop, Claude Code and Cursor can read it.
In a memory folder, every .md file. In a project folder, CLAUDE.md, CLAUDE.local.md, .claude/CLAUDE.md and the .md files under .claude/rules, .claude/commands and .claude/agents.
Each new source kind has its own page.
ChatGPT export → · Mail → · Calendar and contacts → · Bookmarks →Sources feed the same memory these assistants read.
Claude Desktop → · Claude Code → · Cursor →