BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeClaude Certified Architect - Foundations (CCAR-F)Reference: what survives the context window
Grounded reference258 words

Reference: what survives the context window

Claude Certified Architect - Foundations (CCAR-F) › Domain 5: Context Management & Reliability

What fills and survives the context window, from the Claude Code documentation

Domain 5 examines context degradation and what to do about it. The guide names scratchpads, subagent delegation and compaction. The documentation says precisely what compaction keeps and what it drops, which is the part that decides whether a technique works.

What survives compaction

Compaction replaces the conversation with a structured summary. It is not a uniform loss — specific things come back.

After compactionWhat happens
Project-root CLAUDE.mdRe-read from disk and re-injected
Files read or editedUp to five are re-read, most recently modified first
Rules and nested CLAUDE.mdReloaded for those re-read files
Skills you invokedBodies re-injected, capped at 5,000 tokens per skill
The startup skill indexNot re-injected
Anything said only in conversationGone

Path-scoped rules do not automatically come back

A rule with paths frontmatter reloads only when Claude next reads a file it matches. If a rule must persist across compaction, the documentation is explicit: drop the paths frontmatter, or move it to the project-root CLAUDE.md. That is the cost of the conditional loading Domain 3 recommends.

Acting before the automatic pass

Claude Code compacts automatically as the window fills, so a full context does not end a session. You can also act first.

Controlling compaction

  1. 1

    Compact with a focus

    Run compaction with instructions — for example, focusing on the auth bug fix — before starting a long new task, so the summary keeps what the next task needs.

What is loaded before you type

A session begins with a system prompt, environment information, memory files, and a listing of available MCP tools. Two details matter for Domain 5.

Auto memory loads the first 200 lines or 25KB of the memory index, whichever comes first — content past that is not loaded at session start.

MCP tool schemas are deferred by default: names are listed so Claude knows what exists, and full schemas load on demand. Setting the tool-search option to auto loads them upfront when they fit within 10% of the context window.

Why the exam prefers a subagent for discovery

The documentation's own advice for research-heavy work is to use a subagent, for exactly the reason Domain 5 gives: large reads stay out of your context and only the answer returns. Compaction is the remedy once the window is full; delegation is what stops it filling.

Sources

  • Explore the context window — https://code.claude.com/docs/en/context-window (retrieved 2026-08-30)
All Claude Certified Architect - Foundations (CCAR-F) Study Resources

Related Notes

  • Domain 5: Context Management & Reliability165 words
  • Domain 5 Project — make what you built survive contact with reality1,059 words
  • CCAR-F: how the exam is dealt194 words
  • Scenario 1: Customer Support Resolution Agent225 words
  • Scenario 2: Code Generation with Claude Code185 words
  • Scenario 3: Multi-Agent Research System199 words
  • Scenario 4: Developer Productivity with Claude197 words
  • Scenario 5: Claude Code for Continuous Integration168 words
  • Scenario 6: Structured Data Extraction185 words
  • Domain 1: Agentic Architecture & Orchestration169 words
  • Domain 1 Project — build a support agent, then make it a team1,199 words
  • Reference: the tool-use round trip505 words

Ready to study Claude Certified Architect - Foundations (CCAR-F)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Claude Certified Architect - Foundations (CCAR-F)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Claude Certified Architect - Foundations (CCAR-F) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.