Skip to content

docs(claude-md): import AGENTS.md instead of repeating it - #465

Merged
mrnasil merged 2 commits into
mainfrom
docs/claude-md-dedupe
Nov 25, 2026
Merged

mrnasil merged 2 commits into
mainfrom
docs/claude-md-dedupe

Conversation

@mrnasil

@mrnasil mrnasil commented Nov 25, 2026

Copy link
Copy Markdown
Member

CLAUDE.md repeated what AGENTS.md already says: the build/test/lint command block, the four budget ratchets, the whycodes- package-prefix note and the core/config rule. whycodes loads both files into every request's system prompt, so working in this repo paid for the copy each time.

  • CLAUDE.md now starts with @AGENTS.md. Claude Code expands that import; whycodes does not expand imports but already loads AGENTS.md itself, so the line is harmless there.
  • Kept: run command, single-test commands, the pre-PR workspace checks and check_sdk_protocol.py, CI/coverage pointers, the TypeScript SDK section, and the architecture overview.

bench_tokens.py in this repo: request 1 (fixed cost of every request) 8,346 → 7,890 tokens.

🤖 Generated with Claude Code

mrnasil and others added 2 commits November 25, 2026 03:22
CLAUDE.md repeated AGENTS.md's build/test/lint commands, the budget
ratchets, the package-prefix note and the core/config rule. whycodes loads
both files into every request, so the copy cost ~456 tokens each time.
CLAUDE.md now imports AGENTS.md (Claude Code expands @AGENTS.md; whycodes
already loads it) and keeps only what AGENTS.md does not cover.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mrnasil
mrnasil merged commit 34cef4e into main Nov 25, 2026
7 checks passed
@mrnasil
mrnasil deleted the docs/claude-md-dedupe branch November 25, 2026 00:41
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