Assembling the right context before the model runs — context compilers, budgets, KV-cache, and MCP federation.
8 articles
Context budgeting allocates finite agent tokens across system, tools, retrieval, history, outputs, and response buffer.
Context optimization for AI agents unifies KV-cache hit rate, prefix stability, token budget, latency, cost, and placement into one runtime decision.
Where flow control ends and window assembly begins: the boundary between orchestrator and context compiler in LLM agent systems.
Deterministic context assembly improves cacheability and auditability; LLM-directed assembly adds adaptivity. Most agent systems need both.
Context engineering is the discipline. The context compiler is the per-turn runtime layer that ranks, budgets, secures, and assembles each model call.
Memory MCP servers explained: what they are, how to choose one by where data lives and what it does, and how to install so an agent remembers across sessions.
MCP federation in 2026: what gateways and the June 2025 spec solved for running multiple MCP servers, and which problems, like auth propagation, remain open.
KV-cache hit rate is the top AI-agent metric: every major provider discounts a cache read 50–90% off fresh input, so context engineering is memory engineering.