Shifting engineering workflows directly to autonomous agent structures results in soaring infrastructure bills and multi-stage release slowdowns. A practical experiment with a custom virtual environment demonstrates that deploying a swarm of thirteen specialized sub-agents instead of standard model calls leads to a substantial increase in token consumption. This highlights a fundamental management dilemma: whether the resulting architectural quality offsets such scale of expenditures.
Multi-agent systems drastically inflate token consumption for context isolation, forcing a recalculation of development unit economics. While ready-made enterprise solutions exist on the market, the experiment's author chose an alternative path to examine mechanics from within: "If you want to understand something and test a technology in practice, do not take off-the-shelf solutions; build your own bicycle from scratch."
Built-in architecture distributes workloads among individual executors either in parallel or sequentially. The primary system instance handles orchestration, routing tasks and consolidating intermediate results into production code.
Virtual Department Architecture
Dividing responsibilities necessitated assembling an entire digital workforce. The virtual team includes a requirements-level analyst for domain and logic breakdown, a system architect for technical solutions and standards, and a planner examining the codebase for new features. Implementation fell to a frontend developer covering interfaces and API integration, a backend developer for server-side logic, and a database developer managing migrations and SQL queries.
The infrastructure perimeter and quality assurance are covered by a DevOps engineer configuring servers and CI/CD pipelines, a security engineer for vulnerability audits, a UX/UI expert preparing screen prototypes, and test authors (unit and UI testers). A technical writer and a code reviewer enforcing standards finalized the process. To prevent the orchestrator from making arbitrary decisions, interaction rules and execution triggers for every agent were locked down in an AGENTS.md file.
What is the practical cost of this context isolation for a business?
Metrics and Limits of ROI
Compute efficiency loss is the primary price paid for context separation. When every node builds an isolated context, a large language model maintains focus on a narrow function much more easily. However, parallelization and prompt hygiene require end-to-end computing resource expenditure across all orchestration stages—including duplicated system prompts per parallel API call, excessive transfer of intermediate logs between sub-agents, and constant context re-synchronization by the main instance.
Each of them will maintain its own context. The main instance will handle orchestration... ultimately, solving the entire task will consume more tokens.
Detailed cost-structure analysis reveals that infrastructure spend is driven less by raw code generation than by administrative data exchange between sub-agents and multi-level reviews. Ultimately, resolving the task demands a significantly larger volume of tokens. The primary counterargument is obvious: such resource waste is unjustified if a project can be assembled significantly faster and cheaper via a monolithic direct prompt. However, direct comparison reveals a gap in the results: sub-agent context isolation allows the model to maintain focus and elevate overall task execution quality.
Evaluating the ROI of orchestration over long-term business projects forces executives to confront strict financial constraints. When scaling complex codebases, initial gains in architectural cleanliness are offset by an exponential rise in inference costs. A sub-agent swarm delivers design quality gains and reduces architectural defects through isolated context, but turns the infrastructure budget into a primary operational expense. Deploying such orchestration is viable exclusively where the cost of a production defect clearly exceeds the price of millions of burned tokens, and where long-term maintenance drives down the total cost of ownership for complex products.
What it signals
Strict context isolation keeps the model focused on narrow specs, but the infrastructure bill covers endless inter-agent log handoffs and repeated system prompt calls via the API. A similar clash between agent orchestration and unit economics showed up in mid-September, when an engineer spent 20,000 dollars on tokens to refactor a single Python file using 1,393 agents. This modern codex of multi-agent development delivers cleaner system logic only by burning computational resources on background coordination. 44 million tokens went primarily into internal coordination among thirteen specialized roles rather than writing functional code.
Our stories: OpenAI Developer: Multi-Agent Swarms Burn Tokens Without Gains (September 17).