Claude Code's layered context system lets you teach it your codebase, preferences, and workflows permanently. Here is how to set it up with CLAUDE.md files, persistent memory, and hooks.