Building a persistent customer memory layer for a support agent with Hindsight

Front_Xordinary0905 · reddit · 2026-09-29

The author walks through engineering a persistent memory layer for a customer-support agent so it stops re-asking returning customers for information they already gave. Key points: a two-layer design separating MemoryService (app-level memory interface, per-customer memory banks, local fallback dict for when Hindsight Cloud is unconfigured/failing) from HindsightClient (auth, HTTP, endpoints, response parsing); a flow of Customer → Agent → MemoryService → HindsightClient → Hindsight Cloud → retrieved context; and storing both sides of each interaction as one combined memory block ("User: …\nAgent: …") so future retrieval carries full conversational context, illustrated with a recurring Wi-Fi outage support scenario.

Original post →

More from coding & agent

coding & agent channel →