Agents need context (e.g., instructions, external knowledge, tool feedback) to perform tasks
Context engineering is "the art and science of filling the context window with just the right information at each step of an agent’s trajectory"
• 4 strategies:
1. Writing context - Writing context means saving it outside the context window to help an agent perform a task.
2. Selecting context - Selecting context means pulling it into the context window to help an agent perform a task.
3. Compressing context - Compressing context involves retaining only the tokens required to perform a task.
4. Isolating context - Isolating context involves splitting it up to help an agent perform a task.
| Context Engineering is effectively the #1 job of engineers building AI agents. - cognition