Back to Settings

Idle Compaction Off

Settings environment 38 Scanned by NVIDIA SkillSpector

Turn off idle compaction (Claude Code 2.1.290+). By default, a terminal conversation over 200K tokens (CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS) that sits idle for about 54 minutes is compacted before its one-hour prompt cache expires; this only happens with auto-compact on and the one-hour cache in use. Use this if you would rather pay to reprocess the full conversation on your next message than continue from a summary. Do not combine with idle-compaction-early.

Install Command
npx claude-code-templates@latest --setting environment/idle-compaction-off
View on GitHub
claude-code — idle-compaction-off

Scanned by NVIDIA SkillSpector

Automated static analysis (no LLM) · v2.12.0 · 2026-10-17

0 observations
scanner score 0/100

SkillSpector looks for patterns such as shell commands, credential access, network calls or unpinned dependencies. An observation is something worth reading in the files before you install, not a confirmed vulnerability. Components that run code locally, like hooks, MCP servers and security tooling, naturally show more of them.

No observations.

Learn more about NVIDIA SkillSpector.

Content

JSON
{
"description": "Turn off idle compaction (Claude Code 2.1.290+). By default, a terminal conversa..."
"idleCompaction": false
}

Stack Builder

0 components

Your stack is empty

Browse components and click the + button to add them to your stack for easy installation.