Appendix B Diagrams: Drawing the Runtime Skeleton

Previous chapters explained runtime structure in text. Text is necessary, but some structures become clearer as diagrams: Claude Code is an explicit state-machine system, not "a pile of prompts plus a few tools."

B.1 Diagram 1: Claude Code global control plane

Claude Code global control plane

This should not be drawn as a children-book flowchart like "user -> model -> tool -> output," because that hides the actual organs. A more accurate view is five layers:

  1. user interaction layer
  2. control plane layer
  3. execution loop layer
  4. external capability layer
  5. persistence and observability layer

The point is not listing every module. The point is:

  • model is neither topmost nor bottommost
  • model is one phase inside query loop
  • control and recovery planes are what hold the system together

B.2 Diagram 2: Query loop main cycle and recovery branches

Query loop main cycle

Query loop recovery branches

B.3 Diagram 3: Tool batch ordering and StreamingToolExecutor

Tool batch ordering

StreamingToolExecutor lifecycle

B.4 Diagram 4: Context sources and compact rebuild

Context sources and budget

Compact rebuild pipeline

B.5 Diagram 5: Coordinator-worker flow and verification separation

Coordinator and worker flow

Verification separation

B.6 Diagram 6: Team governance map

Team governance map

results matching ""

    No results matching ""