AI Coding Tools and Hosted Agents: The Technical Evolution

    This article traces the shift from code completion to hosted agents, where execution environments, dependency installation, builds, and tests run inside controlled runtimes and agents deliver results as branches, patches, or review requests. It covers multi-agent orchestration topologies, worktree isolation, outcome-driven acceptance criteria, offline reflection (dreaming), developer experience patterns, capacity and quota design, and a minimal reference architecture. The focus is on the engineering foundations—isolation, least privilege, observability, auditability, and quotas—that determine whether such systems can run reliably over time.

    1. From Code Completion to Hosted Agents: A Shift in Capability Boundaries

    For the past few years, the core value of AI coding tools has been completion and Q&A: developers still had to confirm line by line, paste section by section, and modify file by file. The new form that has emerged over the last year or so is the hosted agent—execution environments, dependency installation, builds, and tests are placed in a controlled runtime, and the agent autonomously completes multi-step tasks inside a sandbox, finally delivering results as a branch, a patch, or a review request.

    The essence of this shift is a migration of the responsibility boundary: tools move from “offering suggestions” to “being accountable for results.” Accordingly, the engineering focus moves from prompt quality to runtime isolation, least privilege, observability, and result acceptance. Baidu AI Cloud’s combination of general-purpose capabilities—container platforms, log services, and monitoring and alerting—is often used to carry the isolation and tracing of such runtimes.

    2. Multi-Agent Orchestration: The Benefits of Concurrency and the Cost of Conflicts

    A single agent reasons linearly. Multi-agent orchestration splits a task into parallelizable subtasks, which a coordinator dispatches, aggregates, and adjudicates. Three topologies are common:

    • Master–subordinate: one coordinator agent handles task decomposition and merging, while sub-agents each execute in isolation;
    • Pipeline: planning, implementation, testing, and review are chained by stage, with structured artifacts handed off between stages;
    • Peer negotiation: multiple agents debate the same proposal, which suits open-ended decisions such as architecture selection.

    The cost of parallelism is conflict. When multiple agents modify the same repository at the same time, semantic conflicts and merge storms arise. In engineering practice, worktree isolation and file ownership partitioning are typically introduced so that each subtask works in an independent working copy, and the coordinator then merges them in dependency order.

    1. Coordinator
    2. ├─ Subtask A (worktree A: module auth)
    3. ├─ Subtask B (worktree B: module billing)
    4. └─ Aggregate and adjudicate → unified branch → review

    3. Outcomes: Moving Acceptance Criteria to the Front

    The key point of outcome-oriented capabilities is rewriting “what to do” as “what counts as done.” What developers submit is no longer a vague description but executable acceptance conditions: tests passing, a coverage threshold, zero new static-analysis warnings, unchanged interface contracts, and so on. The agent iterates on its own until all conditions are met or it explicitly reports a blocker.

    A recommended way to write the acceptance checklist:

    1. goal: add idempotent writes to the order module
    2. acceptance:
    3. - all unit tests pass
    4. - at least 3 new duplicate-request test cases
    5. - no new static analysis warnings
    6. - external interface signatures remain unchanged
    7. constraints:
    8. - do not modify database table schemas
    9. - single-run duration is limited

    Codifying acceptance criteria is the key step in turning “subjective review” into “objective gates,” and it also makes it easy to reuse the same rules in continuous integration.

    4. Dreaming: Offline Reflection and Knowledge Accumulation

    “Dreaming” refers to the agent reviewing existing traces during non-interactive periods: generalizing failure modes, distilling reusable steps, and updating internal memory and routines. Its value lies not in making the current task faster but in compounding across tasks—turning one-off experience into retrievable guidelines.

    When putting it into practice, set boundaries: dreaming outputs first go into a “suggestions” area and are merged into the formal knowledge base only after human review; version history and rollback should be preserved to avoid repeatedly amplifying mistaken experience. Automatic memory mechanisms should also support isolation by project and by team to prevent context pollution.

    5. Developer Experience and Engineering Details of Autonomous Execution Modes

    Experience improvements around remote control, UI refresh, flicker-free rendering, planning views, and annotations share a common technical trait: decoupling execution from observation. The task runs on the remote side, and the local UI only subscribes to state deltas, so work can be resumed from any terminal.

    At the autonomous execution level, capabilities such as auto mode, automatic memory, multi-agent code review, and routine tasks require guardrails:

    1. Least privilege: read-only by default; write operations and network access are requested on demand;
    2. Sandbox isolation: builds and tests run in disposable containers, with artifacts externalized to object storage;
    3. End-to-end audit: prompts, tool calls, and command output all go into a log service for traceability;
    4. Cost guardrails: caps on steps, duration, and call quotas, with a circuit breaker on anomalies.

    6. Capacity and Quotas: Why Relaxing Limits Matters

    The call pattern of agent tasks differs markedly from manual coding: a single task can produce dozens of model calls and a large number of tool round trips, and it is highly bursty. If rate limits designed for interactive scenarios are kept, tasks tend to break midway when throttled. The industry has therefore generally adjusted its policies: relaxing call rates, optimizing plan quotas, removing peak-hour reductions, and providing queuing and prioritization for long-running tasks. For developers, what really needs to be designed is retry and resume-from-checkpoint, rather than assuming unlimited resources.

    7. Reference Architecture and Minimal Practice

    A reusable implementation looks like this: the task entry point receives the goal and acceptance criteria; the scheduling layer performs task decomposition and quota management; the execution layer assigns each subtask an isolated worktree and container; the artifact layer uniformly stores patches, logs, and test reports; the gate layer runs the acceptance checklist; and the knowledge layer accumulates dreaming conclusions.

    1. # Minimal loop driven by acceptance criteria (illustrative)
    2. def run(agent, goal, acceptance, budget):
    3. for step in range(budget.max_steps):
    4. if all(check() for check in acceptance):
    5. return "done"
    6. agent.act(goal, on_tool=audit_log) # all tool calls are audited
    7. return "blocked"

    8. Conclusion

    From completion to hosted agents, the focus of competition has shifted from “how smart the model is” to “how reliable the engineering is.” Multi-agent orchestration addresses throughput, outcomes address acceptance, and dreaming addresses accumulation, while isolation, audit, and quotas determine whether the whole system can run stably over the long term. General-purpose capabilities from Baidu AI Cloud—container platforms, object storage, log services, and monitoring and alerting—can serve as the foundation for hosting such agent runtimes, letting developers concentrate on defining problems and designing acceptance criteria.