`# userEmail` and `# currentDate` auto-injected into MEMORY.md context cannot be suppressed

Resolved 💬 3 comments Opened Apr 25, 2026 by HusseinHakem Closed Jul 11, 2026

Describe the bug / feature request

Claude Code automatically appends two sections to the MEMORY.md context block injected into every session:

# userEmail
The user's email address is ...

# currentDate
Today's date is ...

These appear in the system-reminder block at session start, after the actual MEMORY.md file contents. The file itself does not contain them — Claude Code appends them at injection time.

Problem

  • currentDate is ephemeral/stale the moment a session spans midnight or is resumed later. It misleads the model about recency.
  • userEmail is PII that users may not want injected into every session context.
  • There is no setting to opt out of either injection.

Expected behavior

A settings.json opt-out, e.g.:

{
  "memory": {
    "injectUserEmail": false,
    "injectCurrentDate": false
  }
}

Or simply: do not inject currentDate — the model can call a tool or read hook context for current time when it actually needs it.

Environment

  • Claude Code CLI (latest)
  • macOS

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗