ClaudeMap

Effective Context Engineering for AI Agents

Anthropic's follow-up essay on context engineering — curation, compression, and attention budgets.

Tutorials & Guidesofficialcontextengineeringagents

Anthropic's engineering essay on context engineering: treating the context window as a finite attention budget, with techniques for curation, compression, just-in-time retrieval, note-taking, and sub-agent architectures that keep long-running agents coherent. The natural sequel to Building Effective Agents once your prototype starts drowning in its own context.

What it does

  • Frames context engineering as the successor to prompt engineering: iteratively curating the optimal set of tokens — system instructions, tools, MCP, external data, message history — at each turn
  • Names the failure mode 'context rot' and the attention-budget mental model: attention is a finite resource with diminishing marginal returns as context grows
  • Just-in-time retrieval over pre-computed retrieval: keep lightweight identifiers (file paths, stored queries) in context and load data at runtime — the hybrid strategy Claude Code itself uses (CLAUDE.md up front, glob/grep on demand)
  • Long-horizon techniques: compaction (Claude Code summarizes history and continues with the five most recently accessed files), structured note-taking (memory tool, public beta), and sub-agent architectures that might burn tens of thousands of tokens and often return 1,000–2,000-token summaries

When to use it

The natural sequel to Building Effective Agents once a prototype starts drowning in its own context — design-time reading for anyone building long-running production agents; ends by pointing to the memory and context management cookbook.

Getting started

No install — an engineering essay on anthropic.com (published Sep 29, 2025, by the Applied AI team).

Things to know

Runtime exploration is slower than retrieving pre-computed data, and without thoughtful tooling an agent can waste context by misusing tools or chasing dead-ends. Overly aggressive compaction can lose subtle but critical context. The guidance is explicitly evolving — 'do the simplest thing that works.'

Charted

Related on the map

  • Anthropic's official "Code with Claude" workshop materials — nine hands-on courses on skills, MCP, evals and Claude Managed Agents.

    • official
    • workshops
    • anthropic
    • managed-agents
  • Anthropic's canonical essay on agent design — workflows vs agents, and five composable patterns.

    • official
    • agents
    • engineering
    • patterns