Fix agent memory loss: keep an append-only event log and let the model query it with SQL
arpit_bhayani · x · 2026-12-04
Arpit Bhayani explains why agents 'forget': summarization and embedding-based ingestion are lossy compression that must decide what matters before the question exists. His fix: store every interaction as a row in an append-only event log, never overwritten, and give the model a read-only SQL tool so relevant rows re-enter the context at query time — e.g. SELECT ... WHERE content LIKE '%deploy payments: success%' ORDER BY ts DESC LIMIT 1 to find the last successful deploy. Compression still happens, but at query time, guided by the current objective. Better models write better queries, and cheaper models make multi-query lookups practical.
More from coding & agent
- Notion Pitches Itself as the Context Hub for Claude, ChatGPT, Grok and More — nbaschez · 2026-12-04
- One refund, three payouts: approval flows break when the world changes between yes and execute — No-Conflict4823 · 2026-12-04
- 5 AI predictions for 2027: inference engineering, small specialized models, RL environments as assets — cneuralnetwork · 2026-12-04
- Qwen4-35B-A3B lands on Ollama: local coding and agentic model with image understanding — Alibaba_Qwen · 2026-12-04
- Thread author admits his audit writeup is "a bit Claudey" — then builds yet another fix — mattbeane · 2026-12-04
- Antigravity users report ~40% weekly quota cut with zero notice, logs show — kalyan_kpl · 2026-12-04