Type: url
Original: https://platform.claude.com/cookbook/tool-use-context-engineering-context-engineering-tools
Status: partial
Summary
A Claude Cookbook notebook published in March 2026 that compares three context-engineering primitives for long-running agents — compaction, tool-result clearing, and the memory tool — using a research agent that reads a large document corpus across multiple sessions. It explains what each primitive operates on, what it trades away and which problem it solves, maps them to Anthropic’s first-party API features and their configuration knobs, and shows how they can be layered or deliberately left out depending on the workload.