6 months of .md memory, conflicting facts are the hard part
TL;DR Highlight
Escalating conflicting facts in .md agent memory to a human via Telegram reduced hallucinations.
Who Should Read
Developers running coding agents on .md-file long-term memory who see hallucinations from contradicting facts.
Core Mechanics
- Memory has a warm layer and an archive
- The warm layer holds knowledge and memories updated several times a day and at ingestion time.
- The archive is heavily cross-linked.
- Contradicting facts caused hallucinations
- Learnings and decisions in the knowledge base started to conflict.
- Those conflicts led to hallucinations.
- Third-party tools seem to resolve by recency
- The author wanted self-hosted with a human in the loop instead.
- A Telegram bot escalates conflicts to a human
- The bot asks the author when a conflict appears.
- Resolutions are embedded and used as truth in future conflicts.
- Three weeks in, it seems better
- There are no metrics, just the author's impression.
- Two questions remain open
- Where is the line between self-resolving and escalating to a human?
- Is treating the author's input as truth the right approach?
Community Reactions
How to Apply
- Find conflict candidates in your memory files
- Feed your agent's memory .md files to an LLM and have it extract contradicting fact pairs.
- Run the prompt below today.
- Store conflict resolutions separately
- Save each human decision as a conflict summary plus the chosen fact.
- Retrieve it as evidence at the next conflict.
- Define escalation criteria first
- Write rules for when to auto-resolve by recency and when to ask a human.
- The author hasn't settled this line either, so tune it using logs.
Try It
# Paste into Claude or ChatGPT (simplified version of the post's idea)
Below is the memory .md content of my coding agent.
Find all pairs of facts that contradict each other.
For each pair output:
1. Fact A (file/line)
2. Fact B (file/line)
3. One line on why they conflict
4. Whether it can be auto-resolved by recency or needs a human, with the reason
[Memory]
{{memory .md content}}Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques