MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isAgentMemFile

Function isAgentMemFile

source code/utils/memoryFileDetection.ts:121–126  ·  view source on GitHub ↗

* Check if a file path is within an agent memory directory.

(filePath: string)

Source from the content-addressed store, hash-verified

119 * Check if a file path is within an agent memory directory.
120 */
121function isAgentMemFile(filePath: string): boolean {
122 if (isAutoMemoryEnabled()) {
123 return isAgentMemoryPath(filePath)
124 }
125 return false
126}
127
128/**
129 * Check if a file is a Claude-managed memory file (NOT user-managed instruction files).

Callers 1

isAutoManagedMemoryFileFunction · 0.85

Calls 2

isAutoMemoryEnabledFunction · 0.85
isAgentMemoryPathFunction · 0.85

Tested by

no test coverage detected