Hierarchical RAG plus persistent scratchpad beats FIFO windows for long-horizon agents

IgorCarron · x · 2026-09-05

A developer describes shifting an agent system (Astra) from a linear FIFO context window to hierarchical RAG with a persistent scratchpad. Traditional compression loses key edge invariants during deep iterations; persistent note indexing lets the agent accurately resolve decision diffs across long traces. The repost quips that "RAG is everything," underscoring RAG's comeback in agent memory design.

Original post →

More from coding & agent

coding & agent channel →