Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Claude Code: MEMORY.md vs CLAUDE.md

Date: 2026-03-03

CLAUDE.md

How Claude Code hierarchical loading works (the native mechanism)

When Claude Code opens a session in /soviar-systems/un_votes/, it reads CLAUDE.md files from:

  1. /home/commi/... (home, if exists)

  2. /home/commi/Yandex.Disk/it_working/projects/soviar-systems/CLAUDE.md (parent)

  3. /home/commi/Yandex.Disk/it_working/projects/soviar-systems/un_votes/CLAUDE.md (project)

MEMORY.md (auto memory)

When to use which

Use caseWhere
“Always use ruff for linting” (team convention)CLAUDE.md
“This machine uses qdbus6, not qdbus” (machine-specific)MEMORY.md
“Postmortem filenames use YYYY_MM_DD_ prefix” (personal preference)Either — MEMORY.md if personal, CLAUDE.md if team
“Don’t auto-commit” (workflow preference)MEMORY.md

How to use memory in daily work