Core concepts: 4-layer model, workflow pipeline, decision tree, 5 permission modes
"Chatbot to Context System": 4-Layer Model
Claude Code is a context system, not a chatbot. It transforms your message into a rich multi-layer prompt before calling the API. This diagram shows the 4-layer augmentation that happens invisibly with every request.
How Claude Code Works (line ~2360)
9-Step Workflow Pipeline
Every request to Claude Code goes through this pipeline, from parsing your intent to displaying the final response. Understanding this loop helps you write better instructions and diagnose issues faster.
Getting Started (line ~277)
Quick Decision Tree: "Should I use Claude Code?"
Not every task needs Claude Code. This decision tree helps you route the right tasks to the right tool (Claude Code CLI vs Claude.ai vs clipboard-based approaches).
Quick Start Decision; see also `machine-readable/reference.yaml` (decide section)
Permission Modes Comparison
Claude Code has 5 permission modes that control what it can do automatically vs. what requires your approval. Choosing the wrong mode is the #1 safety mistake.
Permission System (line ~760)