Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

9 pages for idlecompaction.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Explore the context window Claude Code CLI · in the page context-window …ion you leave idle, see [idle compaction](/docs/en/settings-reference#idlecompaction). You can also act before the automatic pass runs: * **Compact with a focus**: run `/compact` with instructions,… Manage costs effectively Claude Code CLI · in the page costs …dle compaction](https://code.claude.com/docs/en/settings-reference.md#idlecompaction) for when each runs and how to turn it off. When prompt suggestions are on, Claude Code also sends a short request… Glossary Claude Code CLI · in the page glossary …you leave idle](https://code.claude.com/docs/en/settings-reference.md#idlecompaction) ### Connector An [MCP server](#mcp-server) added to your claude.ai account rather than configured in Claude Code… Hooks reference Claude Code CLI · in the page hooks …dle compaction](https://code.claude.com/docs/en/settings-reference.md#idlecompaction) | Exit with code 2 to block compaction. For a manual `/compact`, the stderr message is shown to the user. You can… Claude Code gateway compatibility guide Claude Code CLI · in the page llm-gateway-protocol …dle compaction](https://code.claude.com/docs/en/settings-reference.md#idlecompaction) in an interactive terminal session. Absent on every other request, including one that writes a summary in the back… Model configuration Claude Code CLI · in the page model-config …ID](#correct-the-window-for-a-gateway-or-custom-model-id) See the [`idleCompaction`](https://code.claude.com/docs/en/settings-reference#idlecompaction) setting for when Claude Code also compacts a c… Monitoring Claude Code CLI · in the page monitoring-usage …dle compaction](https://code.claude.com/docs/en/settings-reference.md#idlecompaction) in an interactive terminal session. Auto-compaction can prepare a summary in the background before the context win… How Claude Code uses prompt caching Claude Code CLI · in the page prompt-caching …gets), Claude Code can compact it. To turn idle compaction off, set [`idleCompaction`](https://code.claude.com/docs/en/settings-reference#idlecompaction) to `false`, which requires Claude Code v2.1.29… All settings Claude Code CLI · in the page settings-reference …/hooks.md) can put in headers | Hooks and automation | Any file | | [`idleCompaction`](#idlecompaction) | Stop Claude Code from compacting a long conversation that you've stepped away from | Memory an…
Feedback