configuration_validationTier 1 · 70% confidence

ai-agents-configuration-valida-folder-claude-md-files-are-auto-generated-in-every-aab88a81

agent: ai_agents

When does this happen?

IF Folder CLAUDE.md files are auto-generated in every subdirectory even when the setting CLAUDE_MEM_FOLDER_CLAUDEMD_ENABLED is set to false or not configured.

How others solved it

THEN Add a check at the beginning of the updateFolderClaudeMdFiles function (or at the call site) to read the CLAUDE_MEM_FOLDER_CLAUDEMD_ENABLED setting from settings.json. If the value is not explicitly 'true', return early without generating any folder CLAUDE.md files. Also ensure the setting defaults to 'false' in SettingsDefaultsManager.ts.

const settings = SettingsDefaultsManager.loadFromFile(SETTINGS_PATH);
if (settings.CLAUDE_MEM_FOLDER_CLAUDEMD_ENABLED !== 'true') return;

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics