Context engineering cuts AI costs, lifts accuracy

Leadership in Change

The gist

Context engineering is rewriting the AI playbook, slashing enterprise costs by up to 98% and delivering record-breaking accuracy through dynamic, modular context orchestration.

What to know

  • By late 2025, companies like Elastic and Workday led the shift from prompt engineering to context engineering, integrating modular context layers that drove fivefold accuracy gains and enabled massive production-scale AI.
  • Persistent memory architectures such as Context File Systems and stateful swarms have cut token usage by up to 39x, transforming agent memory into a living, auditable knowledge base for multi-step workflows.
  • Anthropic's MCP and just-in-time context injection frameworks, launched by mid-2026, slashed token costs by 98.7% and unlocked secure, scalable AI agent deployments with fine-grained controls.

Rise of Context Engineering

Industry leaders and repeated AI failures forced a paradigm shift: the true AI product is the environment and information, not just the model or prompt.

Context engineering emerged as a pivotal concept in mid-2025, gaining prominence after endorsements from AI leaders like Toby Lokta and Karpathy who heralded a new era focused on managing and orchestrating context data. This evolution highlighted a critical distinction between traditional data orchestration and the probabilistic, prompt-driven orchestration required for agentic AI, underscoring the need for new terminology to capture this dynamic orchestration paradigm.

By late 2025, industry players such as Elastic predicted 2026 to be the breakthrough year for context engineering, emphasizing its role as the key differentiator between successful and failed AI projects. Elastic positioned itself to lead this space by enabling agentic applications across multiple LLMs and cloud providers through open standards like MCP, which were expected to mature and address critical gaps such as authentication to support real-world agent deployments.

The recognition of context engineering’s importance was driven by repeated production failures where AI models performed well in testing but faltered in real environments due to inadequate context design. This led to a foundational shift in perspective, distinguishing context engineering from prompt engineering by asserting that the true product is the environment and information provided to the model, not the model or prompt alone—a view championed by thought leaders like Marily Nika and Simon Willison.

Data orchestration emerged as the backbone of context engineering, integrating diverse information sources such as codebases, PR histories, conversations, and runtime signals to deliver reliable, relevant context to AI agents. This orchestration, combined with rigorous testing frameworks like Simon Willison’s Red/Green TDD pattern, became essential for defining success criteria upfront and enabling iterative improvements, transforming context engineering into a robust discipline beyond mere prompt optimization.

Sources
SiliconANGLE theCUBEThe Data Exchange with Ben LoricaAdaline LabsThe System Design Newsletter

Modular Context, Modular Agents

Multi-layered context orchestration and dynamic subagents now drive 75% of AI output quality, enabling efficient, interoperable, and scalable agentic applications.

Context engineering has rapidly evolved into a foundational discipline that transcends traditional prompt crafting, focusing instead on architecting the entire information environment an AI agent operates within. By(https://www.youtube.com/watch?v=jnahaddQf10&t=917s), companies like Elastic are pioneering open standards such as MCP to enable interoperable agentic applications across diverse LLMs and cloud providers, emphasizing the strategic delivery of precise, relevant data at the right time to optimize AI performance. This shift recognizes that the quality of AI outputs hinges less on model selection or prompt phrasing and more on sophisticated context orchestration, which accounts for 75% of output quality according to recent analyses.

To manage the finite and costly nature of LLM context windows, advanced context engineering employs a multi-layered approach involving selective writing, compression, isolation, and retrieval-augmented generation (RAG). Techniques such as embedding-based compression and reranking, pioneered by Jina and others since 2025, enable agents to distill vast multimodal and multilingual data into high-signal tokens, while architectural patterns like hierarchical modular agents and subagents isolate tasks to prevent context rot and maintain signal-to-noise ratios. This modularity not only enhances efficiency by assigning specialized tools and models to subagents but also supports parallelism and independent testing, reflecting software engineering principles of separation of concerns.

Skills and subagents have emerged as pivotal constructs in scalable agentic AI, enabling dynamic, just-in-time context extension and focused task execution without bloating the main context window. Skills, defined as modular folders with YAML metadata and markdown instructions, are loaded only when relevant, drastically reducing token usage and supporting interoperability across over 25 tools. Meanwhile, subagents operate as isolated execution units with controlled context and tool access, returning compressed summaries to the parent agent and facilitating parallel task processing. This design balances efficiency and control, allowing agents to delegate complex or token-heavy operations while preserving the integrity and performance of the primary session.

Emerging innovations in context engineering emphasize typed context systems and rigorous context management frameworks that treat the LLM context window like precious RAM, requiring careful curation of competing information types—system instructions, user input, retrieved knowledge, tool outputs, and agent state. Introducing explicit type annotations for context elements, as demonstrated in lightweight Python runtimes, prevents subtle bugs caused by type confusion during prompt assembly, enhancing correctness and observability. Additionally, task-aware token budget forecasting and centralized context orchestration layers forecast and cap context components per task class, streamlining token usage and reducing redundant context transmission across teams, thereby addressing both human and structural challenges in scalable AI system design.

Sources
Daily Dose of Data ScienceSiliconANGLE theCUBESuper Data Science: ML & AI Podcast with Jon KrohnIBM TechnologyDesigning with AIAhead of AI

Context Layers Power Production

Enterprises like Workday and Virgin Media O2 proved that robust context governance and shared knowledge structures are the linchpin for reliable, large-scale AI deployment.

By late 2025, leading enterprises such as Poolside and Elastic began embedding context layers as integral extensions of their data pipelines, leveraging orchestration frameworks like Dagster to manage workflows from data ingestion through foundation model training. This orchestration acts as the 'beating heart' of AI platforms, enabling precise scheduling, quality control, and governance that collectively enhance AI accuracy and ROI. However, the emergence of agentic workflows introduced a need for more dynamic orchestration approaches, often managed by the LLM itself, signaling a shift in tooling and governance paradigms.

By early 2026, enterprises like Workday, MasterCard, and Virgin Media O2 demonstrated that implementing context layers was pivotal in transitioning AI from pilot projects to production-scale adoption, with Workday reporting a fivefold increase in AI accuracy after adopting a context layer approach. Virgin Media O2’s onboarding of over 6,000 employees and surpassing one million platform uses underscored how context products enable large-scale usability, while MasterCard’s strategic pivot to an AI-first product portfolio highlighted the necessity of robust agent governance frameworks to maintain operational control and compliance.

Operationalizing context infrastructure remains fraught with challenges around organizational ownership, governance, and integration with existing workflows. Enterprises consistently struggle with scattered context, unclear ownership, and conflicting sources of truth, which impede AI reliability and scalability. Solutions such as shared AI context files organized by company structure, versioned context layers acting as a single source of truth, and context engines that incorporate social graphs and permission-aware access models have emerged to address these issues, enabling consistent, auditable, and secure AI operations across teams.

Looking ahead, industry leaders emphasize that successful enterprise AI adoption hinges less on model sophistication and more on mastering contextual orchestration and organizational readiness. Gartner projects that prioritizing AI-ready semantic data within a robust context layer could boost agentic AI accuracy by up to 80% and reduce costs by 60% by 2027, yet only 42% of organizations expect to deploy AI agents by the end of 2026 due to governance and integration hurdles. The future points toward modular, multi-agent workflows governed by layered orchestration frameworks with dynamic intent-based access controls, underscoring the critical need for cross-team collaboration, continuous evaluation, and embedding context infrastructure deeply within existing business processes.

Sources
Analytics InsightThe Data Exchange with Ben LoricaSiliconANGLE theCUBEThe AI in Business PodcastDecoding AI MagazineLeadership in Change

Persistent Memory Transforms Agents

Context File Systems and procedural memory architectures have turned agent memory into a persistent, auditable knowledge base—unlocking reusable workflows and slashing token waste.

By early 2026, the rise of long-horizon AI agents was propelled not only by improved model capabilities but also by sophisticated scaffolding and context engineering techniques that manage evolving agent states over extended workflows. Harrison Chase of LangChain emphasized that understanding and tracing the dynamic context across multiple iterative steps is crucial, as the context at any given point depends on a complex history of prior interactions rather than a static snapshot. This foundational insight set the stage for innovations that treat agent memory as a living, traceable construct rather than ephemeral context windows.

Context File Systems (CFS) emerged as a transformative architecture that redefined agent memory from a volatile buffer into a persistent, procedural knowledge base, slashing token usage by over 90% and enabling agents to mount and unmount operational volumes on demand. This separation of expensive LLM reasoning from routine operational knowledge allows agents to replay proven workflows instead of replanning, turning costly reasoning into reusable assets. Features like indexed tool discovery, self-healing infrastructure, and governance further empower agents to maintain institutional knowledge robustly, compounding organizational value as successful multi-step workflows become shared, adaptive assets enterprise-wide.

Despite these advances, memory and knowledge base management remained a thorny challenge by mid-2026, with difficulties in both retrieval and generation of relevant memories prompting cautious, evolving approaches. Systems began incorporating user-approved incremental memory building, editing, and pruning to handle temporal dynamics, while explorations into structuring memories as navigable file systems gained traction. Persistent memory stores like OpenClaw’s daily memory journals and dedicated files (e.g., memory.mmd) provided practical means to sustain ongoing context and priorities, supporting long-horizon workflows with curated, manageable knowledge states.

The advent of stateful swarms marked a paradigm shift by moving memory out of costly, volatile inference and into structured, auditable reasoning states that persist and refine knowledge over time. This architecture, employing a blackboard pattern for agent coordination, enabled a persistent, typed knowledge base that survives across sessions, dramatically improving performance and cost-efficiency—as demonstrated by an 83.74% pooled pass rate and a 39x cost reduction on the Harvey Legal Agent Benchmark. By precisely routing tasks between cheaper and more expensive models and avoiding wasteful recomputation, stateful swarms address critical issues like context rot, session loss, and institutional knowledge retention, positioning them as the future backbone for scalable, long-horizon agentic AI.

By mid-2026, efforts to mitigate context rot and information overload in long-running agents coalesced around advanced context engineering frameworks such as Write, Select, Compress, and Isolate, coupled with durable, filesystem-backed scratchpads that preserve curated research states independently of session histories. This approach allows agents to carry bounded, relevant working states across sessions and delegate focused subagents for narrow investigations, enabling synthesis of cited reports over extended workflows. The strategic control of what information the LLM accesses at each decision boundary ensures that useful evidence is prioritized without overwhelming the agent’s context window, mirroring how experienced employees accumulate and leverage institutional knowledge over years.

Sources
AI for Software EngineersTo Data & BeyondTraining DataGradient FlowLatent SpaceArtificial Intelligence Made Simple

Context Infrastructure Becomes Strategy

Enterprise AI success now hinges on mastering organizational context infrastructure, with context layers and orchestration eclipsing model choice as the key competitive advantage.

By early 2026, industry leaders like Tabnine’s co-CEOs Dror Weiss and Eran Yahav underscored that the primary challenge in enterprise AI is not model capability but mastering organizational context infrastructure. Tabnine’s Enterprise Context Engine exemplifies this shift by providing AI agents with a continuously evolving, organization-specific understanding of software systems and practices, which is especially critical for regulated and security-sensitive industries requiring flexible deployment options. This focus on context infrastructure is rapidly becoming a strategic priority and essential budget item, as it directly addresses barriers to AI adoption by improving reliability and automation at scale.

Gartner’s 2026 analyses confirm that context layers have moved from theoretical concepts to indispensable components of AI strategy, with enterprises actively allocating budgets due to clear ROI evidence. They highlight that organizations investing early in semantic and context infrastructure will not only maximize AI value but also set industry standards, creating a competitive moat. However, operational challenges such as unclear ownership and fragmented semantics persist, impacting trust and governance, which makes centralized, well-managed context engineering a critical lever for sustainable AI success.

The competitive advantage in enterprise AI is increasingly defined by the strength of the orchestration and control layers managing context rather than the sophistication of individual models. Leaders who master contextual continuity across workflows and embed compliance and regulatory guidelines into a unified orchestration layer have already begun scaling AI agents in production, reducing operational inefficiencies and enhancing reliability. This strategic emphasis on context engineering shifts evaluation metrics from raw model intelligence to how well context is managed, errors are caught, and outputs verified before reaching critical business systems.

Mastering semantic context infrastructure emerges as a powerful cost lever, with Gartner projecting up to 60% reductions in agentic AI operational costs and 80% accuracy improvements by 2027 for organizations prioritizing semantic layers. This is crucial given that nearly half of AI projects fail, often due to lack of robust context rather than model flaws, as MIT research shows 95% of generative AI pilots falter without it. Industry experts like Connor Brennan Burke emphasize that AI agents are 'clueless geniuses' needing accurate, reliable context to avoid costly errors from outdated or conflicting data, making context engineering the linchpin for transforming AI from a costly experiment into a dependable business asset.

Recent analyses reveal that context engineering accounts for approximately 75% of AI output quality, dwarfing the 25% impact of model selection and prompting. This underscores Gartner and industry leaders’ calls to prioritize semantic layers and context infrastructure as strategic budget items, with organizations implementing these technologies being over twice as likely to achieve highly effective AI data engineering practices. Techniques such as task-aware token budget forecasting and centralized context management platforms further reduce operational costs and complexity by preventing redundant efforts and ensuring only high-signal information is retained, thereby enhancing AI reliability and cost efficiency.

Interviews with AI infrastructure pioneers like Deepak Khosla of Impetus highlight that bridging the 'context gap' through managed context engineering frameworks—such as the Context Engineering Delivery Lifecycle (CEDL)—is essential for embedding organizational knowledge into AI agents and improving operational effectiveness. Building semantic layers including knowledge graphs and ontologies, alongside robust memory systems, ensures AI agents retain accurate knowledge and avoid persistent errors. Simplified, file system-based context layers empower data teams to become valued business partners, reducing operational friction and positioning context engineering as a key strategic differentiator widely recognized across vendor ecosystems and analyst forums.

The establishment of a versioned, centrally owned context layer that all AI skills, agents, and teammates interact with is emerging as a critical competitive edge that compounds over time. Despite its foundational role—underpinning a company’s identity, customer understanding, and go-to-market assets—this invisible infrastructure remains largely unbuilt across organizations, making it a unique strategic differentiator for those who invest in it. Gartner and industry thought leaders emphasize that neglecting this layer leads to inconsistent AI outcomes and wasted spending, while mastering it enables scalable, reliable, and cost-efficient agentic AI capabilities.

Sources

Just-in-Time Context Revolution

Just-in-time context injection and dynamic skill loading have cut token costs by 98.7%, letting agents load only what they need and scale intelligently without context bloat.

By mid-2026, the paradigm of just-in-time context injection emerged as a game-changer for scalable agentic AI, exemplified by Anthropic's MCP implementation which slashed token usage from 150,000 to just 2,000 tokens—a staggering 98.7% reduction. This approach, borrowing from established software engineering principles like lazy loading and just-in-time compilation, allows AI agents to load only the necessary context after understanding the query, thereby optimizing resource consumption and enabling more efficient deployments at scale.

Dynamic skill loading has become a cornerstone best practice to prevent AI agents from becoming bogged down by excessive context. By defining skills with explicit instructions and opinions on task execution, developers can ensure consistent, smooth, and trustworthy agent behavior. This modular approach allows native agents to operate like power users equipped with hundreds of skills, dynamically deciding tool calls and exhibiting emergent intelligent behaviors, as seen in setups where agents load only the skills relevant to each request.

Typed context runtimes further refine scalability by capping the size of skill descriptions to a fixed fraction—typically around 2%—of the total context window. This careful balancing act maintains flexibility without overwhelming the model, ensuring that as tool registries expand with more MCPs, deferred loading and size capping mechanisms keep context bloat and associated costs in check.

The evolution of orchestration tools marks a significant leap toward managing scoped AI agents at scale, enabling dynamic scheduling and composition of tasks with intent-based access control. Prototypes demonstrate agents operating within sandboxed environments with finely tuned permissions—such as restricting access to only Anthropic’s cloud while excluding GitHub—allowing them to perform complex workflows like reviewing pull requests and summarizing them in Notion. This intent-driven permissioning framework not only enhances security but also facilitates runtime control across local and cloud environments.

Sources
AI EngineerAI EngineerAI EngineerPeter Yang

Part of these trends

Get the stories behind the trends

Deep-dive reporting and the weekly brief, in your inbox.