Skip to content

chore: optimize CLAUDE.md for token reduction and accuracy#1380

Merged
steilerDev merged 1 commit intobetafrom
chore/optimize-claude-md
Apr 28, 2026
Merged

chore: optimize CLAUDE.md for token reduction and accuracy#1380
steilerDev merged 1 commit intobetafrom
chore/optimize-claude-md

Conversation

@steilerDev
Copy link
Copy Markdown
Owner

Summary

  • Reduces CLAUDE.md from 528 → 468 lines (~11% smaller) — less context consumed per agent session
  • Fixes stale env vars: removes unused CLIENT_DEV_PORT, adds 9 missing vars (SESSION_DURATION, SECURE_COOKIES, TRUST_PROXY, OIDC_ISSUER, OIDC_CLIENT_ID, OIDC_CLIENT_SECRET, PHOTO_MAX_FILE_SIZE_MB, PHOTO_STORAGE_PATH, DIARY_AUTO_EVENTS)
  • No behavioral rules removed — all cuts are redundant prose or content derivable from code

Changes

  • Merged two i18n sections into one
  • Condensed Coverage Enforcement (3 sub-sections → 3 bullets)
  • Merged Sandbox Test Constraints into Local Validation Policy
  • Removed Package Dependency Graph + Build Order subsections
  • Trimmed orchestrator delegation list (references Agent Team table)
  • Removed Prerequisites subsection
  • Condensed Documentation Site and Acceptance & Validation sections

Test plan

  • Verify file is 468 lines
  • Confirm all 9 new env vars appear in the Environment Variables table
  • Confirm CLIENT_DEV_PORT row is absent
  • Confirm i18n rules are all present in the merged section
  • CI Quality Gates pass

🤖 Generated with Claude Code

- Reduce file from 528 to 468 lines (~11% smaller)
- Merge two i18n sections into one (Internationalization & Translation)
- Condense Coverage Enforcement from 3 subsections to 3 bullets
- Merge Sandbox Test Constraints into Local Validation Policy
- Remove Package Dependency Graph and Build Order subsections (derivable from code)
- Trim orchestrator delegation list (references Agent Team table instead)
- Remove Prerequisites subsection (obvious from Tech Stack table)
- Condense Documentation Site subsection to one line
- Condense Acceptance & Validation narrative
- Fix env vars table: remove unused CLIENT_DEV_PORT; add 9 missing vars
  (SESSION_DURATION, SECURE_COOKIES, TRUST_PROXY, OIDC_ISSUER, OIDC_CLIENT_ID,
  OIDC_CLIENT_SECRET, PHOTO_MAX_FILE_SIZE_MB, PHOTO_STORAGE_PATH, DIARY_AUTO_EVENTS)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@steilerDev steilerDev merged commit 38a475f into beta Apr 28, 2026
12 checks passed
@steilerDev steilerDev deleted the chore/optimize-claude-md branch April 28, 2026 19:01
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.4.3-beta.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.4.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant