Flat MEMORY.md broke in 2 weeks: 30.9KB bloat evicted all coding rules; a 4-layer no-vector-DB fix

Adorable-Cost-3249 · reddit · 2026-11-20

After 12 days of logs (226 sessions, 1,337 turns), the author found their flat MEMORY.md had bloated startup injection to 30.9KB (7,700 tokens) per chat, while a naive "latest 8 facts" cap evicted 100% of architecture and UX invariants—coding subagents woke up with personal reminders instead of repo conventions.

Rebuilding local-first memory in the open-source agy-hq setup, they landed on five things that worked in a zero-database Markdown+JSONL stack:

The post also maps how Anthropic, OpenAI, xAI, Meta and Google converge and diverge on cross-session memory.

Original post →

More from coding & agent

coding & agent channel →