[BUG]

Resolved 💬 3 comments Opened Aug 14, 2025 by git-steven Closed Aug 18, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [x] AWS Bedrock
  • [ ] Google Vertex AI
  • [x] Other: claude_code
  • Claude CLI version: 1.0.61
  • Operating System: macOS (Darwin 24.6.0)
  • Terminal: iTerm2

Bug Description

When using the # command to memorize project-specific rules, the rule is stored in the current session memory but is not automatically written to the project's CLAUDE.md file, causing the rule to be lost between sessions.

Steps to Reproduce

  1. In a project with a CLAUDE.md file, use the # command to memorize a rule
  • Example: # Always keep tests and code DB agnostic. Any differences between Postgres and H2 should be kept

in a compatibility layer.

  1. The rule appears to be memorized (shows in system reminders)
  2. Check the project's CLAUDE.md file - the rule is NOT added
  3. Start a new session - the rule is lost

Expected Behavior

  1. Store the rule in current session memory ✓ (works)
  2. Automatically append/update the project's CLAUDE.md file ✗ (doesn't work)
  3. Persist the rule across sessions ✗ (fails due to #2)

Actual Behavior

  • Rule is memorized in current session only
  • CLAUDE.md file remains unchanged
  • Rule is lost when starting new Claude Code session
  • Manual editing of CLAUDE.md is required to persist the rule

Additional Context

Memorization seems to work for the user's CLAUDE.md and the CLAUDE.local.md

View original on GitHub ↗

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