[BUG] Updated Memory have placeholders

Resolved 💬 4 comments Opened Jun 16, 2025 by lehoanganh298 Closed Jan 4, 2026

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • Claude CLI version: 1.0.15
  • Operating System: Ubuntu 22.04

Bug Description

When using "#" to update memory to CLAUDE.md, the new generated CLAUDE.md content get placeholders for unchanged parts, so a big part of old CLAUDE.md get erased.
e.g:
Old CLAUDE.md file:

# Coding convention
- Always do the python coding/installing using conda environment py310

# Description of the project
This is a project about ...
Dataset directory: ./my_data

Adding memory:
# Always write all the outputs and errors of executed commands to a file in ./execution_logs. Each executed command should have a separated log file, with the file name is an uuid
The new CLAUDE.md file:

```# Coding convention

  • Always do the python coding/installing using conda environment py310
  • Always write all the outputs and errors of executed commands to a file in ./execution_logs. Each executed command should have a separated log file, with the file name is an uuid

[... rest of the existing content remains unchanged ...]

-> The whole "# Description of the project..." get erased

## Expected Behavior
The generated new CLAUDE.md content should resolve all the placeholder

View original on GitHub ↗

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