Key Rules & Field Checklist
- When boot instructions + tool schemas consume 45,000+ tokens upfront, multi-file reads push the session over the compaction threshold within minutes.
- Every compaction rewrites the prefix, breaking cached-prefix discounts and forcing full-price re-tokenization of summarized state.
- Fix: keep START.md <= 5,000 bytes on every boot and load deep runbooks or historical logs strictly on demand.
- Enforce it in CI with --max-boot-tokens 6000 so bloated changelogs never merge back into your boot file.
Run in terminal: npx --allow-git=all --yes github:oneandroid-max/contextguard-mcp audit .