feat(context): rebrand the context file CLAUDE.md → CLAWCODEX.md#732
Merged
Conversation
clawcodex is its own product — its instruction/memory file convention is now CLAWCODEX.md (and CLAWCODEX.local.md), replacing the inherited CLAUDE.md naming across the app. Clean break: the legacy names are not read (no fallback), per project direction. Core (src/context_system/clawcodex_md.py, renamed from claude_md.py): - CLAWCODEX.md / CLAWCODEX.local.md at every tier: managed (/etc/clawcodex), user (~/.clawcodex), project root, .clawcodex/, local, and --add-dir. - get_claude_mds → get_clawcodex_mds; kill switch renamed to CLAWCODEX_DISABLE_CLAWCODEX_MDS; is_memory_file_path recognizes the canonical names. Everywhere else: - /init generates CLAWCODEX.md (+ .local.md) with rebranded wording. - /memory picker rows target ~/.clawcodex/CLAWCODEX.md and the nearest project CLAWCODEX.md. - The one-time ~/.claude import migration copies that harness's CLAUDE.md in under the canonical CLAWCODEX.md name (user + project passes) — the only place the old name is still touched, as a migration SOURCE. - Agent frontmatter key: omit-clawcodex-md / omitClawcodexMd. - Threat pattern agent_config_mod guards CLAWCODEX.md (CLAUDE.md stays listed purely as attack-target vocabulary alongside .cursorrules). - User-context reminder header key claudeMd → clawcodexMd (renders as a `# <key>` section header; deliberate TS divergence, pinned by a positive parity test). Persisted config keys (hasClaudeMdExternalIncludes*) and TS-source citations keep their spellings. - README / ARCHITECTURE / FEATURE_LIST / ZH mirror + all test fixtures swept; karpathy verbatim pin updated for the header rebrand. Full Python suite green; TUI vitest at baseline; ui-tui typecheck clean. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ericleepi314
force-pushed
the
feat/clawcodex-md-rebrand
branch
from
July 21, 2026 05:08
9aa8b2b to
71effa6
Compare
Test Results 1 files 1 suites 6m 53s ⏱️ For more details on these failures, see this check. Results for commit 71effa6. |
Collaborator
Author
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
clawcodex is its own product — its instruction/memory file convention is now
CLAWCODEX.md(andCLAWCODEX.local.md), replacing the inheritedCLAUDE.mdnaming across the app. Clean break: the legacy names are not read (no fallback), per project direction.Core (
src/context_system/clawcodex_md.py, renamed fromclaude_md.py)CLAWCODEX.md/CLAWCODEX.local.mdat every tier: managed (/etc/clawcodex), user (~/.clawcodex), project root,.clawcodex/, local, and--add-dir.get_claude_mds→get_clawcodex_mds; disable switch renamed toCLAWCODEX_DISABLE_CLAWCODEX_MDS;is_memory_file_pathrecognizes the canonical names.Everywhere else
/initgeneratesCLAWCODEX.md(+.local.md) with rebranded prompt wording./memorypicker rows target~/.clawcodex/CLAWCODEX.mdand the nearest projectCLAWCODEX.md.~/.claudeimport migration copies that harness'sCLAUDE.mdin under the canonicalCLAWCODEX.mdname — the only place the old name is still touched, as a migration source.omit-clawcodex-md/omitClawcodexMd.agent_config_modguardsCLAWCODEX.md(CLAUDE.mdstays listed purely as attack-target vocabulary, like.cursorrules).claudeMd→clawcodexMd(renders as a# <key>section header; deliberate TS divergence pinned by a positive parity test). Persisted config keys (hasClaudeMdExternalIncludes*) and TS-source citations keep their spellings.Validation
tsc --noEmitclean.clawcodexMdemission pin, agent-frontmatter rebrand, doc sweeps.Note for local setups: existing
~/.clawcodex/CLAUDE.mdor per-repoCLAUDE.mdfiles must be renamed toCLAWCODEX.mdto keep loading (onemvper file — no in-app fallback by design).🤖 Generated with Claude Code