Module memory_loader

Module memory_loader 

Source
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§

MemoryContent
Loaded memory content from CLAUDE.md files and rules.
MemoryLoader
Memory loader with CLI-compatible @import processing.
MemoryLoaderConfig
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).