Claude Code /compact vs /clear: what actually happens to your context
This story is from 2026-10-16. It is preserved in the archive; the latest stories are on the live feed.
/compact replaces your conversation with a summary Claude writes and keeps the same session going. /clear starts a new conversation with an empty context. Your project memory, like CLAUDE.md, still loads, and the old conversation stays available through /resume . That's the short version. The longe…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-16 19:17 · DEV Community — AI
Claude Code /compact vs /clear: what actually happens to your context