Ditching Vector DBs: Building Agent Memory with a Folder of Markdown
gimalay · reddit · 2026-08-02
The author proposes an alternative agent memory system to traditional vector databases: using a folder of Markdown files as a database. Standard stacks often require structured DBs, text files, and vector DBs, leading to complex glue code and hard-to-debug black-box retrieval.
The author argues that most agent memory needs are actually structured queries (e.g., "what tasks are still open"), which are essentially WHERE clauses rather than similarity searches. The core design includes:
- File paths as primary keys and frontmatter as the schema, supporting Mongo-style operators.
- Links as typed edges, where inline links are references and lone links imply containment, enabling complex traversals.
- Agent-specific optimizations: --max-tokens caps context length, --expect 1 forces write operations to declare affected rows to prevent errors, and agents can query built-in docs dynamically.
The author honestly notes the limitations: it is not semantic search (though BM25 is built-in), but at personal scale (loading 20k docs in 0.7s), once the store has real structure, the need for semantic similarity is surprisingly rare.
More from coding & agent
- ERP•AI launches headless SaaS with $0 seats that bills machines: $1 buys 4,000 record writes — rohanpaul_ai · 2026-10-16
- FDE-Gym benchmark shows huge gap on real AI delivery tasks: top model scores 0.563 — DeepLethe · 2026-10-16
- ModelClock launches free read-only MCP server to track model deprecations — zomenaro · 2026-10-16
- Vibe-coded dashboard leaked franchise financials before anyone logged in — shauntrennery · 2026-10-16
- Fintech HR built a sourcing agent on 60,000 past applicants — 30 qualified candidates in a month — G0NZ0BOY · 2026-10-16
- Orchestrating a 100-image portrait of humanity for aliens with ChatGPT, Argon and p5.brush — dx8xb · 2026-10-16