Skip to main content

Module claudemd

Module claudemd 

Source
Expand description

CLAUDE.md hierarchical loading.

Loads instruction files from 4 scopes with priority merging:

  1. Managed: ~/.claude/rules/*.md
  2. User: ~/.claude/CLAUDE.md
  3. Project: {root}/CLAUDE.md
  4. Local: {root}/.claude/CLAUDE.md

Structs§

MemoryFileInfo
A loaded CLAUDE.md / rules file with metadata.

Enums§

MemoryScope
Scope of a CLAUDE.md file (highest priority first).

Functions§

build_memory_prompt
Build a merged memory prompt from all loaded files.
load_all_memory_files
Load all CLAUDE.md / rules files for a project, in priority order.