This document describes how Claude Code manages Anthropic's prompt cache, performs context compaction (summarization) without losing user task context, and structures its system prompt for maximum cache efficiency.
┌──────────────────────────────────────────────────────────────────────────┐
│ CLAUDE CODE TURN LIFE CYCLE │
│ │