Markdown agent memory where the model classifies but never writes, on a local 4B model

yg_memlayer · reddit · 2026-11-25

A developer's memory layer fixes a common failure mode: models summarize conversations and store the summary, so invented facts can't be traced. The constraint: the model has zero write access. Work writes verbatim bullets into a Markdown log tagged [fact]/[action]; a classifier (local qwen3-4b via Ollama) only answers category, 0-2 score, and already-covered — never emitting text. Long-term file has a hard 90-line budget with reviewed merges; session start is one 0.3s call. Stack: 5 Markdown files, 6 scripts, no server or embeddings. Limits: tens-to-hundreds of facts needing exactness, not semantic recall; fact conflicts unsolved.

Original post →

More from coding & agent

coding & agent channel →