Skip to content
BENIBIX Learn

DISABLE_COMPACT

AI⌨️ Claude CodeConfiguration

Also known as DISABLE_COMPACT=1

Set to 1, it turns off all compaction, /compact too.

Think of it like

It is like you lock the tidy box. No one can squeeze the desk, not even you.

Example

Jack tests how a model reads a whole chat, and a summary would spoil the test. He sets this, so the chat is never squeezed.

Why it matters

Some tests and audits need the full chat kept word for word.

Definition

DISABLE_COMPACT set to 1 turns off all compaction. The auto squeeze stops. The /compact command stops too. A long chat then runs until it hits the model's limit. It is stricter than DISABLE_AUTO_COMPACT.

Example code

bash
export DISABLE_COMPACT=1
claude -p "Review this file"
Keep a short job from ever being summed up.
The right column: nothing squeezes the chat.

Common mistake

Using it for normal work. A long session then stops at the limit with no way to free room.

Key takeaways

  1. 1
    All compaction off. Auto and by hand.
  2. 2
    Stricter. Than the auto one.
  3. 3
    Runs to the limit. Then stops.

Compare