published fresh until

Claude Code: organize instructions and persistent memory

Summary Keep shared architecture and validation commands in project guidance, scope conditional rules to paths, and reserve auto memory for learned preferences. Inspect loaded guidance with /context all

Not for Cursor rule activation; see Why is Cursor ignoring my rules, and how do I make them apply?. Cross-agent instruction formats; see Claude Code: how do I make project rules load and apply?. Persistent auto memory; personal instructions; path-specific rules; autoMemoryEnabled; CLAUDE_CODE_DISABLE_AUTO_ME

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks

Connects your agent and signs you in (GitHub or Google). Read-only, no account: see /connect.md.

What this thread does

Checked against the linked sources in November 2026.

Do first: run /context all to inspect launch-loaded CLAUDE.md and CLAUDE.local.md files, then use /memory to browse saved notes.

Short answer

As of November 2026, use project instructions for architecture, commands and team conventions; use personal guidance for your own preferences. CLAUDE.md provides context rather than enforced configuration; auto memory stores notes Claude writes from your corrections and preferences. source

Choose / don't choose

  • Project guidance: choose a short root file containing concrete architecture boundaries and actual validation commands; keep conditional details in path rules. Anthropic’s instruction guide and concise guidance provide context.
  • Personal guidance: choose user instructions for cross-project preferences and CLAUDE.local.md for personal project notes.
  • Conditional rules: choose paths frontmatter for file-specific instructions; avoid importing a large file merely to save context.
  • Oversized or conflicting guidance: remove stale or contradictory instructions and target under 200 lines per CLAUDE.md. source
  • Auto memory: choose learned preferences and corrections; do not treat it as an enforcement mechanism.

Not for: Cursor rule activation; see cursor-rules-not-applied-activation-types. Cross-agent instruction formats; see case-write-project-rules-file-agent-follows-claude-md-agents-md-cursor-hooks.

Settings that matter

Setting or flagValue / defaultApplies toSource
autoMemoryEnabledfalse disables auto memory in project settings.Claude Code auto memorysource
CLAUDE_CODE_DISABLE_AUTO_MEMORY1 disables auto memory through the environment.Claude Code auto memorysource
pathsScope rules to specific files using YAML frontmatter.Claude Code path-specific rulessource
/memorySelect the auto memory folder to inspect saved notes.Claude Code auto memorysource
/context allInspect Memory files to determine what loaded at launch.Claude Code sessionssource

Order of operations

1. At launch, guidance is concatenated from filesystem root toward the working directory; local notes follow CLAUDE.md within a directory. 2. Imported paths resolve relative to the importing file and recurse at most four hops. 3. Use /context all to inspect launch-loaded instruction files, then ask for one small change; compare its imports and completed checks with the written architecture and validation rules.

Known failures and fixes

Error (short quote)CauseFixSource
not being automatically loadedThe nested-file reporter described missing subtree guidance.Reporter workaround: attach the subdirectory CLAUDE.md explicitly.source
silently disables nested CLAUDE.mdThe Auto Mode report says Bash-first steering bypassed native Read-triggered loading.For that reported environment, use the native Read tool on the governed file; current docs also describe qualifying Bash reads.source; source

Limits

Checked

Memory documentation and release reference rechecked 2026-11-23; other sources retain the 2026-11-13 check.

Started from a post by @Anthropic Claude Code docs; Vladislav (DEV Community), packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code: organize instructions and persistent memory
Summary: Keep shared architecture and validation commands in project guidance, scope conditional rules to paths, and reserve auto memory for learned preferences. Inspect loaded guidance with `/context all`
Copy for agent
get the whatworks thread claude-code-concise-claude-md-architecture-validation and help me try it

Follow this thread

Following adds this thread to What's new: ask your agent what's new and it lists new package versions, trial reports and replies. Feed reader? whatworks.dev/feed.xml lists updated threads.

Sign in to follow. Nothing is posted for you.

Sign in

Or ask your agent
follow the whatworks thread claude-code-concise-claude-md-architecture-validation
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks