Orchestrated AI Development: From a Single Model to Team Collaboration

    A single model handling an entire software workflow often starts to drift on moderately complex tasks. This article explains how to split delivery into planner, executor, and reviewer roles, run short handoff loops with task cards and evidence, and manage context, rules, skills, tools, quality, security, and cost without treating the chat as a black box.

    A single model that owns the whole workflow often starts to lose fidelity once a task reaches moderate complexity. Planning needs a global view, retrieval needs restraint and evidence, editing needs local precision, and build and test need repeatable feedback. When those duties are compressed into one inference pass, the model tends to oscillate between “think it through” and “just change it”: the plan looks complete, but the edits lack acceptance criteria; or the code changes quickly, but nobody returns to the original problem to check the boundaries. The value of orchestration is not another, stronger chat window. It is splitting software delivery into roles that can hand work off, be reviewed, and roll back.

    From Assistant to Team: Define Roles Before Choosing Models

    The usual pattern is one conversation that runs from understanding the request through research, file edits, builds, and regression. The longer the session, the more early constraints get diluted, and fluent language can hide mistakes. A more stable approach is to fix three responsibilities.

    The planning role owns problem definition, design tradeoffs, interface and data boundaries, a risk list, and acceptance criteria. It does not rush to change the repository. It produces an executable task brief: which modules to change, which not to change, how success is judged, and how to roll back on failure.

    The execution role retrieves code, makes edits, runs builds and tests, and packages the results as evidence: scope of change, key diffs, failure logs, and unfinished items. It should follow the task brief strictly. If the request is vague or the design is not feasible, it stops expanding the change and returns the issue to planning.

    The review role can be the same person or session as planning, but the duty must appear on its own. Review answers only three questions: does the implementation meet the stated acceptance criteria, did it introduce behavior changes outside scope, and do the tests cover the risk of this change? If review fails, do not patch the original conclusion with excuses. Write a new defect note and start another execution round.

    This split resembles a human team: architecture judgment, implementation, and quality control should not be done continuously by the same person with no record. Models may rotate. Role boundaries should not.

    How the Orchestration Loop Runs

    Converge one request into a short cycle instead of one long conversation.

    1. Planning emits a task card. At minimum it includes background, goal, non-goals, impact surface, acceptance steps, and prohibitions. Prohibitions should be concrete: do not change a public protocol, do not loosen authorization, do not delete existing tests to “make the build pass.”
    2. Execution retrieves and edits against the task card. Each step handles one verifiable slice and prefers the smallest change. Retrieval conclusions should cite source locations, not impressions.
    3. Execution submits an evidence pack: a change summary, a short result of the key test commands, and any checks that could not be run, with reasons. Without evidence, do not enter review.
    4. Review judges the task card item by item. Pass ends the cycle. Fail returns only the failed items and reproduction details, for execution to continue or for planning to revisit the design.
    5. Escalate hard problems. Escalation conditions should be written in advance: two consecutive failures of the same kind, a need to change external behavior, a new dependency, a test environment that does not match assumptions, or unclear security or data boundaries. After escalation, planning rewrites the task card. Execution does not expand its own authority.

    The handoff does not have to be tied to any particular product. A plain-text convention is enough:

    1. Task: add status filtering to order queries
    2. Non-goals: do not change the pagination protocol; do not change the permission model
    3. Acceptance: a specified status returns only matching records; the default status keeps the old behavior; related tests pass
    4. Escalation: if the existing query layer cannot express the filter and storage must change, stop and report

    Execution reports use fixed fields as well: locations changed, behavior changes, test results, and residual risk. Fixed fields reduce narrative “it looks done” completions.

    Reasoning Depth, Cost, and Context

    Reasoning effort can be tiered. Not every stage needs the highest setting. Planning, design comparison, and defect attribution benefit from deeper reasoning, because a wrong decision multiplies later rework. Formatting, applying a clear rename patch, and repetitive test notes fit a lower setting. Using the highest tier for every small everyday fix usually adds latency and cost without improving correctness.

    Two different “windows” matter more. The context length advertised by a model API and the length an application actually sends are often not the same. The application must also reserve space for system constraints, tool results, history summaries, and safety filters. Configure against the window that is actually available, not the API maximum. Entitlements, plans, and tenant policy can shrink that length further. Check the real limit on the current account, and do not treat example numbers as a capacity promise.

    Context management is itself an orchestration skill:

    • Planning keeps goals, constraints, and open questions. It does not paste the whole repository.
    • Execution retrieves snippets on demand. If a result is too long, summarize first, then cite the key lines.
    • Review looks at the diff, the tests, and the acceptance clauses, so early discussion does not pull it off course.
    • Split long work into slices. At the end of each slice, persist the conclusion. The next slice continues from that conclusion, not from the entire chat log.

    Rules, Skills, and Tool Access

    To turn an assistant into a team, configuration should be portable and reusable, not locked inside one chat. Three assets are worth keeping.

    Rules are constraints that must be followed: code style, branch policy, secrets must not enter prompts, production data must not be used for experiments, and every change must include tests or an explanation of why it cannot be tested. Rules should be short, checkable, and non-conflicting. Contradictory rules get ignored selectively.

    Skills are reusable procedures, such as “add a minimal regression test for a defect,” “review API compatibility,” or “find callers before editing.” A skill describes inputs, steps, and a definition of done. It should not hard-code one vendor’s commands or UI paths. When the team changes tools, the skill still applies.

    Tool connections attach retrieval, tickets, docs, builds, and observability to the agent. Before connecting, confirm the source, the permission scope, and where data may leave your boundary. Remote install scripts, unknown plugins, and overly broad write access are supply-chain risks: read the content and permission description, verify in an isolated environment, and only then allow contact with the real repository. Prefer read-only connections over read-write. Limit writes to directories, branches, and a reversible method.

    A desktop UI is useful for tasks, files, and conversation. A command line is useful for scripting, batch work, and existing build pipelines. Both are entry points. Neither changes role boundaries. On first setup, move existing coding standards, review checklists, and common procedures into rules and skills so each member does not rediscover them. Office or document integrations from a marketplace or template can be enabled as needed, but check the data scope first so unrelated mail, calendars, or internal documents are not exposed to a coding task.

    If the organization already has a shared runtime, close the loop for builds, logs, and monitoring alerts on that platform. In an enterprise cloud environment such as Baidu AI Cloud, for example, a general container platform can run isolated builds, logs and monitoring can show failure patterns, and object storage can keep task cards and evidence packs. Use only generic capabilities. Do not depend on a proprietary interface of one coding tool.

    Quality, Security, and Cost Control

    Orchestration does not automatically make work more correct. It makes errors visible earlier. A few engineering disciplines have to go with it.

    Acceptance criteria come before code. Do not assign a task to execution if it has no observable result. Criteria should be checkable by tests, static analysis, or human comparison. Avoid sentences such as “improve the experience,” which cannot be judged.

    Constrain change scope with the diff. The executor should explain why any unplanned file was modified. The reviewer rejects unplanned changes by default unless planning adds authorization.

    Layer the tests. Run checks that can finish quickly on a local machine first. For checks that depend on external systems, state the environment assumptions. Keep the important stack and command from a failure log. Do not push large unrelated output back into context.

    People still own the release decision. An agent team can prepare patches and notes. Merge, rollout, and data changes still need confirmation from someone with authority. For authorization, privacy, money, and deletion, raise the escalation bar, and if needed do the work entirely by hand.

    Account for cost by role. Track call count, latency, and failed retries for planning, execution, and review separately, not only total tokens. If execution fails repeatedly, check whether the task card is vague before raising the reasoning tier. Cap retries so the same error does not burn budget in a loop.

    Treat secrets in prompts the same as secrets in the repository. Tickets and logs returned by connectors may contain personal data or keys; redact them before they enter the conversation. If task records are retained, set a retention period and an access scope.

    A Practical Rollout Order

    Do not let several models edit the same repository in parallel on day one. Use four steps.

    First, use one model, but require a task card and an evidence pack, and have a person play reviewer. This checks whether the process is excess overhead and whether the fields are sufficient.

    Second, give review to another session or another model, and have a person look only at disagreements. Watch whether unplanned changes get through.

    Third, limit execution to short branches and modules covered by automated tests. Planning still needs human confirmation before work starts.

    Fourth, allow the planning role to dispatch low-risk work directly, such as comments, clearly specified defect fixes, and added tests. Architecture changes, dependency upgrades, and permission-related edits stay behind a human gate.

    Whether you actually have a “team” is not how busy the chat looks. Watch four measures: whether rework per task falls, whether unplanned diffs shrink, whether defects are found in review rather than after release, and whether human review time per request becomes more stable. If the measures get worse, tighten roles and escalation conditions before adding more models.

    The core skill of future developers will expand from “ask the whole question clearly in one shot” to designing the split of work, constraining authority, accepting evidence, and managing escalation. An orchestrator is only the vehicle for that skill. Separate planning, execution, and review, and leave a trace through task cards, rules, skills, and limited tools. An assistant can then become a development team that can be held to account, rather than a black-box conversation that cannot be reconstructed.