By Vero SecurityBuilt and funded by Vero Security, the AI Security Engineering platform.Read the charter

Context limits, context rot, and compaction

Long contexts are not free: models attend unevenly, recall material in the middle less reliably, and degrade as inputs grow. Agents compensate with compaction, context editing, and careful choices about what to load, and each of those mechanisms decides what the model sees and what it forgets, including safety instructions.

Read in this order

  1. ArticleEffective context engineering for AI agents (Anthropic)Start here: how to decide what an agent loads, keeps, and drops.
  2. ArticleContext Rot: How Increasing Input Tokens Impacts LLM Performance (Chroma)Measured evidence that model quality falls as the input grows.
  3. VideoLLMs for Agent Builders: Context Engineering | Stanford CS329Z Lecture 2 with Michael RyanExplains context limits and structured I/O with lecture chapters. 78 min.

Save your progress

We email you a sign-in link. No password.

By signing in you agree to the terms. The privacy policy explains how we use your details.

Join the AI security engineering community

Free. Roadmap updates, chapters near you, and first word when credentials open.

We’ll email you community updates. Unsubscribe anytime. By sending this you agree to the terms. The privacy policy explains how we use your details.