Context engineering
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