AI Agent Tiered Scheduling for High-Concurrency AI Coding Workflows

    This article explains why "do-everything" AI coding agents often underperform, and how tiered scheduling fixes the problem. It covers the root causes of weak top-level plans, overthinking, and task mismatch; a reference two- or three-tier architecture with a planning layer, an execution layer, and an optional review layer; the engineering constraints that keep the setup stable, such as minimal context, round and token budgets, acceptance criteria first, and rollback-safe changes; guidance on routing tasks to the right tier; and a lightweight internal evaluation set with cost and observability practices.

    1. The Symptom: Why “Do-Everything” Usage Often Fails

    A pattern shows up repeatedly in real-world use of AI coding tools: the same model performs well as a directed executor, but produces mediocre designs when it acts as an independent decision maker, then falls into a loop of re-reasoning and reversing its own conclusions. Most of the polarized reviews in user communities are not contradictions in model capability itself, but differences in how the model is used.

    Breaking this down yields three typical problems:

    1. Weak top-level plans: when requirement boundaries are vague, the model tends to produce architecture drafts that look complete but are not actually usable.
    2. Overthinking and internal churn: without clear acceptance criteria, the model keeps expanding the space it considers, so token consumption rises while output converges slowly.
    3. Task mismatch: handing visual design and interaction work to an execution-oriented model that is strong at text reasoning usually gives poor results.

    The conclusion is straightforward: models with fast execution and strong instruction following belong in the “execution seat”; architecture decisions and aesthetic judgment belong in the “driver’s seat” with a stronger model, or with a human.

    2. Root Cause: Capability Dimensions Do Not Overlap

    Models are not distributed evenly across capability dimensions. The observable differences usually concentrate in four areas:

    • Depth of architectural reasoning: whether the model proactively asks for clarification when requirements are incomplete and proposes an evolvable layered design;
    • Instruction-following stability: whether it executes reliably without drifting under long instructions and multiple constraints;
    • Throughput and latency: output per unit of time, which determines how fast grunt work gets cleaned up;
    • Multimodal and aesthetic judgment: handling of layout, visual consistency, and interaction details.

    Putting a “high throughput + strong instruction following” model in the execution seat and a “strong architectural reasoning + aesthetic judgment” model in the driver’s seat is capability complementarity, not a simple swap of stronger for weaker. That is also why “mediocre alone, highly effective together” can both be true at the same time.

    3. The Approach: A Reference Architecture for Tiered Scheduling

    A two-tier structure is recommended, extended to three tiers (planning—execution—review) when needed.

    3.1 Planning Layer (Driver’s Seat)

    Responsibilities: requirement clarification, task decomposition, interface and data model definitions, and writing acceptance criteria. The key constraint is that the output must be executable. Structured output should be mandatory:

    1. {
    2. "goal": "Add idempotent writes to the order module",
    3. "constraints": ["Do not change the existing table schema", "Keep each change under 200 lines"],
    4. "tasks": [
    5. {"id": "T1", "desc": "Define the idempotency key and unique index approach", "acceptance": "Provide a migration script and a rollback plan"},
    6. {"id": "T2", "desc": "Refactor the write path", "acceptance": "Repeated requests produce no duplicate data"}
    7. ],
    8. "budget": {"max_rounds": 3, "max_tokens": 60000}
    9. }

    3.2 Execution Layer (Worker Seat)

    Responsibilities: implement T1, T2, and so on item by item, including boilerplate code, test completion, logging and instrumentation, dependency upgrades, and bulk refactoring. The execution-layer prompt should contain four elements: goal, constraints, acceptance criteria, and prohibitions. Example:

    1. Task: T2, refactor the write path
    2. Constraints: modify the service layer only; do not add new dependencies; keep existing error codes
    3. Acceptance: add a concurrent duplicate-submission test, all tests pass
    4. Prohibited: changing the directory structure, renaming shared methods

    3.3 Review Layer (Optional)

    The planning layer or a human samples the execution results, focusing on out-of-scope changes, missing tests, and unnecessary abstractions. If review fails, the work goes back to the execution layer with the specific differences noted, rather than redoing the architecture.

    4. Key Engineering Constraints

    Whether tiered scheduling stays stable depends on four constraints actually being enforced:

    1. Minimal context: feed the execution layer only the relevant files and interface definitions, instead of stuffing in the whole repository and diluting attention.
    2. Budget and round limits: set a maximum number of rounds and a token cap per task; stop and escalate when exceeded to suppress internal churn.
    3. Acceptance first: write tests or validation scripts before letting the execution layer change code, turning “is it good?” into a decidable question.
    4. Rollback-safe changes: commit in small steps and isolate branches, so no single failed run pollutes the main branch.

    5. Task Routing: Which Work Goes to Whom

    • Suitable for the execution layer: bulk refactoring, unit test completion, logging and monitoring integration, dependency and configuration migration, documentation and comment generation.
    • Suitable for the planning layer or a human: domain modeling, technology selection, performance bottleneck analysis, cross-module contract design.
    • Not recommended for a text-only execution model: pixel-to-code reproduction of visual designs, interface aesthetics, polishing interaction details. This work should go to a model with multimodal and aesthetic judgment capability, or a human should provide clear design specifications first and the execution layer then implements the style code.

    6. Evaluation and Cost: Replace Gut Feeling with Data

    One root cause of polarized community feedback is the lack of a shared yardstick. Build a small internal evaluation set (20–50 real tasks) and record four metrics: first-pass rate, average rounds, token consumption, and human rework time. For cost and quotas, use a general metering approach: set separate budgets for the driver’s seat and the execution seat, observe call volume, latency, and failure rate through logging services and monitoring alerts, then use a message queue to smooth out peaks and avoid blocking during high-traffic periods.

    If a cloud platform is used, a common setup is: a container platform runs the agent services, object storage holds build artifacts and evaluation samples, and the logging and monitoring stack provides observability. All of these are general capability categories, with no need to bind to a specific implementation.

    7. Common Pitfalls

    1. Treating a strong model as omnipotent: mixing architecture and execution in a single prompt, and doing both poorly.
    2. Starting without acceptance criteria: the model can only converge on imagination, and rounds and cost rise together.
    3. Feeding the whole repository at once: context noise is amplified and instruction following degrades.
    4. Ignoring aesthetic ownership: interface issues get reworked repeatedly and are still unsatisfactory.
    5. Judging only single runs: without an evaluation set, you cannot tell whether a change is a gain or a regression.

    8. Implementation Checklist

    • Define the split between the driver’s seat and the execution seat, and write it into team standards;
    • Prepare structured prompt templates and acceptance scripts for each task category;
    • Set a triple budget of rounds, tokens, and duration, plus a stop-on-exceed policy;
    • Build a small evaluation set of 20–50 real tasks and review it weekly;
    • Route visual and interaction tasks separately: produce specifications first, then implement code;
    • Commit in small steps and keep changes rollback-safe; feed failed samples back as new evaluation cases.

    Organized this way, the contradiction of “mediocre alone, effective together” disappears: the model did not get stronger; division of labor, constraints, and acceptance criteria keep it reliably in the right seat.