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.
More from coding & agent
- CoT-Proxy: Distilling Frontier Models Without CoT Lifts 4B Student from 2.7% to 27.8% on SWE-bench — y_m_asano · 2026-11-25
- MCP solved tool calls, not authority: ADAP open protocol adds scoped delegation chains for agents — achardalias · 2026-11-25
- S2A MCP Builder launches: turn any OpenAPI spec into a self-healing MCP server — agentrsdg · 2026-11-25
- Agent said 'done', the write never landed: dev open-sources a read-after-write checker for Postgres — Ok-Machine7983 · 2026-11-25
- Building a software factory your team actually uses: agents, gates, and verification — blaizedsouza · 2026-11-25
- Formally verify your accounting and tax agents with TLA+ — WesEklund · 2026-11-25