From 18b258fbf20c647c39b3bcf799a80dd82d162e1c Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 7 Oct 2026 14:57:37 +0100 Subject: [PATCH] chore: drop the tolerated-legacy CLAUDE.md patterns (#494) The PyAutoMind#482 removal waves retired every CLAUDE.md pointer, so the assistants track no CLAUDE.md and the workspace root has none. Drop the "CLAUDE.md"/"scripts/CLAUDE.md" framework patterns from the clone profiles, the root CLAUDE.md entry from regroup_workspace's config rewrite, and re-point the Memory adapter test at a generic per-tool adapter name. No file in PyAutoBrain names CLAUDE.md any more. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01QmiavJnNzmKb6EJmgYATfx --- agents/conductors/clone/_clone.py | 4 ---- bin/regroup_workspace.py | 5 ++--- tests/test_memory_surfaces.py | 8 ++++---- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/agents/conductors/clone/_clone.py b/agents/conductors/clone/_clone.py index a2bdbde6..8ea33907 100644 --- a/agents/conductors/clone/_clone.py +++ b/agents/conductors/clone/_clone.py @@ -94,10 +94,6 @@ ".github/*", # wiki-currency / citation workflows "wiki/README.md", "wiki/project/*", # project wiki rules + profile template "scripts/AGENTS.md", "scripts/README.md", - # Legacy per-tool pointer files, still present in older references until - # they are retired (harnesses now read AGENTS.md natively). Matched only - # when present, so their absence is harmless. - "CLAUDE.md", "scripts/CLAUDE.md", # Harness mirrors of the generic machinery (.claude/, .codex/, .gemini/): ".claude/hooks/*", ".claude/settings.json", ".codex/hooks.json", ".gemini/*", ".claude/skills/_*", ".claude/skills/start-new-project*", diff --git a/bin/regroup_workspace.py b/bin/regroup_workspace.py index d43cfef5..f0dc46fc 100644 --- a/bin/regroup_workspace.py +++ b/bin/regroup_workspace.py @@ -135,8 +135,7 @@ def plan(root, state, bundles_root=None, manifest_root=None): # These are local, workspace-owned paths, not versioned source or shell RCs. config_paths = list((root / '.idea').glob('*.xml')) + list((root / '.idea').glob('*.iml')) config_paths += [root / '.claude/settings.json', root / '.codex/hooks.json', - root / 'AGENTS.md', - root / 'CLAUDE.md'] # legacy pointer; skipped when absent + root / 'AGENTS.md'] for path in config_paths: if not path.is_file() or path.is_symlink(): continue @@ -149,7 +148,7 @@ def plan(root, state, bundles_root=None, manifest_root=None): after = re.sub(re.escape(old) + r'(?=[/"\s:<]|$)', lambda _: new, after) for prefix in ('$PROJECT_DIR$/', '$MODULE_DIR$/', './', '${CLAUDE_PROJECT_DIR}/', '$CLAUDE_PROJECT_DIR/', '${PYAUTO_ROOT}/', '$PYAUTO_ROOT/'): after = re.sub(re.escape(prefix + name) + r'(?=[/"\s<]|$)', lambda _, p=prefix, r=relative: p+r, after) - if path.name in ('AGENTS.md', 'CLAUDE.md'): + if path.name == 'AGENTS.md': after = re.sub(r'(?