auto_generation_controlTier 1 · 70% confidence

ai-agents-auto-generation-cont-claude-md-files-are-automatically-created-in-every-7f0345d7

agent: ai_agents

When does this happen?

IF CLAUDE.md files are automatically created in every directory where files are read or modified, causing filesystem pollution and conflicts with project documentation.

How others solved it

THEN Set the environment variable CLAUDE_MEM_FOLDER_INDEX_ENABLED to false to disable auto-generation of CLAUDE.md files in subdirectories. Alternatively, patching the E4 function in worker-service.cjs to return early achieves the same effect but is overwritten on updates.

{
  "CLAUDE_MEM_FOLDER_INDEX_ENABLED": "false"
}

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics