Amazon Web Services has laid out four layers of context engineering for production AI agents, using Deep Insight, an open-source multi-agent data analysis system, as working code. AWS says the layers are isolating context in the architecture, controlling it through prompts, moving it to the filesystem, and verifying it with independent agents and safeguards.
Context engineering means managing the limited information an AI model can hold in view at once. AWS says a request such as analyzing sales data and building a report can use over 150K tokens across 15 minutes. Tokens are the small text units models read and bill by. A 200K-token window can overflow mid-task, and accuracy drops as the context grows. Per-token pricing makes that inefficiency raise costs.
AWS reports measurable gains in Deep Insight. A single write-and-execute tool cuts the tokens each script adds to context by about 95 percent. Loading skills on demand shrinks the system prompt by about 97 percent. Deep Insight is built on the Strands Agents SDK and Amazon Bedrock AgentCore, and the post is Part 2 of a series. Part 3 will cover moving the system from development to production.