Skip to content

[BUG] Claude forgets everything in CLAUDE.md after compaction #6354

@flux627

Description

@flux627

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other:
  • Claude CLI version: 1.0.88 (Claude Code)
  • Operating System: macOS 14.5 (23F79)
  • Terminal: iTerm2

Bug Description

My complex project has a lot of things that need to be known for agentic workers to navigate effectively. All these details are listed in my project's CLAUDE.md located at the root of my project. I noticed that I have to tell it to re-read this every time it compacts, otherwise it starts doing things in "common sense" ways that deviate from the "correct way" that is defined. After re-reading, all problems disappear.

Steps to Reproduce

  1. have a complicated project with specific operational requirements
  2. do a lot of work until compaction
  3. watch claude not follow CLAUDE.md
  4. tell claude to read CLAUDE.md and watch it follow it

Expected Behavior

After compaction, Claude should remember or re-read CLAUDE.md

Actual Behavior

Claude does not remember CLAUDE.md after compaction

Additional Context

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions