Mid-level interview question
How do you keep a long run within its context without losing what matters?
Model answer
Pin what must stay (task, instructions, constraints) and summarise older steps instead of dropping them: Anthropic calls it compaction.
A summary keeps only what its prompt asks for, so test that later steps still find what they need.
Practise the rest
6 Agent memory questions, 492 in all, each with a model answer. Free.