Multi-Agent Development Systems: A Practical Guide to 24/7 Operation

    Build a continuously operating multi-agent software development system with clear deliverables, deterministic orchestration, controlled tool access, and recoverable task state. Using an e-commerce competitor price monitoring application as a running example, this guide covers agent responsibilities, structured communication, data design, testing, security, and a phased approach to limited autonomy. The emphasis is on verifiable results and reliable operations—not unrestricted automation.

    1. From Code Generation to Managed Collaborative Development

    Asking an agent to generate code and asking multiple agents to carry out a software engineering project over time are fundamentally different problems.

    The first mainly depends on a model’s ability to understand requirements and generate content. The second also requires task decomposition, dependency management, persistent state, tool permissions, acceptance checks, and failure recovery. Without these engineering mechanisms, individually capable agents can still interpret requirements differently, duplicate changes, produce misleading test conclusions, or leave tasks stalled.

    This guide uses an e-commerce competitor price monitoring system as a running example. The application periodically retrieves product prices, reference prices, promotional conditions, and stock status from authorized sources. It maintains historical trends, identifies unusual changes, sends notifications through business messaging channels, and supports spreadsheet exports.

    Here, “24/7 operation” means that scheduling, execution, and recovery mechanisms can run continuously. It does not mean agents are always correct, external data sources are always available, or software can enter production without approval.

    A practical system should aim to ensure that:

    • Routine tasks progress automatically.
    • Risky operations have explicit constraints.
    • Intermediate artifacts are traceable and reusable.
    • Failed workflows can resume from checkpoints.
    • People can review and take control at critical stages.

    2. Define Deliverables Before Agent Roles

    A multi-agent system should start with what must be delivered and how it will be accepted, not with how many roles to create.

    For the price monitoring application, the initial deliverables might be:

    1. A product watchlist and management interface.
    2. Integration modules for authorized data sources.
    3. Scheduled collection and failure retries.
    4. A data model for prices, inventory, and promotional information.
    5. Historical trend views and anomaly indicators.
    6. Configurable alert rules and notification records.
    7. Spreadsheet export functionality.
    8. Automated tests and deployment instructions.
    9. Operational monitoring, audit records, and a recovery plan.

    Each deliverable needs acceptance criteria. “Support price alerts,” for example, should not merely mean that a button exists in the interface. It should define which price is used, how thresholds are evaluated, how duplicate notifications are suppressed, and what happens when delivery fails.

    Acceptance criteria can be expressed as structured entries:

    1. Deliverable: Low-price alert
    2. Inputs:
    3. - Product identifier
    4. - Current effective price
    5. - User-configured price threshold
    6. - Data retrieval timestamp
    7. Rules:
    8. - Generate a candidate event when the current effective price is below the threshold
    9. - Do not trigger new alerts when the data exceeds its allowed validity period
    10. - Suppress repeated notifications for a sustained low-price condition under the same rule, according to configuration
    11. Outputs:
    12. - Alert event record
    13. - Notification delivery result
    14. - Traceable data snapshot

    This definition supports requirements analysis, implementation, and testing while reducing ambiguity between roles.

    3. Architecture: Separate Models from Execution Control

    A robust collaborative development system can be divided into six components.

    Requirements Intake

    The intake layer receives user messages, attachments, and additional context. A messaging channel is an interaction mechanism, not the sole store of task state.

    Before creating an internal task identifier, the intake layer should verify the requester’s identity, project permissions, and requested scope. Requests involving sensitive data or production changes also require an approval workflow.

    Central Orchestrator

    The orchestrator decomposes tasks, assigns roles, evaluates dependencies, consolidates results, and initiates acceptance checks.

    A model may recommend the next action, but deterministic software should enforce state transitions, permission checks, concurrency limits, and retry policies. A model’s statement that “the task is complete” is not sufficient evidence to mark an entire project as successfully delivered.

    Specialized Agents

    Agents can handle requirements analysis, architecture, development, testing, and operations.

    The purpose of role separation is to establish clear responsibility boundaries, not to imitate an organizational hierarchy. Small projects can combine responsibilities rather than creating an agent for every action.

    Tool Execution Layer

    The tool layer provides controlled file access, code modification, test execution, data queries, and notification delivery.

    Agents should not receive unrestricted access to the host environment. The tool layer must validate arguments, permitted paths, resource quotas, and operation types, then record actual execution results.

    Shared State and Artifact Storage

    Task state, requirements documents, interface contracts, code versions, test reports, and operational logs must be persisted.

    During long-running work, model context may be compressed and execution processes may restart. Persistent artifacts allow the system to resume without relying on a model to remember previous events.

    Monitoring and Human Control Console

    The console should display progress, blockers, tool execution results, resource consumption, and pending approvals. It should also support pausing, cancellation, retries, and human takeover.

    The overall architecture can be represented as follows:

    1. User request
    2. ↓
    3. Identity and permission checks
    4. ↓
    5. Central orchestrator ↔ Task state storage
    6. ↓
    7. Specialized agents
    8. ↓
    9. Controlled tool execution layer
    10. ↓
    11. Development environments, test environments,
    12. data sources, and notification channels
    13. All components → Logs, metrics, audits, and human control console

    4. Agent Responsibilities: Independent Context, Shared Facts

    Requirements Analysis Agent

    This role converts natural-language requests into business rules, functional scope, and acceptance criteria.

    For price monitoring, it should clarify:

    • Whether the monitored target is a product page or a specific product variant.
    • Whether prices include shipping.
    • Whether discounts depend on membership, region, or purchase quantity.
    • Which authorized source provides stock information.
    • The collection frequency and acceptable delay.
    • Which anomalies require immediate notification and which only need recording.

    Unresolved details should be marked for confirmation rather than invented as business facts.

    Data Research Agent

    This role investigates legally usable data sources, field quality, update frequency, and access restrictions.

    It should distinguish verified facts from reasonable assumptions and unconfirmed information. Collection capabilities without supporting evidence must not become formal delivery commitments.

    Architecture Agent

    This role defines module boundaries, data structures, interface contracts, and nonfunctional requirements.

    The design must cover failure paths, including source timeouts, duplicate collection, missing fields, unavailable notification channels, and rollback after deployment failure.

    Development Agent

    This role modifies code, runs tests, and documents changes according to an approved design.

    It may use local AI coding tools, but work should take place in an isolated workspace. The tool layer must control readable directories, executable tasks, and network access.

    Testing Agent

    Testing should independently evaluate results against acceptance criteria. A developer agent’s verbal assurance is not evidence.

    Tests should cover both normal and exceptional conditions, including missing prices, delisted products, duplicate tasks, failed notifications, and invalid rule configurations.

    Operations Agent

    This role checks deployments, service health, scheduled-job backlogs, data freshness, and alert delivery.

    Its permissions should be separate from development permissions. Production releases, data deletion, and credential changes generally require human approval.

    Agents can maintain independent contexts, but they must share a controlled source of facts. Requirements, interface contracts, and acceptance criteria need clearly identified current versions so that different roles do not work from conflicting definitions.

    5. Task Orchestration: Manage Long Workflows with a State Machine

    Multi-agent collaboration should revolve around inspectable task states rather than an endless loop of open-ended conversation.

    Typical states include:

    1. Pending → Running → Awaiting acceptance → Completed
    2. ↓
    3. Awaiting clarification
    4. ↓
    5. Running
    6. Running → Failed → Awaiting retry
    7. Any cancellable state → Cancelled

    Each task should record at least:

    • A unique task identifier.
    • Its project and requirements version.
    • Input materials and their versions.
    • The responsible role.
    • Prerequisite dependencies.
    • Current state.
    • Output artifacts.
    • Acceptance results.
    • Retry count and failure reasons.

    Dependencies for the price monitoring project might look like this:

    1. Requirements confirmation
    2. ↓
    3. Data source and compliance confirmation
    4. ↓
    5. Architecture and data model design
    6. ├─ Data collection module
    7. ├─ Query and rule module
    8. └─ Presentation and export module
    9. ↓
    10. Integration testing
    11. ↓
    12. Security and deployment checks
    13. ↓
    14. Human acceptance

    Parallel execution requires stable interfaces and explicit dependencies. Asking multiple development agents to build related modules before the data model is settled often increases rework.

    To prevent duplicate task consumption, use task claiming, execution leases, or a similar mechanism. If a worker exits unexpectedly, the task becomes available again only after its lease expires.

    6. Agent Communication: Exchange Structured Messages, Not Entire Conversations

    Agents need to communicate, but their messages should have explicit semantics.

    The following is a custom internal message example. It illustrates a design approach and does not represent any product API:

    1. {
    2. "message_type": "artifact_ready",
    3. "task_id": "task-024",
    4. "sender_role": "architecture",
    5. "receiver_role": "development",
    6. "artifact_id": "data-model-v2",
    7. "summary": "The price snapshot data structure has been revised",
    8. "required_action": "Implement the new version and add missing-value tests"
    9. }

    The communication layer should also handle deduplication, expiration, ordering conflicts, and correlation tracking.

    Do not continually append every historical conversation to every agent’s context. Instead, pass relevant summaries and artifact references, allowing agents to retrieve full materials within their permissions. This reduces context costs and limits interference from outdated information.

    7. Core Data Design for Price Monitoring

    Use Stable Product Identifiers

    One product may appear on multiple pages with different variants and sale conditions. Using page titles alone as identifiers can incorrectly merge distinct items.

    Separate the product entity from the monitoring target:

    • The product entity describes relatively stable product information.
    • The monitoring target defines a specific source, variant, and transaction conditions.
    • A price snapshot records an observation of a monitoring target at a particular time.

    Cross-source product matching should preserve its supporting evidence and confidence information, with human confirmation where necessary.

    Preserve the Meaning of Price Fields

    Price is not a single number. The system should distinguish displayed prices, reference prices, conditional prices, and shipping charges.

    A conceptual snapshot might contain:

    1. Monitoring target identifier
    2. Data source
    3. Collection timestamp
    4. Displayed price
    5. Reference price
    6. Promotional conditions
    7. Currency
    8. Stock status
    9. Collection result status
    10. Field quality flags
    11. Raw evidence reference

    Use precise decimal representations for monetary calculations, with explicit currencies and rounding rules. An unparseable price should be marked as missing, not recorded as zero.

    A reference price is not necessarily an actual historical selling price. Trend analysis must not treat the two as equivalent.

    Check Data Quality Before Detecting Anomalies

    The rate of change between consecutive valid prices can be defined as:

    1. Rate of change = (Current price - Previous valid price) / Previous valid price

    Do not calculate this directly if the previous price is missing or nonpositive.

    Changes in product variants, discount eligibility, currency, or parsing behavior may create apparently dramatic price movements. Before generating an anomaly event, the system should determine whether the observations are comparable.

    8. Scheduled Collection and Compliance Boundaries

    Prefer authorized APIs, partner data sources, publicly accessible information whose access is permitted, or user-provided data.

    Bypassing login requirements, access restrictions, CAPTCHAs, or authorization agreements must not be part of the automation design.

    Engineering considerations include:

    • Enforcing source-specific request frequency limits.
    • Setting connection and read timeouts.
    • Applying bounded backoff retries to temporary failures.
    • Distinguishing permission failures, missing data, and network errors.
    • Pausing collection or opening a circuit breaker after repeated failures.
    • Versioning field mappings and parsing rules.
    • Monitoring data freshness, not just whether a process is alive.

    Collection frequency should reflect business value. Products that rarely change do not need constant high-frequency checks, and frequent collection increases both operating costs and pressure on data sources.

    9. Alerts and Exports: Make the Results Usable

    Alerts Need State Management

    A price that remains below a threshold should not generate the same notification after every collection run.

    Alerts can use states such as normal, triggered, ongoing, and recovered, with configurable cooldowns or repeat-notification intervals. Recovery thresholds or duration conditions can reduce flapping when prices hover near a threshold.

    Notifications should include at least:

    • The monitoring target.
    • The reason for the alert.
    • The current observed value.
    • The collection timestamp.
    • A tracking identifier.

    Delivery failures must be recorded and retried separately. Creating an alert event and successfully delivering its notification are different outcomes.

    Exports Need Consistency and Security

    Exported files should identify the time range, price definitions, and filters so that readers do not misinterpret data outside the application.

    Large exports are better handled as background tasks: create an export request, read a consistent data snapshot, generate the file, and provide permission-controlled download access.

    Spreadsheet formula injection also requires attention. External values beginning with characters that spreadsheet software may interpret as formulas should be handled safely for the chosen export format.

    10. Automated Development: Generate Code and Verify It

    Development agents should work in separate workspaces rather than modifying the same working directory concurrently.

    Every code change should include:

    • The associated requirement and task identifiers.
    • The scope of the change.
    • Checks performed.
    • Test results.
    • Known limitations.
    • A rollback approach.

    Testing should be layered:

    1. Unit tests validate price calculations, rule evaluation, and data transformations.
    2. Integration tests verify collaboration between storage, scheduling, and notifications.
    3. End-to-end tests cover the complete flow from configuring monitoring to viewing results.
    4. Security tests check permissions, input handling, and sensitive information exposure.
    5. Failure tests examine timeouts, duplicate messages, and behavior after service restarts.

    Model-generated tests can also omit important cases. The testing agent should derive counterexamples from independent acceptance criteria rather than only checking the successful paths expected by the implementation.

    11. Continuous Operation Depends on Persistence, Idempotency, and Recovery

    Persistent Checkpoints

    Save checkpoints at milestones such as requirements confirmation, design approval, completion of code changes, and successful testing.

    On recovery, the system should load current state and artifact versions, then execute only unfinished steps or those requiring revalidation. It should not reconstruct the entire project from the initial request.

    Idempotent Execution

    Messages and tasks may be delivered more than once. Collection writes, notification sends, and task submissions must account for duplicate execution.

    For example, a business deduplication key can combine the monitoring target, collection time window, and rule version. Persistent constraints can then prevent duplicate processing.

    Where an external notification channel cannot guarantee exactly-once delivery, document the delivery semantics and possible duplicates explicitly.

    Bounded Retries

    Handle failures according to their type:

    • Retry temporary network failures.
    • Stop on permission errors and request intervention.
    • Return failed acceptance checks for revision.
    • Wait for user clarification when requirements conflict.
    • Pause further execution when the budget is exhausted.

    Unlimited retries amplify costs and failures. Tasks need maximum attempt counts, total execution time limits, and conditions for escalation to a person.

    12. Security and Cost: Keep Autonomy Under Control

    Web pages, files, and external messages may contain text that attempts to make agents disclose data or perform unrelated actions. Treat external content as data to process, not as higher-priority instructions.

    Key safeguards include:

    • Least-privilege tool access.
    • Credentials supplied through controlled mechanisms, not model context or ordinary logs.
    • File operations restricted to approved workspaces.
    • Constrained external network access.
    • Approval requirements for data deletion, production deployment, and permission changes.
    • Audit records for all high-risk operations.

    A continuously available service does not require continuous model reasoning. Scheduled triggers, state updates, simple threshold calculations, and duplicate-message filtering should generally use deterministic software.

    Model calls are better suited to understanding requirements, complex analysis, selecting approaches, and generating code. Event-driven execution, context trimming, artifact reuse, concurrency limits, and budget controls help reduce unnecessary consumption.

    13. A Phased Implementation Plan

    Phase 1: Establish a Minimal End-to-End Workflow

    A user submits a request, the orchestrator creates tasks, one development agent implements a minimal feature, and a testing agent verifies it. A person makes the final acceptance decision.

    Phase 2: Introduce Specialized Responsibilities

    Add data research, architecture, and operations roles once requirements templates, interface contracts, and artifact formats are stable.

    Phase 3: Support Continuous Background Operation

    Introduce persistent task state, timeout handling, retries, checkpoint recovery, logs, and metrics.

    Phase 4: Enable Limited Autonomy

    Allow automatic progress only for low-risk operations that are reversible and verifiable. Retain human approval for high-risk actions.

    Phase 5: Improve the System with Operational Evidence

    Track task acceptance rates, reasons for human intervention, rework, data freshness, alert usefulness, and cost per delivery. The number of agents created is not a meaningful measure of system quality.

    Conclusion

    The core of multi-agent software development is not having more models work at once. It is building a reliable loop around tasks, permissions, state, and evidence.

    In a price monitoring application, requirements clarification, authorized collection, data quality checks, rule-based alerts, code testing, and recovery all matter. Missing any one of these can undermine an otherwise complete-looking automation workflow.

    Start with a small, testable business workflow. Use deterministic orchestration to constrain model behavior, then expand autonomy gradually. That is how a system moves from completing a task once to delivering a dependable service over time.