CLAUDE.md Context Ingestion Architecture

CLAUDE.md Context Ingestion Architecture An architecture diagram generated by Archify. Repo Root · Git Version Controlled · Architecture component Repo Root Git Version Controlled CLAUDE.md · Project context contract · Project Filesystem Boundary · < 1 Page Budget CLAUDE.md Project context contract < 1 Page Budget Commands Block · build, test, lint · Project Filesystem Boundary Commands Block build, test, lint Conventions & Arch · rules & domain packages · Project Filesystem Boundary Conventions & Arch rules & domain packages Things Claude Gets Wrong · frozen paths & platform rules · Project Filesystem Boundary · iterative Things Claude Gets Wrong frozen paths & platform rules iterative Session Loader · Automatic session ingestion · Agent Execution Runtime · zero drift Session Loader Automatic session ingestion zero drift Agent Context Window · Active LLM working memory · Agent Execution Runtime · hydrated Agent Context Window Active LLM working memory hydrated Tool Execution Lane · Bash, Read, Edit tools · Agent Execution Runtime Tool Execution Lane Bash, Read, Edit tools Rule of Two Gate · Mistake x2 -> PR update · Architecture component · institutional memory Rule of Two Gate Mistake x2 -> PR update institutional memory Project Filesystem Boundary Agent Execution Runtime Legend Frontend Backend Cloud Security External

Context Ingestion tại Session Start

  • • CLAUDE.md nạp tự động vào context window của Agent ngay khi mở session
  • • Cung cấp commands (build, test, lint), kiến trúc module và quy ước cốt lõi

Rule of Two & Institutional Knowledge

  • • Khi Agent mắc cùng một lỗi 2 lần, bắt buộc cập nhật vào CLAUDE.md
  • • Giới hạn dưới 1 trang A4 để chống bloat và bảo toàn token context window