Building a 24/7 Multi-Agent Development Fleet

    A practical engineering pattern for turning LLM agents from demo-grade assistants into a durable, auditable delivery pipeline: role-based agents, an orchestrator, isolated context, message and artifact contracts, human gates, and reliability controls—illustrated with a competitor price-monitoring example.

    Building a 24/7 Multi-Agent Development Fleet

    From a Single Agent to a Development Fleet: Problems and Goals

    Single agents often look impressive in demos, then fail on real engineering work. Three issues show up quickly: unbounded context growth, blurred responsibilities, and failures that are hard to isolate. One agent that clarifies requirements, writes code, runs tests, and sends notifications ends up with ever-longer prompts, unstable quality, and poor error localization. For work that must run around the clock, a single-agent design rarely meets stability and auditability needs.

    Multi-agent collaboration is not about stacking more agents. It is about splitting a complex delivery flow into units that can be orchestrated, observed, and rolled back. Each agent keeps its own context, receives only the smallest information pack needed for the job, and collaborates through messages and artifact references. That reduces context pollution and lets roles use different models, prompts, tool permissions, and acceptance criteria.

    This article describes a practical approach: a demand intake, a supervisor orchestrator, a pool of role agents, plus a message queue, object storage, logging, and monitoring. A competitor price-monitoring system for e-commerce shows the closed loop, with schematic pseudocode and a rollout path.

    Overall Architecture: Intake, Orchestration, Role Pool, and Infrastructure

    A six-layer architecture works well:

    1. Intake. Receives requests from collaboration-platform channels, forms, or ticketing. It authenticates, registers, and classifies only; it does not run business logic.
    2. Supervisor orchestration. Breaks down work, plans, assigns roles, sets deadlines, handles dependencies, and human gates.
    3. Role agent pool. Research, requirements, architecture, development, testing, release, and operations run independently, each with its own context and tool allowlist.
    4. Tools and execution. Code generation, static checks, unit tests, build and packaging, data collection, charts, and spreadsheet export are tools granted with least privilege.
    5. State and knowledge. Task state, artifact metadata, and acceptance records live in a database; large files and code packages in object storage; messages pass asynchronously on a queue.
    6. Observability and alerting. Logs capture calls and decision rationale; monitoring tracks success rate, timeouts, human intervention, and cost.

    Persistence, async decoupling, logs, and alerts are generic needs. Teams can evaluate object storage, message queues, logging, and monitoring—including general capabilities from Baidu AI Cloud—against compliance, cost, and operations practice. Avoid binding orchestration to a specific vendor API.

    Role Split: Single Responsibility and Clear Deliverables

    Roles should follow single responsibility, explicit I/O, and independent acceptance. A reference map:

    Role Core duty Key inputs Deliverables
    Supervisor agent Decompose, schedule, handle dependencies Raw request, priority Execution plan, task packages
    Research agent Collect competitor and market information Research goal and scope Research summary, source notes
    Requirements agent Clarify boundaries, write requirements Research summary, constraints Requirements document, acceptance criteria
    Architecture agent Modules, data flow, deployment Requirements document Architecture notes, interface contracts
    Development agent Generate code and config Architecture notes, task package Code changes, documentation
    Test agent Design cases, verify Acceptance criteria, code artifacts Test report, defect list
    Release agent Build, package, release, rollback plan Artifacts that passed tests Release record, rollback plan
    Operations agent Monitor, alert, incident review Runtime metrics, alerts Ops report, improvements

    Each role loads only related summaries, constraints, and artifact references. The developer does not need the full market-research text—only features, interfaces, and acceptance criteria from the requirements document. That shortens context and reduces cross-task interference.

    Communication and Context Isolation

    The pattern is: messages carry intent; storage carries artifacts. A message should include task id, parent task id, role, intent, input references, constraints, expected artifacts, deadline, status, and retry count. Large files, code packages, and reports go to object storage; messages pass references.

    Isolation has three layers: independent sessions and prompt templates per agent; the orchestrator injects only the task package and relevant summaries; versioned artifacts so messages carry version numbers and roles do not read stale content. Message handling must be idempotent: a duplicate task id runs once, then a state machine advances, avoiding duplicate development or alerts.

    Orchestration: From Intake to Closed-Loop Delivery

    A full loop: intake, clarification, research, requirements, architecture, development, testing, release, delivery, and review. The supervisor plans first, then runs by dependency. Parallel where possible (research and early clarification); serial where required (architecture after requirements, development after architecture).

    Human gates pause for approval on scope change, sensitive data, production release, or cost over budget. Failures use timeouts, backoff retries, circuit breaking, and a dead-letter queue. Retries should include failure reasons and attempts already tried so agents do not repeat the same dead end.

    Example: Automated Delivery of a Competitor Price Monitor

    The goal is scheduled collection of price, original price, promotions, and stock; trend charts and anomaly flags; alerts on collaboration channels for low price, sharp swings, or stockouts; spreadsheet export.

    The requirements agent splits collection, storage, analysis, visualization, alerting, and export. Architecture defines collection scheduling, a price-snapshot table, anomaly rules, and alert deduplication. Development generates code by module. Testing covers low-price and volatility thresholds, stockouts, and repeat-alert suppression. Release produces a rollback plan. Operations watches collection success and alert noise. Roles collaborate via task packages and artifact refs, not a shared full context.

    Reliability, Security, and Cost

    Around-the-clock operation puts reliability first: heartbeats and timeouts per agent, persisted task state, audit logs on critical steps. Alerts need severity and deduplication to avoid storms. Cost control uses task budgets, model-call caps, cache reuse, and compressed summaries. Security is least privilege: tool allowlists, centralized secrets, data masking, output review, and dual review for production. Auto-generated code and config should pass static checks and human sampling before production.

    Schematic Pseudocode

    1. def orchestrate(task):
    2. plan = supervisor.plan(task)
    3. for step in plan.steps:
    4. package = build_task_package(
    5. step,
    6. artifacts=artifact_store.list_refs(task.id, step.depends_on),
    7. constraints=task.constraints
    8. )
    9. result = role_pool[step.role].run(package)
    10. if result.needs_human:
    11. wait_for_approval(result)
    12. artifact_store.put(task.id, result.artifacts)
    13. event_bus.publish(task.id, step.role, result.status)
    14. if result.status == "failed":
    15. retry_or_dead_letter(task, step, result.reason)

    Rollout Path and Metrics

    Start with single-role automation, then add the supervisor. Define the message protocol and artifact contract before growing the role set. Stand up logs, monitoring, and alerts before opening auto-release. Track task success rate, mean time to delivery, human-intervention rate, retry rate, alert precision, and cost per task. Review frequently and turn recurring failures into rules, checklists, and prompt templates so the fleet moves from “it runs” to “it operates.”