How LLMs Move from Answering Questions to Getting Work Done: Coding and Agent Engineering Practices

    This article examines the shift in how large language models are evaluated, moving from single-turn answer quality to end-to-end task completion in real engineering scenarios. It explains why strong benchmark scores do not always translate into successful delivery, then walks through the engineering practices that close the gap: data validation before training, interleaved reasoning that pairs thinking with tool use, Agent framework design that shapes success rates, and methods for turning frontend aesthetics into measurable, trainable dimensions. It closes with a practical rollout sequence and an evaluation system built around executable checks. The goal is to give R&D teams a reusable methodology for post-training, Agent systems, and evaluation design.

    1. The Real Shift: From Answer Quality to Task Completion

    The most discussed topic in technical communities recently has not been any single product launch, but a recurring question: can a large language model actually finish a complete engineering task? We used to judge models by whether their answers were accurate and fluent. Real development work demands far more: reading an unfamiliar codebase, running multiple consecutive operations in a terminal, self-correcting after errors, and delivering a runnable frontend page with an acceptable interface.

    This reflects a migration in evaluation criteria: from “answered correctly” to “finished the job.” The former is single-turn, static, and semantic. The latter is multi-turn, dynamic, and outcome-based. The two require completely different capability structures, and that difference determines where post-training effort should go.

    Note that this article does not benchmark or recommend any specific product. Instead, it abstracts this round of industry progress into a reusable engineering methodology for teams designing model post-training, Agent systems, and evaluation frameworks.

    2. Why “Good at Tests” Is Not “Good at Work”: The Shift in Objective Functions

    The optimization target for single-turn question answering is relatively clear: given an input, maximize the likelihood or preference score of a reference answer. But the payoff function for engineering tasks is path-dependent. A multi-step task chains several subtasks together, and the overall success rate is roughly the product of the conditional success rates of each step. If a single step succeeds 90% of the time, a chain of ten steps completes only about 35% of the time. This explains a common puzzle: a model improves noticeably on single-point capability benchmarks, yet end-to-end delivery barely improves.

    Post-training must therefore explicitly model three things:

    • Long-horizon consistency: goals do not drift across planning, execution, and verification.
    • Recoverability: after an error, the model locates the cause and rolls back instead of continuing to reason from a false premise.
    • Verifiable results: every step’s output can be judged objectively by a tool or test, not by the model’s self-assessment.

    When the objective changes from “text is correct” to “task converges,” the training data mix, inference mechanism, and surrounding framework design all change with it.

    3. Data Engineering: Validate Before It Reaches the Table

    The bottleneck in model capability is usually not the total volume of data, but the effective information per unit of data. The engineering approach breaks into four layers.

    The first layer is domain-specific cleaning. Code, math, and scientific text have very different distributions and cannot be filtered with the same rules. Code calls for compilability, dependency completeness, and license compliance; math calls for complete derivation chains; scientific text calls for consistent terminology and reliable citations.

    The second layer is small-model ablation validation. Before any data mix change goes into full training, run ablation experiments on a small model with the same architecture and tokenizer, observe the target metrics and side effects, and only then decide whether to promote it. This mirrors canary releases in software:

    1. candidate data mix
    2. -> small-model ablation (low cost, short cycle)
    3. -> target metrics met, no regression
    4. -> promoted into the main training recipe
    5. -> full evaluation and regression testing

    The third layer is difficulty stratification and decontamination. Sample by task complexity, and strictly remove samples that overlap with evaluation sets to avoid the illusion of “scores up, capability unchanged.”

    The fourth layer is prioritizing verifiable samples. Samples that come with unit tests, compilation results, or numerically checkable answers provide more reliable supervision than human annotation, making them a cost-effective source for improving task completion.

    4. Inference Mechanism: Interleaved Thinking Lets the Model Think and Act

    The main cause of failure on multi-step tasks is often not an inability to write code, but a flawed first planning step that every subsequent action amplifies. The core of interleaved thinking is turning “thinking” from a one-time upfront action into a loop that alternates with tool calls: think, act, observe, think again.

    Different granularities can coexist: turn-level thinking handles single-step decisions, retained thinking writes key conclusions to external state to avoid long-context forgetting, and task-level thinking revises the global plan. A sketch:

    1. plan = planner(task) # task-level: initial plan
    2. state = {"plan": plan, "facts": []} # retained: external memory
    3. for step in range(max_steps):
    4. action = policy(state) # turn-level: decide the next action
    5. obs = tool(action) # act + observe
    6. state["facts"].append(obs)
    7. if verifier(obs): # objective check, not model self-assessment
    8. break
    9. state["plan"] = replanner(state) # revise the plan based on new evidence

    The key design principle: hand “judgment” to executable verifiers (compilation, tests, type checks, static analysis) and leave “generation” to the model. This division of labor significantly reduces accumulated error over long chains.

    5. Agent Frameworks: The Underrated Success Rate Variable

    An easily overlooked fact: model capability does not equal final performance. The surrounding Agent framework can affect end-to-end success rate by around 30%, because it determines what the model can see, what it can call, and whether it can retry after failure. Three areas deserve focused engineering effort.

    System prompt structure. Organize it in layers: identity and goals, available tool contracts, constraints and prohibitions, output format, and failure handling strategy. Tool descriptions must state inputs, return structures, and side effects clearly; ambiguous tool descriptions are the most common source of wrong calls.

    Tool call tiering. Separate read-only tools from write tools, add a second confirmation and sandbox isolation for high-risk writes, and truncate and structure tool results so the context is not flooded with irrelevant information.

    Stability of multi-agent parallelism. Parallel execution is where resource contention and cross-contaminated state show up most, so give each subtask its own working directory and context, and set a global budget (steps, elapsed time, number of calls) plus a deduplication lock.

    A minimal tool contract example:

    1. {
    2. "name": "run_tests",
    3. "args": {"path": "string", "selector": "string?"},
    4. "returns": {"passed": "bool", "failures": "array"},
    5. "side_effect": "none",
    6. "idempotent": true
    7. }

    6. Why Frontend Aesthetics Can Be Trained

    Interface quality is often treated as a matter of taste, but it actually contains many annotatable, measurable non-semantic capabilities: grid and whitespace ratios, font size hierarchy, color contrast and readability, component consistency, animation pacing, and responsive breakpoint handling. What can be measured can be trained.

    A workable path is to form a dedicated frontend team, collect high-quality page and component examples, involve a vision language model in sample screening and scoring, and then run targeted reinforcement across dimensions such as layout, proportion, hierarchy, and motion. On the evaluation side, introduce objective metrics: layout overflow detection, contrast thresholds, breakpoint coverage, and interaction reachability checks, calibrated against human preference ranking.

    The result moves from “it runs” to “close to deliverable,” reducing the time developers spend reworking styles.

    7. Implementation Advice and an Evaluation System

    To reproduce similar gains in your own product, proceed in this order.

    1. Define end-to-end metrics. Beyond single-point accuracy, add four metrics: task completion rate, average number of steps, human takeover rate, and rework rate.
    2. Build an executable evaluation set. Construct tasks from real repositories, real defects, and real page requirements, and judge them by whether tests pass.
    3. Establish a data canary mechanism. Validate any recipe change on a small model first, then roll out fully, and keep a rollback point.
    4. Treat verifiers as first-class citizens. Compilation, tests, type checks, static analysis, and visual regression are the most effective means of suppressing long-horizon drift.
    5. Control cost and budget. Set step and call limits per task, and use logging services plus monitoring and alerting to locate anomalies; training and evaluation artifacts can be archived in object storage, batch experiments scheduled elastically on a container platform, and task orchestration decoupled with a message queue.
    6. Accumulate failure samples. Feed failed trajectories back as training and evaluation assets to close the loop.

    8. Conclusion

    The essence of this round of capability gains is not stacking parameters, but the maturing of an engineering system: the objective shifts from correct answers to task completion, data shifts from quantity to effectiveness with validation before rollout, inference shifts from one-shot judgment to an interleaved loop, the surrounding framework is upgraded from an accessory to an entry requirement, and “soft” capabilities such as aesthetics are decomposed into trainable, measurable dimensions. For R&D teams, what is truly worth borrowing is this method of engineering model capability, along with the practice of building a training and evaluation loop on general cloud product capabilities (container platform, object storage, logging service, monitoring and alerting, message queue) on platforms such as Baidu AI Cloud.