.agents/memory/2026-02-28-memory-injection-timestamp-enhancement.md

1.3 KiB

2026-02-27 Session Notes

Memory Injection Timestamp Enhancement

Implemented plan to surface created_at timestamps in all memory injection points within the Signet daemon. Previously, timestamps were stripped during injection despite being queried from the database for decay scoring, undermining temporal reasoning in agent context.

Changes Made

All modifications concentrated in packages/daemon/src/hooks.ts:

  1. Helper Function: Added formatMemoryDate(isoDate: string) to convert ISO timestamps to compact localized format (e.g., "Feb 15, 2026")
  2. Session Start Injection (~line 852-854): Updated memory format from - ${content}[tags] to include date suffix
  3. User Prompt Submit Injection (~line 1044): Modified selected memories map to include formatted dates
  4. Synthesis Prompt (~line 1379): Updated memory formatting in LLM synthesis context

Verification Plan

  • Run bun run build and bun run typecheck for compilation checks
  • Test fresh Claude Code session to verify injected context shows dated memories
  • Verify [signet:recall] injection includes timestamps
  • Confirm synthesis prompts include dated memories if triggered

Status

Session started with plan approval, began reading hooks.ts to identify exact injection locations.