Lesson 21 of 24
Context Architecture EXPLAINED: Components, Loading Patterns & When to Use Each
About this lesson
In this deep dive into Context Engineering, Abdul Wahab explores the critical concept of Context Architecture. You will learn how different components of the Claude environment load into the AI's memory and how to strategically manage them to maintain high-quality results while drastically reducing your token consumption . Key Highlights of This Tutorial: The Loading Hierarchy: Understand the order in which information enters a session—starting with the invisible System Prompt, followed immediately by the claude.md file, and then metadata for Skills . Optimizing claude.md: Since this file loads with every single request, it is the biggest consumer of tokens . Learn how to trim a 400-line file down to just 50–60 lines by focusing only on "negotiable" essentials like project conventions, build commands, and architectural decisions . Skills vs. Subagents: Discover why Skills only load their full content when invoked (saving initial session cost), whereas Subagents operate in their own isolated context windows, meaning they don't clutter your main chat at all . The Zero-Cost Power of Hooks: Learn why Hooks are a secret weapon for automation—because they run locally on your computer, their context cost in the main session is effectively zero . Context Management Tools: Master the use of referencing. Instead of stuffing details into claude.md, learn to provide file references that Claude can look up only when necessary . Live Analysis: See a demonstration of how to use specific prompts to analyze and "minimize" your existing configuration files to boost efficiency . By the end of this video, you will move from basic prompting to architecting your context, ensuring Claude remains focused, fast, and cost-effective even in massive professional projects. Homework: Run the analysis prompt provided in the video on your current claude.md file. Try to reduce its size by 50% by moving non-critical instructions into specialized Skills or Subagents .