Investigation: Claude Code Agents Surfacing Unverified MEMORY.md Content Due to Compaction Changes

A Reddit user reported a major behavioral shift in Claude Code where agents surface content from MEMORY.md without re-verifying it mid-task. After digging into changelogs, they identified two changes in versions 2.1.139 and 2.1.141 that may explain the drift.
Key Changes
- 2.1.139 (most significant):
- Compaction now preserves "user instructions" more aggressively – if auto-injected
MEMORY.mdcontent is treated as instruction-like, it rides through compaction with elevated weight. /goalcommand added – cross-turn completion conditions change turn execution model.- MCP stdio servers now receive
CLAUDE_PROJECT_DIR– env injection change. - Hook
continueOnBlockadded – rejection reasons can feed back to model.
- Compaction now preserves "user instructions" more aggressively – if auto-injected
- 2.1.141 (current):
- Fixed
/modelsilently changing autocompact threshold in concurrent sessions – implying thresholds were misconfigured before, causing agents to compact earlier than intended, dropping verification reasoning and falling back toMEMORY.md. - "Summarize up to here" in Rewind menu – new compression path.
- Fixed
Practical Impact
The user observes that autocompact threshold bug (broken before 2.1.141) caused agents to compact at wrong intervals, silently losing mid-task verification reasoning. And compaction now preserves "user instructions" so MEMORY.md auto-injected content survives compaction with elevated priority. The time between autocompaction also reduced substantially in the last 48 hours. The effect is substantial across their fleet.
Request for Data Points
The user is asking the community:
- Have you noticed your Claude Code agents confidently asserting things from
MEMORY.mdthat they should have re-verified – especially in longer sessions or post compaction? - When you first noticed, what version were you on, whether using agent mode vs interactive, and whether it's reproducible after a manual compaction?
📖 Read the full source: r/ClaudeAI
👀 See Also

Pentagon to adopt Palantir AI as core US military system
The Pentagon plans to adopt Palantir's AI technology as a core system for the US military, according to a memo. The Reuters article generated 47 points and 2 comments on Hacker News.

YouTube Auto-Labels AI Videos: Simplified Labels & Auto-Detection in 2026
YouTube updates AI labels: more prominent placement, auto-detection of photorealistic AI content, and permanent labels for videos made with YouTube's own AI tools or C2PA metadata.

OpenClaw Agent System Broken After Recent Updates
Recent OpenClaw updates have broken core agent functionality, with users reporting that agents can't be reliably created or run. The system previously allowed creating agents, having them appear correctly, running workflows, and using them for real tasks.

Claude Code v2.1.139 Adds Agent View, /goal Command, and Major MCP Improvements
Claude Code v2.1.139 introduces a new agent view for session management, a /goal command for multi-turn tasks, expanded hook capabilities, and fixes for MCP server memory issues and terminal corruption.