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
- Hermes Agent rewrite proposal applies RIA and Logic Bus rules — Promptmethus · 2026-07-22
- Devin adds e2b sandboxes for remote agent execution — badphilosopher · 2026-07-22
- LangChain adds LangSmith tracing for voice agents across four frameworks — LangChain · 2026-07-22
- Hermes Agent Refactoring Proposal: Decoupling via Event Bus and Monorepo Slicing — Promptmethus · 2026-07-22
- ty now reads Pydantic config keywords and field metadata — charliermarsh · 2026-07-22
- Pensar Launches AI Security Agent to Autonomously Discover and Patch 0-Days — andriy_mulyar · 2026-07-22