MCPcopy Index your code
hub / github.com/codeaashu/claude-code / memoryFreshnessText

Function memoryFreshnessText

src/memdir/memoryAge.ts:33–42  ·  view source on GitHub ↗
(mtimeMs: number)

Source from the content-addressed store, hash-verified

31 * the citation makes the stale claim sound more authoritative, not less.
32 */
33export function memoryFreshnessText(mtimeMs: number): string {
34 const d = memoryAgeDays(mtimeMs)
35 if (d <= 1) return ''
36 return (
37 `This memory is ${d} days old. ` +
38 `Memories are point-in-time observations, not live state — ` +
39 `claims about code behavior or file:line citations may be outdated. ` +
40 `Verify against current code before asserting as fact.`
41 )
42}
43
44/**
45 * Per-memory staleness note wrapped in <system-reminder> tags.

Callers 2

memoryHeaderFunction · 0.85
memoryFreshnessNoteFunction · 0.85

Calls 1

memoryAgeDaysFunction · 0.85

Tested by

no test coverage detected