Skip to content

fix(launch): agents no longer load ancestor CLAUDE.md files (v0.469.5) - #899

Merged
vikasprogrammer merged 1 commit into
mainfrom
feat/claudemd-ancestor-exclude
Nov 10, 2026
Merged

vikasprogrammer merged 1 commit into
mainfrom
feat/claudemd-ancestor-exclude

Conversation

@vikasprogrammer

Copy link
Copy Markdown
Owner

Claude Code walks up from the cwd loading every ancestor CLAUDE.md. The default data home (./data) is inside the software checkout, so every agent on such a box also loaded the repo's ~83k-char maintainer CLAUDE.md. Live on globex: 2 instruction files add up to 181.2k chars, over the 150.0k-char total limit (qa's own 98.4k + the repo's 82.8k).

terminal/claude-launch.sh now writes claudeMdExcludes into the session's --settings file for each ancestor's CLAUDE.md / CLAUDE.local.md / .claude/CLAUDE.md / .claude/rules/**, both logical and physical path. Paths with JSON/glob-significant characters are skipped.

Verified (claude 2.1.322): a planted ancestor instruction is followed without the setting and absent with it; the agent's own CLAUDE.md still loads; the /tmp → /private/tmp symlink case is covered. npm run test:governance 100 suites green.

🤖 Generated with Claude Code

The default data home sits inside the checkout, so Claude Code's upward
CLAUDE.md walk pulled the repo's ~83k-char maintainer notes into every
agent — on globex that pushed qa past the 150k instruction budget.
claude-launch.sh now emits claudeMdExcludes for every ancestor of the
agent folder (logical + physical path).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vikasprogrammer
vikasprogrammer force-pushed the feat/claudemd-ancestor-exclude branch from 083d0d7 to 2d597b3 Compare November 10, 2026 07:11
@vikasprogrammer vikasprogrammer changed the title fix(launch): agents no longer load ancestor CLAUDE.md files (v0.469.2) fix(launch): agents no longer load ancestor CLAUDE.md files (v0.469.5) Nov 10, 2026
@vikasprogrammer
vikasprogrammer merged commit af1cd3e into main Nov 10, 2026
@vikasprogrammer
vikasprogrammer deleted the feat/claudemd-ancestor-exclude branch November 10, 2026 07:12
vikasprogrammer added a commit that referenced this pull request Nov 10, 2026
…(v0.469.6) (#901)

#900 merged without its changelog entry and under a version #899 had
already taken.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant