Agent memory worked better as a statement graph than as a bigger context window
chrislally · reddit · 2026-07-26
The author found that agent memory kept failing when they tried to make it work by stuffing more context into the window or searching harder over history.
They switched to a statement graph model with typed entities, relationships, and statements about statements, so each fact can carry provenance, validity windows, and supersession history. The post lays out several lessons:
- framework memory assumptions break under real-world identity conflicts and temporal validity
- names should be treated as labels, not IDs
- temporal history should be appended, not overwritten
- conflicting claims should remain visible until a policy or human resolves them
- resolution depends on trust rules, so the believed result should be recorded too
The remaining open problem is context assembly: how to pick the right bounded slice of the graph during execution.
More from coding & agent
- Most agent teams should tune the harness before touching model weights — hwchase17 · 2026-07-26
- Model migrations should prove behavior, not just API compatibility — hwchase17 · 2026-07-26
- Owning AI also means owning the data that powers it — hwchase17 · 2026-07-26
- Jeff Dean says context engineering beats raw model size at YC Startup School — ycombinator · 2026-07-26
- Terminal-Bench Score Reaches 60% Running on 56GB VRAM with Single RTX Pro 6000 — victormustar · 2026-07-26
- A 4GB laptop GPU can run a local Qwen agent stack, but RAG forces model swaps — maikerukonare · 2026-07-26