Structured Memory for Coding Agents
Funky_Chicken_22 · reddit · 2026-07-18
world-model-mcp is an open-source structured MCP memory system for coding agents, which the author has been actively refining for 6 months.
Core Design
- Structured memory replaces pure vector recall: Every fact is tagged with validat / invalidat, an evidence type (test / sourcecode / usercorrection / session), and specific decay half-lives.
- Conflict resolution: When facts contradict each other, the system automatically decides based on rules like confidence and source count. If confidence falls below a threshold, it returns None for human review instead of forcing a choice.
- Coach-Player adversarial validation: An independent Coach LLM verifies material claims in candidate answers line-by-line, outputting HIGH / MEDIUM / LOW confidence levels alongside a verified/unverified checklist.
Results
- Achieved 100% (105/105) on its shipped conflict resolution benchmark.
- On a first human-annotated hallucination benchmark, the Coach-Player approach achieved 100% exact match (12 pairs, Claude Haiku 4.5).
Integration & Usage
The project provides 10 runtime adapters, including Claude Code, Cursor, Codex, Continue, Cline, Windsurf, and GitHub Copilot. Once installed, 27 tools from the stdio MCP server are directly accessible within the agent loop.
The author also poses two questions for the LLM developer community:
- Can this independent verification mechanism truly prevent hallucinations, or does the Coach itself require an adversarial audit?
- Is influencestate (observed / pendingreview / approved / blocked)—a design that separates storage from planning impact—a better primitive?
Related event: MCP Shared and Structured Memory Approaches Gain Traction(6 posts)→
More from coding & agent
- Model Is the Least Interesting Part: A Guide to Six Core AI Architectures from RAG to Multi-Agent — goyalshaliniuk · 2026-09-11
- Non-coder builds layered memory architecture: 20k tokens tracks a year of agent conversations — matteoianni · 2026-09-11
- Warp's six non-engineering teams all run on Linear and Claude Code — mon__lim · 2026-09-11
- 9-year backend dev: AI code isn't the problem, the rate of making a mess is — Sweaty-Landscape-561 · 2026-09-11
- RTK claims token savings, but our cost benchmarks disagree — michalwarda · 2026-09-11
- Is inference latency becoming the biggest bottleneck for production AI agents? — Euphoric_Sea632 · 2026-09-11