# CLAUDE_CODE_DISABLE_CLAUDE_MDS

> Set to 1, it loads no CLAUDE.md or memory files.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** CLAUDE_CODE_DISABLE_CLAUDE_MDS=1

## Think of it like

It is like you start a new class without the notes from last term.

## Definition

CLAUDE_CODE_DISABLE_CLAUDE_MDS set to 1 stops every CLAUDE.md file from loading. That means yours, the project's and the auto memory files. Claude starts each session with none of those notes. It helps you test how Claude works with no house rules.

## Example

Emma thinks an old rule in her CLAUDE.md is making Claude act oddly. She starts one session with this set, and the odd habit is gone.

## Example code

```bash
CLAUDE_CODE_DISABLE_CLAUDE_MDS=1 claude
```

Start one session with no memory files.

## Why it matters

It is the quickest way to tell if a memory file is what went wrong.

## Common mistake

Setting it in your shell and then forgetting it. Each new session then skips your project rules.

## Three principles

- **No CLAUDE.md.** User or project.
- **No auto memory.** Either.
- **Good for tests.** A clean start.

## Related terms

- [CLAUDE.md](https://learn.benibix.com/term/ai/claude-md)
- [Auto Memory](https://learn.benibix.com/term/ai/auto-memory)
- [CLAUDE_CODE_DISABLE_AUTO_MEMORY](https://learn.benibix.com/term/ai/claude-code-disable-auto-memory-variable)

## Told apart from

- [CLAUDE_CODE_DISABLE_CLAUDE_MDS vs CLAUDE_CODE_DISABLE_AUTO_MEMORY](https://learn.benibix.com/compare/claude-code-disable-claude-mds-variable-vs-claude-code-disable-auto-memory-variable): People think turning off auto memory drops CLAUDE.md too. It does not. The auto memory switch stops only the notes Claude keeps for itself. Your own CLAUDE.md files still load. The CLAUDE_MDS switch drops every memory file, yours and the auto ones. Use the first to stop Claude learning. Use the second for a clean test with no notes.

![Which memory files load into the chat under each variable, from CLAUDE.md to auto memory.](https://learn.benibix.com/diagrams/env-memory-load.svg)

---

Source: https://learn.benibix.com/term/ai/claude-code-disable-claude-mds-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
