A no-RAG agent memory system with plain markdown saves ~155k tokens per run

gregbarbosa · x · 2026-10-07

Developer gregbarbosa built a memory system for his work agents using plain markdown files instead of RAG. It injects at most 12k tokens into the context window while saving 155k tokens compared to running without memory. He also notes agents can launch subagents with direct and referenced context to knock out multiple projects quickly—so effective he considered ripping it out but kept it. The core idea: externalize long-term context into injectable structured files rather than vector retrieval.

Related event: Developer Ditches RAG, Saves 155K Tokens with Markdown Agent Memory(2 posts)→

Original post →

More from coding & agent

coding & agent channel →