Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

57 pages for /compact.

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

Manage sessions Claude Code CLI · in the page sessions …as in `/clear release-prep`; the new session then starts unnamed * **`/compact [instructions]`**: replace history with a summary, optionally focused on what you specify * **`/context`**: show what is… All settings Claude Code CLI · in the page settings-reference ….json theme={null} { "autoCompactEnabled": false } ``` The manual `/compact` command keeps working while auto-compact is off. If you turn auto-compact off, [idle compaction](#idlecompaction) turns… Extend Claude with skills Claude Code CLI · in the page skills …l you need it. > [!NOTE] > > For built-in commands like `/help` and `/compact`, and bundled skills like `/debug` and `/code-review`, see the [commands reference](/docs/en/commands.md). > > **Custom c… Customize your status line Claude Code CLI · in the page statusline …After that, it runs again when: * A new assistant message arrives * `/compact` finishes * The permission mode changes * Vim mode toggles * You change the `command` in your `statusLine` settings * A [… Create custom subagents Claude Code CLI · in the page sub-agents …-in commands go to your main conversation, with these safeguards: * `/compact`, `/clear`, and `/rewind` act on the main conversation, so Claude Code asks you to confirm before running one of them fro… Troubleshooting Claude Code CLI · in the page troubleshooting …large codebases. If you're experiencing performance issues: 1. Use `/compact` regularly to reduce context size. If it returns `Not enough messages to compact.`, the conversation has too few turns to… Use Claude Code in VS Code Claude Code CLI · in the page vs-code …'re using. Claude automatically compacts when needed, or you can run `/compact` manually. * **Prompt cache clock**: a clock icon next to the context indicator estimates how much time the conversation'…
Feedback