This document describes the full system prompt that Claude Code assembles and sends to the API. Section bodies are quoted verbatim from E:\Playground\claude-code-main\ source. Sections marked [ant-only] only appear in internal Anthropic builds (process.env.USER_TYPE === 'ant'); the public CLI build omits them via dead-code elimination.
The system prompt is an array of strings. Each entry below is one element of that array, in the order it is concatenated.