---
title: "Context engineering"
description: "Prompt engineering grew up: context engineering is deciding what the model sees each turn — system instructions, retrieved chunks, tool results, memory, hi"
canonical_url: "https://fanout.sh/ai-engineering/lessons/context-engineering"
md_url: "https://fanout.sh/ai-engineering/lessons/context-engineering.md"
last_updated: "2026-11-11"
access: "public"
---

# Context engineering

Prompt engineering grew up: context engineering is deciding what the model sees each turn — system instructions, retrieved chunks, tool results, memory, hi

## Lesson notes

Prompt engineering grew up: context engineering is deciding what the model sees each turn — system instructions, retrieved chunks, tool results, memory, history — under a hard token budget. Treat the context window as a curated working set, not a dumping ground; most agent failures are context failures.

### Key ideas

- The context window as scarce working memory
- System prompts, retrieval, memory, history as competing tenants
- Context rot: why more isn't better
- Compaction and summarization strategies

## Further reading

- Anthropic — Effective context engineering for AI agents
- Simon Willison on context engineering

---
This representation contains public Fanout content only. Protected Pro lessons, account data, billing, checkout, and pricing are not included.

Browse the public content map: https://fanout.sh/sitemap.md
