Skip to content
BENIBIX Learn

CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING=1

Set to 1, it saves no copies. Then /rewind cannot undo edits.

Think of it like

It is like you turn off undo in a drawing app.

Example

Emma runs Claude Code in a throwaway container that is wiped after each job. Saving copies there is wasted work, so she sets this.

Why it matters

Checkpoints use disk and time. Where you never need undo, you can skip them.

Definition

CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING set to 1 stops the copies. Claude Code saves a copy of a file before each edit. With this set, it does not. Then /rewind can no longer bring back your code. It wins over the matching setting.

Example code

bash
export CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING=1
claude
Skip saving copies before edits.

Common mistake

Setting it on your own laptop. A bad edit then has no quick way back but git.

Key takeaways

  1. 1
    No checkpoints. Before edits.
  2. 2
    No /rewind for code. When set.
  3. 3
    Wins over the setting. fileCheckpointingEnabled.