Back to Developer Roadmap

Manage Sessions

src/data/roadmaps/claude-code/content/manage-sessions@rlj-GMcqgdKM5_7rs7yz9.md

4.0942 B
Original Source

Manage Sessions

Claude Code manages sessions through a persistent, local architecture where every interaction is stored in a unique session file, allowing you to resume work using terminal flags like claude --continue (for the most recent thread) or claude --resume (to open an interactive picker of past conversations). While each new session initializes with a fresh context window to optimize token usage and avoid irrelevance, Claude automatically snapshots affected files before any modification, enabling you to use the /rewind command to revert both code and conversation history to a previous "checkpoint."

Visit the following resources to learn more: