MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / memoryHeader

Function memoryHeader

src/utils/attachments.ts:2385–2390  ·  view source on GitHub ↗
(path: string, mtimeMs: number)

Source from the content-addressed store, hash-verified

2383 * can fall back for resumed sessions where the stored header is missing.
2384 */
2385export function memoryHeader(path: string, mtimeMs: number): string {
2386 const staleness = memoryFreshnessText(mtimeMs)
2387 return staleness
2388 ? `${staleness}\n\nMemory: ${path}:`
2389 : `Memory (saved ${memoryAge(mtimeMs)}): ${path}:`
2390}
2391
2392/**
2393 * A memory relevance-selector prefetch handle. The promise is started once

Callers 2

readMemoriesForSurfacingFunction · 0.85

Calls 2

memoryFreshnessTextFunction · 0.85
memoryAgeFunction · 0.85

Tested by

no test coverage detected