AWS Solutions Architecture Team: The Core Bottleneck for Multi-Agent System Production Deployment Is Architecture, Not Prompting
The AWS Solutions Architecture team shares production experiences with the Deep Insight multi-agent system, noting that agents do not follow fixed instruction sequences but make autonomous judgments based on context; therefore, prompt engineering alone cannot solve production issues. The article details specific architectural practices including using Graph mode to control execution flow, Agents-as-Tools mode to invoke expert agents on demand, assigning different Claude models by role to balance cost and quality, and isolating AI-generated code in ephemeral containers. It also explicitly acknowledges that the current architecture does not detect prompt injection attacks.
Building a multi-agent prototype is now quite easy. Open-source frameworks and cloud services allow teams to run a seemingly impressive demo within days. However, the AWS Solutions Architecture team discovered during the construction of Deep Insight that the real challenges begin when moving from a prototype to a production application. The team’s core judgment is that agents do not follow a fixed sequence of instructions; they make their own judgments based on context. Therefore, prompt engineering alone is insufficient; you must design how the agent thinks, when it verifies, and what it does when errors occur.
Deep Insight is a multi-agent system designed for generating data analysis reports: given a CSV file and a natural language prompt, a group of specialized agents collaborates to complete data loading, analysis, chart generation, calculation verification, and report output. The team divides its architecture into three layers. The first layer is the Request Analysis Layer: the Coordinator routes user requests, the Planner breaks complex tasks into checklists of 5 to 10 steps, and the Plan Reviewer presents the plan to the user for approval or requests modifications. The second layer is the Orchestration Layer: the Supervisor calls the expert agents in the third layer in sequence according to the plan. The third layer is the Execution Layer: the Coder writes analysis code, the Validator re-verifies calculations, the Reporter generates the final report, and the Tracker updates progress status.