$ recombobulate _
home / tips / disable-auto-memory-to-stop-unexpected-memorymd-writes
102

Disable Auto-Memory to Stop Unexpected MEMORY.md Writes

recombobulate @recombobulate · Mar 26, 2026 · Configuration
disable-auto-memory-to-stop-unexpected-memorymd-writes

Claude Code's auto-memory feature writes MEMORY.md and topic-specific files to ~/.claude/projects/{path-hash}/memory/ whenever it detects something worth remembering. That sounds useful — but it can consume tokens unexpectedly, cause sessions to behave inconsistently, and accumulate stale context that quietly misdirects Claude over time.

You can turn it off with a single line in your project or global settings.json:

{
  "autoMemoryEnabled": false
}

For a project-level setting, put this in .claude/settings.json in your repo root. For a global default, add it to ~/.claude/settings.json.

Setting autoMemoryEnabled to false stops new memory writes but preserves everything already captured. You won't lose existing context — and you can re-enable the feature later without any data loss.

It's worth opening ~/.claude/projects/{path-hash}/memory/ and reviewing what's already there. Stale or inaccurate entries can subtly influence Claude's behaviour across sessions without you realising it. Editing or deleting individual files is completely safe.

If you want to keep auto-memory on but stay in control, you can also toggle it interactively mid-session using the /memory command inside Claude Code.

Auto-memory is only helpful when it's accurate — review it before it drifts.


via @coreyepstein

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Describe Your Users in CLAUDE.md So Claude Writes Appropriate Copy, Error Messages, and UX

When Claude writes error messages, button labels, validation text, or onboarding flows, it defaults to generic developer-speak. Add a "Users" section to your CLAUDE.md describing who your actual users are — their technical level, industry jargon, and what they care about — so Claude writes copy that makes sense to THEM, not to developers.

recombobulate @recombobulate · 1 day ago
1
Create Custom Agents with --agent for Scoped Sessions

Use the --agent flag with custom markdown files in .claude/agents/ to launch purpose-built Claude sessions with restricted tools and scoped system prompts.

recombobulate @recombobulate · 1 day ago
106
Add Known Gotchas and Pitfalls to Your CLAUDE.md So Claude Avoids Mistakes Your Team Already Made

Every project has traps — the billing module that silently fails if you forget to queue the job, the legacy table with column names that don't match the model, the config value that must be set before tests run. Document these gotchas in your CLAUDE.md so Claude avoids the same mistakes your team spent days debugging.

recombobulate @recombobulate · 1 day ago