Claude Code /compact triggering cyber safeguards during defensive security work — and what to do instead.
Long defensive sessions — Cloudflare, DMARC, npm audit, leaked .env cleanup — then /compact dies to cyber safeguards because the summary is security-dense.
Why compaction triggers blocks
Compaction sends the whole conversation to be summarized. The summary inherits every trigger word from the session.
Options
Manual export of notes, new session, or CVP (if approved). Do not rely on compact for security marathon sessions.
Try uncensored AI free
No filters, no lecture, no training on your chats. Start in under a minute.
Context management and cyber classifiers fight each other — plan session boundaries upfront.
FAQ
Does a new session lose work?
Files and git remain; only chat context resets.