Jessop Analytics runs an agent for days-long investigations. It already uses server-side compaction to keep the active context small, but a few key findings, such as confirmed root causes, must survive every summarisation intact. Which addition does Anthropic's documentation recommend?
- A.
Replace compaction with context editing, so that the key findings can never be cleared from context
- B.
Keep the findings only in the conversation, since compaction preserves everything the model marks important
- C.
Compact more often, so that each summary covers less history and loses fewer details as a result
- D.
Pair compaction with the memory tool, so the findings that must survive are written to memory files
Show answer
Answer: D
The memory tool documentation recommends using both: compaction keeps context small, memory preserves what must survive summarisation.
- A. Incorrect: context editing clears tool results; it is not a mechanism for protecting findings the agent must keep.
- B. Incorrect: nothing guarantees a summary keeps specific items, and the guidance warns compaction can lose them.
- C. Incorrect: more frequent compaction means more summarisation events, each of which can drop detail.
- D. Correct: memory makes the critical findings durable outside the window while compaction keeps the working context small.