Interface: ProjectMemoryOptions
Defined in: memory/types.ts:74
Options for ProjectMemoryLoader
Properties
combineStrategy?
optional combineStrategy?: CombineStrategy;
Defined in: memory/types.ts:116
Strategy for combining multiple memory files
Default
'concat'
customPatterns?
optional customPatterns?: FilePattern[];
Defined in: memory/types.ts:92
Additional custom file patterns to search for
encoding?
optional encoding?: BufferEncoding;
Defined in: memory/types.ts:147
File encoding
Default
'utf-8'
headerFormat?
optional headerFormat?: string;
Defined in: memory/types.ts:141
Header format template. Use {path} for file path, {relativePath} for relative path
Default
'# From: {relativePath}\n\n'
includeGeneric?
optional includeGeneric?: boolean;
Defined in: memory/types.ts:87
Whether to include generic memory files (PROJECT.md, INSTRUCTIONS.md, AI.md)
Default
true
includeHeaders?
optional includeHeaders?: boolean;
Defined in: memory/types.ts:135
Whether to include file path headers in combined content
Default
true
maxContentSize?
optional maxContentSize?: number;
Defined in: memory/types.ts:129
Maximum total content size in characters Files are loaded in priority order until limit is reached
Default
100000 (100KB)
maxParentDepth?
optional maxParentDepth?: number;
Defined in: memory/types.ts:104
Maximum number of parent directories to traverse
Default
10
providers?
optional providers?: string | string[];
Defined in: memory/types.ts:81
LLM provider name(s) to search for E.g., ‘claude’ will search for CLAUDE.md, .claude.md, .claude/instructions.md Can be a single provider or array for multi-provider support
Default
'claude'
searchParents?
optional searchParents?: boolean;
Defined in: memory/types.ts:98
Whether to search parent directories up to the root
Default
true
separator?
optional separator?: string;
Defined in: memory/types.ts:122
Separator to use between files when combining
Default
'\n\n---\n\n'
stopAtGitRoot?
optional stopAtGitRoot?: boolean;
Defined in: memory/types.ts:110
Stop searching parents when finding a git root (.git directory)
Default
true