Skip to content

docs: regenerate CLAUDE.md — clear 40k warning + purge 'precision that rots'#606

Merged
jjackson merged 1 commit into
mainfrom
docs/regen-2026-05-31
May 31, 2026
Merged

docs: regenerate CLAUDE.md — clear 40k warning + purge 'precision that rots'#606
jjackson merged 1 commit into
mainfrom
docs/regen-2026-05-31

Conversation

@jjackson
Copy link
Copy Markdown
Owner

@jjackson jjackson commented May 31, 2026

Why

Session startup warned Large CLAUDE.md will impact performance (40.7k > 40.0k). The culprit is purely the project CLAUDE.md (40,923 chars); the global one is 936 chars and plugins/run-state don't count. This started as a size trim and became a structural cleanup after the question "do file counts even belong in here?"

Result

CLAUDE.md: 40,923 → 37,066 chars (210 lines, structure preserved). ~2.9k headroom under the 40k line.

Two passes

1. Staleness + compression (1st commit): tightened the longest convention bullets and collapsed history parentheticals to pointers — no operational facts lost.

2. Kill "precision that rots" (2nd commit) — the higher-leverage fix, removing the cause of recurring doc-regen churn:

  • Baked file counts (skills/commands) → deleted; kept the ls … | wc -l pointer. A cardinality is not actionable for an agent and rots on every add.
  • Per-MCP atom counts (37/32/16/23+26) → deleted; point to the generated, always-accurate docs/atom-schemas.md.
  • ~12 version-introduced stamps (0.5.16, 0.7.0, 0.7.1, 0.9.4, 0.11.3, 0.13.34/.53/.116/.202/.375, dates) → purged. Git/CHANGELOG owns "which version introduced X"; the agent only needs the rule.
  • Two mobile-duplicated blocks (dense ace-mobile Layout bullet; precondition cold-boot call-chain) → collapsed to pointers — playbook/integrations/mobile-integration.md already covers both in full (verified by grep).
  • Duplicate plans-not-live-trackers gotcha → deleted (already said in Layout).

Kept on purpose (load-bearing, not decoration)

  • Agent topology tableorchestrator-reference.md explicitly names CLAUDE.md as its canonical source; it's stable, enumerable reference.
  • Precondition-restore doctrine (4-step pattern + anti-pattern) — a project-wide principle; only its mobile implementation detail was cut.

Audit notes

🤖 Generated with Claude Code

Trim CLAUDE.md from 40,923 → 38,948 chars (clears the 40k
"Large CLAUDE.md will impact performance" startup warning).

Staleness fixes:
- skills count 112 → 115 (ls skills/ | wc -l)
- commands count 23 → 24 (ls commands/ | wc -l)

Compression (no operational facts lost — detail stays in the linked
learning/reference files):
- "Close the loop" convention: tightened prose, kept both shapes + #591/#593/#586
- "File ACE issues mid-run": tightened
- Improvement-cycles state-consolidation history → pointer
- dump-atom-schemas apostrophe gotcha → one-liner + learning link
- Connect-Labs MCP gotcha → deduped against Layout entry
- Removed commcare-form-patch deletion history (lives in git)
- Cold-boot failure-class list trimmed

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jjackson jjackson enabled auto-merge May 31, 2026 21:40
@jjackson jjackson merged commit 85f5677 into main May 31, 2026
2 checks passed
@jjackson jjackson changed the title docs: regenerate CLAUDE.md (clear 40k size warning + staleness) docs: regenerate CLAUDE.md — clear 40k warning + purge 'precision that rots' May 31, 2026
jjackson added a commit that referenced this pull request May 31, 2026
docs: purge 'precision that rots' from CLAUDE.md (follow-up to #606)
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