AI MOOC
✦ Grow togetherInvite 3 friends, earn 1 month of membership · Up to 12 monthsInvite friends →

Free learning library / Anthropic

Effective Context Engineering for AI Agents

Learn how instructions, tools and retrieval provide useful context for each agent step.

Technical article · Context engineering and agents · English source; Chinese learning notes are available

Who it is for

For developers familiar with LLMs and tool use who want to improve multi-step workflows.

What you can learn

Context engineering concerns what the model actually sees at each call: system instructions, clear tool interfaces, examples and just-in-time retrieval. Long tasks can use compaction, structured notes or delegation to retain useful state.

Try it first

For a document question-answering task, list the instructions, tool results and history visible at each step. Remove one irrelevant item and compare answers and citations on the same questions.

Free access and conditions

The English article is free to read and was published in September 2025. Tools and models change; external services may charge.

Source and rights

Links to the original. Chinese notes are a learning summary, not a full translation.

Source: Anthropic

Related learning resources

Continue learning: Free courses on AI MOOC

Read now