Multi-Step Agent Models: Capability Upgrades from Code Generation to Computer Operation

    This article explains how new-generation general agent models are moving from one-shot question answering to closed-loop, multi-step task execution. It covers improvements in codebase understanding, debugging, instruction following, long-context planning, and computer use, and it discusses evaluation considerations, deployment risks, and suitable enterprise use cases.

    In recent years, competition among general AI models has gradually shifted from “Can it answer a question?” to “Can it complete a task continuously?” Compared with one-shot text generation, multi-step tasks often require a model to understand context, make a plan, call tools, observe execution results, correct errors, and finally deliver a verifiable result.

    A new-generation general agent model has recently shown clear progress in programming, computer operation, long-context reasoning, knowledge work, and interface design. Its value is not merely a higher score on an individual benchmark. More importantly, it can maintain goal consistency across longer task chains and reduce mid-task drift, repeated operations, and invalid output. These capabilities have practical significance for software development, data analysis, office automation, and enterprise process collaboration.

    Core Changes in Multi-Step Operation

    A traditional question-answering model usually works in a simple pattern: input a question, then generate an answer. An agent model is closer to the following closed loop:

    1. Understand the task goal;
    2. Break the goal into subtasks;
    3. Determine the required tools or operating environment;
    4. Execute specific actions;
    5. Read the execution results;
    6. Adjust the plan based on feedback;
    7. Verify the final result.

    For example, in software development, a user may simply ask the model to “fix a permission issue in an existing project.” The model needs to read the project structure and configuration files, locate the relevant code, analyze the call chain, modify the implementation, run tests, inspect exception output, and finally summarize the changes. A misunderstanding at any step can make the final result unusable.

    Therefore, the key to multi-step operation is not whether a single generation looks polished. The key is whether the model can maintain a stable task state. It needs to remember what has been completed, identify what remains unresolved, and distinguish facts, assumptions, and conclusions that still need verification.

    Programming Ability: From Generating Code to Completing Engineering Tasks

    The new-generation model’s improvements in programming are mainly reflected in three areas.

    1. Stronger Codebase Understanding

    A real project is usually not an isolated code snippet. It consists of multiple modules, configuration files, test cases, and build processes. If a model focuses only on the current file, it can easily overlook interface constraints, data structure changes, or implicit compatibility requirements.

    A more mature model can analyze directory structure, call relationships, error logs, and test results together to form a relatively complete engineering context. It can not only answer “How should this line of code be written?” but also determine:

    • Which modules will be affected by the change;
    • Whether configuration needs to be adjusted at the same time;
    • Whether boundary conditions exist;
    • Whether existing tests cover the scenario;
    • Whether the new implementation breaks old interfaces;
    • Whether rollback or compatibility logic is needed.

    This means the model’s role is gradually shifting from a code completion tool to a collaborative assistant in the development workflow.

    2. Better Debugging and Error Repair

    Complex software tasks usually require multiple rounds of trial and error. The model first proposes a change, then runs tests or a build process, and then continues to revise based on error logs. This process requires the model to distinguish root causes from symptoms.

    For example, a build failure may not be directly caused by the current change. It may result from dependency versions, environment variables, test data, or inconsistent interface contracts. If the model mechanically changes code based on the last line of an error message, it may introduce new problems. A better approach is to establish a loop of “symptom—hypothesis—verification—repair”:

    1. Read the error message
    2. ↓
    3. Summarize possible causes
    4. ↓
    5. Choose the smallest verification action
    6. ↓
    7. Eliminate incorrect hypotheses based on results
    8. ↓
    9. Implement a localized change
    10. ↓
    11. Rerun tests and check for regressions

    This way of working can reduce unfounded large-scale changes and is closer to real engineering practice.

    3. More Stable Instruction Following

    In enterprise projects, users usually provide multiple constraints. For example, the model must not modify public interfaces, must remain compatible with older versions, must add tests, and must not introduce additional dependencies. The model’s value lies not only in “completing the main function” but also in following these additional conditions.

    Based on practical usage feedback, the new-generation model is more stable in context integration, constraint adherence, and long-running collaboration. Irrelevant changes, ignored requirements, and repeated explanations have been reduced. However, no model can replace human review, especially in high-risk scenarios such as permissions, payments, data deletion, and production releases.

    Long Context and Long-Term Planning

    Long context does not simply mean “being able to read more text.” What really matters is whether the model can find key relationships in a large amount of information and continue to use that information in later steps.

    In long-term planning tasks, the model needs to handle the following questions:

    • Which information is the basis for the current decision;
    • Which content is only historical background;
    • Whether different documents conflict with each other;
    • Whether the task goal changes during execution;
    • Which conclusions need to be re-verified;
    • How to prevent early errors from affecting later steps.

    For example, when analyzing a set of financial tables, meeting notes, and business rules, the model should not only summarize. It should also identify relationships between numbers, determine whether data definitions are consistent, and explain the credible scope of its conclusions.

    Long-context capability can also reduce the manual effort of repeatedly pasting materials. However, enterprises still need to pay attention to context governance. It is recommended to organize input as follows:

    1. State the task goal and acceptance criteria first;
    2. Then provide necessary background materials;
    3. List important constraints in a structured way;
    4. Separate raw data from inferred conclusions;
    5. Ask the model to report its current status at key checkpoints;
    6. Finally, use an independent verification step to check the result.

    Computer Use: Models Begin to Operate Real Software Environments

    Computer use is an important breakthrough direction for the new-generation agent model. It does not rely on every application providing a dedicated API. Instead, it completes tasks through screen recognition, mouse clicks, keyboard input, and window switching.

    This capability can cover:

    • Searching for and organizing information in a browser;
    • Entering, calculating, and filtering data in spreadsheets;
    • Modifying formatting in document editors;
    • Opening files and executing commands in development environments;
    • Copying, checking, and summarizing information across multiple pages;
    • Filling out forms and submitting results according to a process.

    Compared with traditional automation scripts, visual interaction is more general and does not require a separate interface for every application. However, it also faces greater uncertainty. Interface layout changes, pop-up interruptions, network latency, permission prompts, and recognition errors can all affect task completion rates.

    Therefore, a reliable computer-operation agent cannot only click. It must also be able to confirm state. After each key action, it should check whether the page has changed as expected. For example:

    1. Click “Submit”
    2. ↓
    3. Confirm that a success message appears
    4. ↓
    5. Check whether the record status has been updated
    6. ↓
    7. Verify that key fields are correct
    8. ↓
    9. Save a screenshot or operation log if necessary

    Without a verification step, the model may mistakenly believe an operation succeeded when it is actually stuck on an error page or in a failed submission state.

    How to Interpret Relevant Evaluation Results

    Public tests usually measure model capabilities from multiple dimensions, including code repair, terminal tasks, computer operation, long-text reasoning, and agent planning. Different metrics reflect different abilities. A single score cannot simply determine whether a model is suitable for enterprise use.

    For example:

    • Code repair tests focus on whether the model can understand a real project and fix defects;
    • Terminal operation tests focus on whether the model can execute commands continuously and handle feedback;
    • Computer operation tests focus on whether the model can use common office software;
    • Long-context tests focus on whether the model can maintain consistent reasoning across a large amount of information;
    • Planning tests focus on whether the model can allocate resources and adjust strategies over a longer time horizon.

    Public data indicate that the new-generation model is already close to higher-tier models on tasks such as code repair, terminal operation, and computer use. In some tests, code repair accuracy reaches about 80%, and the computer operation score exceeds 70%. These results show that the model has strong potential for task execution, but they do not directly mean that it can work stably in every production environment.

    When evaluating the model, enterprises should ideally build their own task set covering real data, real permissions, and real processes. They should focus on recording the following metrics:

    • First-pass completion rate;
    • Average number of operation steps;
    • Recovery ability after failure;
    • Misoperation rate;
    • Manual review time;
    • Total task cost;
    • Adaptability to environmental changes.

    Key Risks to Control During Deployment

    The stronger a multi-step agent becomes, the greater its potential risks. In particular, when a model can read files, operate a computer, or execute commands, clear permission boundaries must be established.

    1. Principle of Least Privilege

    The model should receive only the minimum permissions required to complete the task. Read, write, delete, and publish permissions should be managed at different levels. Full access to all resources should not be granted by default.

    2. Human Confirmation for High-Risk Actions

    For data deletion, financial operations, permission changes, production releases, and external messaging, human approval or secondary confirmation should be required. The model can propose a plan, but it should not directly complete irreversible operations without review.

    3. End-to-End Traceability

    The system should record the tasks the model receives, the tools it calls, the actions it performs, the files it generates, and the final results. When problems occur, only complete logs can help identify responsibility and improve the process.

    4. Results Must Be Verifiable

    For code changes, tests and static checks should be run. For data processing, row counts, fields, and statistical results should be checked. For form operations, submission status should be confirmed. For document generation, formatting and facts should be reviewed.

    Application Scenarios Worth Trying First

    From a return-on-investment perspective, enterprises can prioritize tasks with relatively clear rules, easily verifiable results, and controllable risk, such as:

    • Automatically organizing project documents;
    • Analyzing logs and generating issue summaries;
    • Assisting in writing test cases;
    • Cleaning and classifying spreadsheet data;
    • Summarizing multiple information sources;
    • Performing repetitive operations in development environments;
    • Generating preliminary reports and visualization drafts.

    For core transactions, production changes, and sensitive data processing, enterprises should adopt a model of “model suggestion, human confirmation, system execution” rather than full automation.

    Overall, the most notable aspect of the new-generation agent model is not a sudden breakthrough in a single capability. Rather, code understanding, long-term memory, tool calling, and computer operation are gradually forming a complete closed loop. It is beginning to have the basic conditions for handling real complex tasks.

    However, moving from “able to complete demonstration tasks” to “able to reliably take on production work” still requires engineering measures such as task decomposition, permission management, process monitoring, result verification, and human fallback. For developers, the most important question is not whether a model claims stronger capabilities, but whether it can deliver results continuously, controllably, and audibly in specific business processes.