LLM Context Engineering

Parent: AI Agent Ecosystems · Published reference · snapshot 2026-09-08 · skill ai-agent-engineering

Also known as: Context Engineering for LLM Apps & Agents

↓ Facts as markdownall context files

Context engineering is the emerging discipline of curating and maintaining the optimal set of tokens (information) supplied to an LLM at inference time — system prompt, instructions, retrieved documen

These notes link each claim to its source. Some citations identify archived research reports that are no longer hosted on this site. A published reference means the content is available; it does not certify independent review or accuracy.Read the editorial policy and follow the sources before relying on a claim.

Overview

1. Prompt engineering → context engineering (context as a managed resource)

2. Context-window mechanics: context rot, lost-in-the-middle, effective vs advertised length

3. Compaction & summarization

4. Just-in-time / agentic retrieval vs pre-loading

5. External memory, note-taking & context offloading

6. Multi-agent context: shared vs isolated

7. KV-cache-aware / prompt-caching-aligned context layout

8. Failure modes (the Breunig / Anthropic / Cognition framing)

Tools / Frameworks

Practical Patterns

Anti-Patterns

Key Takeaways

Knowledge Gaps & Contested Areas

References

Methodology

Where this helps

Project ideas

Common mistakes

Known issues

Children

Frontier under this node: Compaction & context editing (auto-compact ~95%, Claude memory tool), Context rot / lost-in-the-middle / effective-vs-advertised length (NoLiMa, RULER), Context-as-managed-resource / RAM framing (Karpathy LLM-as-OS), External memory & filesystem-as-memory (recoverable compression), Failure modes (poisoning/distraction/confusion/clash - Breunig), Just-in-time / agentic retrieval vs pre-loading, KV-cache-aware layout (stable prefix, append-only, mask tools), Multi-agent context (shared traces vs isolation: Cognition vs Anthropic)

← the whole tree · 3D view· how to read this page