Home › Tracks › Agentic Systems & Harness Engineering › Context Hubs, JIT Context Delivery & Semantic Routers
Week 5 concept
Context Hubs, JIT Context Delivery & Semantic Routers
Design and build Context Hubs that solve API and schema deprecation. Master Just-In-Time (JIT) Context Delivery using semantic routers to prevent context bloat and control inference costs of premium model tiers.
Bridges to Operating Systems — memory hierarchy, paging, and cachingBuilds on: Planning, Test-Time Compute & Deliberate Reasoning Scaling
Study notes
Master this concept.
Study Notes: Context Hubs, JIT Delivery & Semantic Routers
What it is
A Context Hub is a centralized management layer that decouples the data schema from the AI agent. Instead of hard-coding API calls or data structures into an agent's prompt, the agent requests information from the Hub. Just-In-Time (JIT) Context Delivery is the process of providing only the specific data needed for the current turn of conversation, while Semantic Routers act as the "traffic controllers" that analyze user intent to decide which specific slice of context to retrieve.
Why it matters
In production systems, APIs change and schemas evolve. If context is hard-coded, every backend update requires a full redeployment of the agent. Furthermore, feeding an entire knowledge base into a prompt (context bloat) increases latency and spikes costs, especially when using premium model tiers. These patterns ensure the system remains maintainable and cost-efficient.
Core Concepts to Master
- Schema Abstraction: The Hub acts as a translation layer, meaning the agent interacts with a stable interface even if the underlying database or API changes.
- Semantic Routing: Using lightweight embeddings to categorize a query and route it to the correct context source, preventing the model from processing irrelevant data.
- Dynamic Pruning: The practice of filtering out redundant or low-probability information before it reaches the LLM to maximize the "signal-to-noise" ratio.
- Stateful Retrieval: Tracking what context has already been delivered to avoid repetitive data injection in multi-turn dialogues.
Common Mistakes
- Over-fetching: Retrieving too much data "just in case," which leads to prompt saturation and higher inference costs.
- Static Routing: Relying on keyword matching instead of semantic meaning, which causes the router to fail when users use synonyms.
- Tight Coupling: Linking the agent's logic directly to a specific API version, defeating the purpose of the Context Hub.
Track Connection
These concepts bridge the gap between basic RAG (Retrieval-Augmented Generation) and full Agentic Systems. While RAG focuses on finding documents, these patterns focus on the engineering harness, managing how that information is delivered and routed to ensure the agent operates reliably at scale.
Go to the source
Read, watch, and practice.
Free, world-class material chosen for this concept.
- Article The Agent Confidence Index MIT Technology Review Insights Free (opens in a new tab)
- Paper MemGPT: Towards LLMs as Operating Systems arXiv (Packer et al.) Free (opens in a new tab)
- Guide Effective context engineering for AI agents Anthropic Free (opens in a new tab)
- Guide Qdrant Vector Database Documentation Qdrant Free (opens in a new tab)