Four layers of context engineering for production AI agents: How Deep Insight applies them in working code
AWS•How-to••by Yoonseo Kim, Jesam Kim, Jiyun Park, Kyutae Park, Ph.D, Gonsoo Moon and Chloe Kwak•AWS Artificial Intelligence Blog
In production AI agents, context management is the real bottleneck. This post presents a four-layer context engineering framework (architecture, prompts, file-based tools, and verification agents), implemented in working code from Deep Insight, an open source multi-agent data analysis solution on the Strands Agents SDK and Amazon Bedrock AgentCore.
A four-layer context engineering approach (architecture isolation, prompt limits, file-based externalization, verification agents) shown in the open-source Deep Insight multi-agent data analysis reference implementation.
Who it is for
Teams building long-running data analysis agents on AgentCore and Strands that run into context window limits.
Key points
AWS reports a write-and-execute tool cuts tokens per script by about 95 percent in the reference implementation.
Loading skills on demand reduces the system prompt by about 97 percent, per AWS.
Post is Part 2 of a series; Part 3 on deployment is marked coming soon.
AI:Both set out how to manage agent context windows in production, with AWS using a layered open-source reference implementation rather than managed Foundry features.
AI:Both treat agent context management as a core production problem, Google through ADK's compiled context views and AWS through the four-layer Deep Insight approach.
Related posts
AWS•Blog post••by Malini Sethi, Deepesh Koppunuru, Kamlesh Mariwala and Sandy Hsieh•AWS Artificial Intelligence Blog
AI:A taxonomy of multi-agent patterns (sequential, conditional, parallel, plan-based, handoff, conversation, debate) with anti-patterns and a decision sequence for when multiple agents are warranted.
AI:A reference architecture for a multi-account agent platform on AgentCore, with a control plane, per-Workstream cells, separate inference and tool gateways, and a CI/CD evaluation gate before production.
AI:Bayer Crop Science's Agentic Decision Engine uses Bedrock AgentCore to let staff ask natural language questions about its ML workflow platform, with 22 specialist agents and about 80 percent of questions resolved without an engineer, per AWS.