Expand description
CLAUDE.md and CLAUDE.local.md loader with CLI-compatible @import processing.
This module provides a memory loader that reads CLAUDE.md and CLAUDE.local.md files with support for recursive @import directives. It implements the same import behavior as Claude Code CLI 2.1.12.
Structs§
- Memory
Content - Loaded memory content from CLAUDE.md files and rules.
- Memory
Loader - Memory loader with CLI-compatible @import processing.
- Memory
Loader Config - Configuration for MemoryLoader.
Constants§
- DEFAULT_
IMPORT_ DEPTH - Default maximum import depth for CLI-like behavior. CLI uses depth 5 technically but loads ~24K tokens of memory. Depth 2 gives ~31K tokens which is the closest match.
- MAX_
IMPORT_ DEPTH - Maximum import depth when full expansion is needed (CLI’s technical limit).