Claude Code
Today
Explore
Practice
Library
Exam
Certificate
Search
⌘K
ខ្មែរ
◐
Sign in
Today
Explore
Practice
Library
Profile
Clear, Compact, Rewind
Today
2. Context and Project Instructions · 2 of 4
Mark read
Prev
Next
Orient
Choose by what you need to keep
Make a long refactor survive its own compaction
Predict
Write compaction instructions that fit your project
Close
Practice
Related
Clear, Compact, Rewind
Beginner
☆
📑
Three ways to reclaim context, and the one that loses the thing you needed
Orient
Choose by what you need to keep
Make a long refactor survive its own compaction
Predict
Write compaction instructions that fit your project
Close
Practice
Related
Practice activities and scenarios are optional. Mark the lesson complete after reading, and return to practice whenever it helps.
Restoring your saved work…
07
Optional practice
🧠 Optional scenario practice
Q1
Which statement about compaction is correct?
A
Everything in the conversation is preserved verbatim, just reordered
B
A project-root CLAUDE.md is re-read from disk and re-injected, while conversation-only instructions may be lost
C
Compaction only runs when you type /compact
D
Path-scoped rules are always re-injected immediately after compaction
Q2
Two hours of exploration, then a design decision you need word for word, and context is nearly full. Best tool?
A
/clear and restate the decision from memory
B
Rewind, select the start of the design discussion, and summarize up to here
C
/compact with no arguments
D
Start a new session and resume the old one later
08
Up Next
Intermediate
CLAUDE.md That Gets Followed
Intermediate
Auto Memory and Scoped Rules
Intermediate
The Permission Model
📝 Notes
Mark lesson complete
Next: CLAUDE.md That Gets Followed →