Idle Compaction
A configuration option in Claude Code that proactively compacts an overly long conversation history while the conversation is idle, thereby reducing the cost of resending the full context after the prompt cache expires.
Timeline (last 90 days)
Idle Compaction is an option in Claude Code accessible via /config; when enabled, it proactively compresses overly long conversation history before the cache expires.
Idle Compaction reduces the number of tokens re-sent after the cache expires by replacing the full context with a compressed, streamlined version.
The savings from Idle Compaction depend on session length, idle frequency, and context size; users with long sessions and frequent interruptions benefit more.
FlintEye says that Claude Code version updates may change the default value or behavior of the Idle Compaction option.
Entering /config in Claude Code opens the configuration interface, where you can find the Idle Compaction option and confirm whether it is on or off, all without modifying configuration files or restarting the environment.
All Facts (5)
Idle Compaction is an option in Claude Code accessible via /config; when enabled, it proactively compresses overly long conversation history before the cache expires.
50%UnverifiedIdle Compaction reduces the number of tokens re-sent after the cache expires by replacing the full context with a compressed, streamlined version.
50%UnverifiedThe savings from Idle Compaction depend on session length, idle frequency, and context size; users with long sessions and frequent interruptions benefit more.
50%UnverifiedEntering /config in Claude Code opens the configuration interface, where you can find the Idle Compaction option and confirm whether it is on or off, all without modifying configuration files or restarting the environment.
50%UnverifiedFlintEye says that Claude Code version updates may change the default value or behavior of the Idle Compaction option.
50%