Evaluating Model Efficiency and Stability in Complex AI Agent Tasks
Evaluating AI agents in complex software development requires looking beyond single-turn responses. This article explores a methodology for assessing model efficiency and stability across the entire execution chain, including task decomposition, tool calling, error recovery, and context management. Based on a comparative experiment involving four different models under unified conditions, we discuss the key factors influencing agent performance and propose a multi-dimensional evaluation framework to help engineering teams select and optimize AI solutions for multi-step development workflows.
In complex software development tasks, the quality of a model’s single-turn response is only part of the evaluation system. When a model must continuously operate a browser, read assets, write code, inspect pages, fix bugs, and save deliverables, the true determinants of success lie in the entire agent execution chain: task decomposition capability, tool calling quality, error recovery mechanisms, context utilization efficiency, and runtime environment stability.
This article is based on a comparative experiment conducted under unified conditions, abstractly comparing four models with different characteristics. The experiment does not discuss specific brands or simply attribute conclusions to parameter size. Instead, it attempts to answer a more universal question: in complex, multi-step product development tasks requiring browser operations and continuous validation, how do we evaluate whether a model is truly efficient, reliable, and suitable for engineering use?
1. Experiment Goal: Comparing Complete Execution Capability, Not Single-Turn Quality
The experiment selected a creative collaboration system prototype with a real product form. It is not a simple static page generation task, but a comprehensive system involving multiple roles, multiple pages, and multiple interactive states.
The system needed to cover the following core scenarios:
- Project overview, including project progress, member relationships, and current status;
- Inspiration asset management, including image display, categorization, and asset association;
- Asset comments, including comments and feedback on specific locations;
- Version approval, including version switching, approval, and rejection operations;
- Publishing preview, to check how final content renders on different devices.
The system also needed to differentiate roles such as creative leads, designers, and clients. Different roles see different content and have different operational permissions, meaning the pages must not only have visual appeal but also reflect basic permission logic and state transitions.
More importantly, user operations must not be entirely lost upon page refresh. That is, the task simultaneously includes interface implementation, interaction design, state management, and basic persistence requirements. The model must act like a small development team, completing requirements understanding, solution design, coding implementation, runtime validation, and bug fixing.
2. Unified Experiment Conditions: Isolating Variables Beyond the Model
To make the comparison results valuable, the experiment fixed the execution framework, task content, input assets, context size, browser environment, and acceptance criteria, only swapping the underlying model.
Unified conditions mainly included:
- Using the same agent execution framework;
- Using the same task instructions and initial data;
- Using the same image assets, project members, comments, and version seed data;
- Using a unified context capacity and task budget;
- Completing page operations through the same browser automation protocol;
- Simultaneously checking both desktop and mobile views;
- Allowing one concentrated fix session per group;
- Finally saving code, screenshots, execution logs, review records, and metric data.
The desktop check size was 1440×1000, and the mobile check size was 390×844. This setup exposes many issues that cannot be found in a single viewport, such as horizontal overflow, fixed-position遮挡 (fixed-position obstruction), popups exceeding screen bounds, navigation compression anomalies, and touch targets being too small.
The significance of unified conditions is to separate the “model’s own execution capability” from “task difficulty, asset differences, and environment differences” as much as possible. Otherwise, a model might appear superior on the surface simply because it received simpler inputs or encountered fewer browser exceptions during execution.
3. Results Extend Beyond Final Screenshots
All four experimental groups eventually completed the task, but their execution processes differed significantly. The comprehensive records can be summarized into a few typical scenarios:
- One model completed the task in about seventeen minutes with almost no extra reruns;
- One model failed its first execution, and after restarting, took over an hour in total;
- One model did not completely restart but automatically retried multiple times within the execution chain, ultimately taking nearly ninety minutes;
- Another model failed continuously under the default retry strategy and only succeeded after adjusting the backoff strategy, taking about an hour for its first successful run.
Looking at the final screenshots, all four results could be described as “task completed.” However, from an engineering perspective, there are significant differences in completion time, retry counts, failure locations, tool call quantities, and context consumption.
This indicates that “whether the task is completed” is more suitable as a minimum threshold rather than a complete evaluation metric. For actual production systems, a success that requires multiple reruns and frequent manual intervention usually does not equate to a high-quality success.
4. Five Key Factors Influencing Agent Efficiency
1. Task Decomposition Capability
Complex tasks typically contain multiple interdependent stages. A more mature execution approach establishes an overall plan first, such as:
- Reading requirements and identifying core entities;
- Planning page and component structures;
- Establishing data models and state relationships;
- Implementing main pages;
- Integrating interactions and persistence;
- Launching the application and performing browser checks;
- Concentrating on fixing issues;
- Saving the final deliverables.
If a model does not establish a task structure first but starts coding directly from page details, inconsistencies often arise: previously defined role states cannot support subsequent approval flows, asset components are not associated with project entities, or mobile issues are deferred and discovered only at the end.
Task decomposition capability determines not only initial development speed but also subsequent modification costs. The clearer the plan, the smaller the scope of rework.
2. Tool Calling Quality
Browser automation is not just simple clicking. The model needs to determine the current page state, locate target elements, understand asynchronous loading results, and distinguish whether a failure is due to a selector error, page not loading, data not saving, or a flaw in the application itself.
High-quality tool calls typically have three characteristics:
- Clear goals and expected results before each operation;
- Checking the page state after operations instead of proceeding blindly;
- Analyzing the cause of failures before deciding whether to retry, fix, or change the approach.
Low-quality calls easily lead to a cascade of errors. For example, if the first click fails and the model does not confirm the result, it continues with subsequent steps, eventually causing the entire workflow to deviate from expectations. Even with multiple subsequent retries, it may just be repeating the same mistake.
3. Error Recovery Mechanism
In multi-step tasks, failure is the norm; the key is how the system recovers.
A reasonable recovery strategy should distinguish three situations:
- Instantaneous errors: e.g., page loading timeout or brief network anomalies, which can be addressed with a limited number of retries;
- State errors: e.g., the current page is not in the expected location, requiring a re-read of the page state first;
- Logic errors: e.g., inherent issues in the code, data structure, or interaction design, requiring implementation modifications rather than continued clicking.
If all errors are handled by “rerunning the entire task round,” costs will rise rapidly. Reruns not only waste time but may also overwrite existing progress, creating new uncertainties.
A more robust approach is to save checkpoints. For example, record the state after completing the data model, main pages, and core interactions respectively. When a problem occurs, continue from the most recent stable checkpoint rather than starting from scratch.
4. Context Management Capability
Complex development tasks generate a large amount of context, including requirement text, code files, browser states, error logs, screenshots, and historical operations. If the model cannot effectively compress and filter this information, subsequent judgments may be compromised.
Context management should at least include:
- Currently completed features;
- Currently incomplete features;
- Known defects and their priorities;
- The result of the most recent operation;
- Current page and data state;
- The goal of the next operation.
If the model relies solely on lengthy historical records without maintaining a structured progress summary, it is prone to duplicate implementations, repeated checks, or forgetting previously fixed issues.
5. Environment and Service Stability
Model capability does not completely determine task outcomes. Execution services, toolchains, browser processes, and network environments all affect final performance.
For example, the model itself might have generated correct code, but if the browser process unexpectedly crashes, the task is judged as failed; or if the tool calling interface experiences latency, the agent might mistakenly assume the operation didn’t take effect and resubmit.
Therefore, evaluations need to record “model errors” and “environment errors” separately. Otherwise, the final statistics will mix two different types of issues, providing no guidance for subsequent optimization.
5. Page Performance and Execution Styles
The results from the experimental groups demonstrated different product implementation orientations.
One group adopted a lightweight, light-colored editorial style with clear information hierarchies, where project status, assets, and member relationships could be quickly identified. Its advantage lies in its simple structure and low reading cost, suitable for scenarios emphasizing task completion and information organization.
Another group adopted a visual system combining dark and warm colors, establishing a unified brand feel through title styles, approval statuses, and permission matrices. It performed well in mobile adaptation and visual consistency, indicating that the model focused not only on functionality but also on maintaining a design language.
Another group chose a dark professional workspace, integrating navigation, project progress, roles, delivery, approval, and asset canvas into a complete system. Its information density and engineering completeness were high, but such designs also require special attention to the learning curve for new users and information compression issues on small screens.
These differences indicate that page quality cannot be judged simply by “more complex” or “prettier.” It should be evaluated separately on:
- Whether information is easy to understand;
- Whether core tasks are easy to complete;
- Whether state feedback is clear enough;
- Whether multi-role flows are consistent;
- Whether mobile views maintain main capabilities;
- Whether visual expression serves business goals.
6. Building a Multi-Dimensional Evaluation System
For complex agent tasks, the following metric system can be established.
1. Result Metrics
Used to determine if the task meets minimum requirements:
- Are core pages complete;
- Are key interactions available;
- Is data persisted after refresh;
- Do role permissions meet expectations;
- Do desktop and mobile views pass inspection.
2. Efficiency Metrics
Used to measure the resources expended to complete the task:
- First success time;
- Total time;
- Tool call count;
- Automatic retry count;
- Full rerun count;
- Input and output context consumption.
3. Stability Metrics
Used to determine if the system is suitable for continuous operation:
- First execution success rate;
- Single-step failure rate;
- Error recovery success rate;
- Post-retry success rate;
- Proportion of environment anomalies;
- Whether manual intervention is required.
4. Engineering Quality Metrics
Used to measure whether deliverables are easy to maintain:
- Is the code structure clear;
- Is state management unified;
- Are components reusable;
- Are logs sufficient for locating issues;
- Can it recover from checkpoints;
- Modification cost for subsequent requirement changes.
7. Optimizing the Execution Flow of Complex Agent Tasks
In practical use, a “Plan—Execute—Verify—Fix—Deliver” closed-loop process can be adopted.
First, the model should generate a short but structured task plan, clarifying entities, pages, states, and acceptance criteria. Second, prioritize implementing data structures and core flows before handling visual details, avoiding premature investment in style optimization when the basic state is not yet stable.
During execution, local validation should occur after completing each important stage. For example, after completing version approval, immediately check whether approval, rejection, switching, and refresh work, rather than waiting until all pages are done for a unified check.
The fixing phase should prioritize blocking issues, including pages failing to load, core buttons being unresponsive, states failing to save, and severe mobile overflow. Colors, spacing, and decorative details can be handled later.
Finally, before delivery, a summary should be automatically generated, recording completed items, incomplete items, known limitations, screenshot locations, and log locations. This not only facilitates manual acceptance but also provides clear context for the next round of tasks.
8. Conclusion
The most important conclusion from this comparative experiment is not which model is faster, but that model speed cannot be discussed in isolation from the execution mechanism.
In complex agent tasks, true efficiency is determined by multiple factors:
- The ability to correctly decompose tasks;
- The ability to stably call tools;
- The ability to identify and recover from errors;
- The ability to control context scale;
- The ability to reduce invalid retries;
- The ability to complete validation across different devices;
- The ability to leave maintainable and reviewable deliverables.
Therefore, when selecting agent solutions, enterprises should not only compare single-turn generation speed or final page screenshots, but should establish a complete process evaluation system. Only by simultaneously focusing on first-time success rate, recovery cost, tool calling efficiency, delivery quality, and environment stability can one determine whether a model is truly suitable for complex R&D workflows.
For development teams, the most valuable optimization direction is not simply pursuing larger models, but building clearer task protocols, more reliable checkpoint mechanisms, more accurate error classifications, and more observable execution logs. The synergy of model capability, agent framework, and engineering process is the key to improving the success rate of complex tasks and overall production efficiency.
