Model Comparison in Agent Execution Frameworks: A Controlled Methodology and Practice

    This article presents a single-variable methodology for evaluating models inside the same agent execution framework, keeping the task, assets, context window, environment, and acceptance rules fixed while swapping only the underlying model. It compares four lightweight sub-300B models on a complex product-building task, highlights process differences such as action turns, tool-call reliability, service stability, and context management, and offers engineering guidance for production agent systems.

    Model Comparison in Agent Execution Frameworks: A Controlled Methodology and Practice

    Introduction: Why Benchmark Scores Do Not Equal Agent Efficiency

    Most current large-model evaluations rely on static benchmarks: multiple-choice questions, coding problems, and mathematical reasoning. These scores reflect a model’s basic capabilities, but they struggle to answer a more important engineering question: when a model is placed inside a real agent execution framework, asked to call tools dozens of times in succession, maintain context spanning hundreds of thousands of characters, and handle browser rendering errors, can it reliably deliver?

    This article shares a controlled-variable comparison practice: keep the same agent execution framework, task, assets, context window, and acceptance rules fixed, replace only the underlying model, and observe how four lightweight models (in the sub-300B parameter range) complete the same complex product-building task. The results are instructive: the fastest model completed the task in about 17 minutes, while the slowest went through 85 retries and took more than an hour before its first success. All four models eventually delivered, but the process differences are far more valuable for analysis than the final page screenshots.

    1. Experiment Design: Reducing Variables to the Model Alone

    The most common problem in model comparisons is variable contamination: different frameworks, prompts, and tool sets are mixed together, making it impossible to tell where differences come from. This experiment follows a single-variable design principle:

    • Fixed execution framework: All four groups use the same agent execution framework, with identical task orchestration, tool-calling protocol, and automated acceptance flow.
    • Fixed task and assets: The same requirements description, the same input assets, and the same seed data are used.
    • Fixed resource budget: The context window is uniformly configured at 262K, with a task budget cap of 200K tokens.
    • Fixed environment: Page operations and screenshot validation are performed through the same browser automation protocol. Desktop checks use 1440×1000 resolution, and mobile checks use 390×844 resolution.
    • Fixed acceptance rules: Each group must produce code, page screenshots, execution logs, a self-review report, and metric data. Only one repair round is allowed.

    The task itself is a multi-role creative collaboration system. The input consists only of several public image assets and seed data for projects, members, versions, and comments. There are no existing pages to reference. The model must autonomously complete five core states—project overview, asset mood board, asset positioning comments, version approval, and publish preview—and support differentiated views for three user roles: manager, executor, and client. The task involves drag-and-drop interactions, comment anchoring, version switching, state persistence, and other typical frontend engineering challenges.

    The value of this task is that it examines requirement understanding, information architecture design, code generation, browser debugging, and self-repair at the same time. It is a complete agent workflow, not an isolated coding problem.

    2. Execution Process Comparison of the Four Models

    All four models eventually completed the task, but their processes fell into four typical patterns:

    Pattern 1: Efficient single-pass completion. The first model completed the task in about 17 minutes with no full rerun. The page information architecture was clear, and the relationships between roles and states were easy to understand. Its characteristics were few action turns and high output quality per tool call; errors were avoided during the first generation stage.

    Pattern 2: First-round failure followed by full rerun. The second model failed in the first round and triggered a complete rerun. Including the rerun, total time was about 1 hour and 12 minutes. This indicates a “hard failure” mode: the model could not self-heal within the framework and depended on an outer retry mechanism as a fallback.

    Pattern 3: Internal self-healing but time-consuming. The third model did not trigger a full rerun, but the framework recorded three automatic retries, with a total time of about 88 minutes. It followed a “fix while building” path, avoiding a restart from scratch at the cost of a longer single round.

    Pattern 4: Retry storm. Under the default retry policy, the fourth model failed for two consecutive rounds and accumulated about 85 retries. It completed only after an extended backoff strategy was enabled, with first success taking about 1 hour and 4 minutes. Behind 85 retries, the issue is often not model capability but tool-call exceptions caused by service stability, rate limiting, or context overflow.

    3. Four Key Metrics Derived from Process Data

    The most important conclusion from this experiment is that positioning a model as “low-cost” or “high-speed” describes only part of its capability. When evaluating models for agent scenarios, at least the following four dimensions should be considered:

    1. Action Turns: The total number of steps required to complete the task. Fewer turns indicate stronger planning ability and higher single-decision quality. The model that finished in 17 minutes essentially “thought it through before acting.”
    2. Tool-Call Success Rate: This includes first-attempt success rates for browser operations, file reads and writes, and command execution. In the case with 85 retries, many turns were consumed by compensating for failed calls, resulting in a low proportion of effective work.
    3. Service Stability and Backoff Strategy: API jitter during high-concurrency periods is amplified by agents—a timeout triggers a retry, and the retry consumes context budget. Engineering teams must design exponential backoff, maximum retry limits, and circuit-breaking mechanisms rather than retrying blindly.
    4. Context Management Capability: A 262K window may look ample, but screenshots, logs, and intermediate code accumulate quickly during long tasks. The ability to proactively summarize, trim history, and retain key state directly determines quality in the latter half of a task.

    A reference metric collection structure is shown below:

    1. {
    2. "task_id": "atelier-collab",
    3. "model": "model-a",
    4. "wall_clock_minutes": 17,
    5. "action_turns": 42,
    6. "tool_calls": {"total": 96, "failed": 3, "retried": 3},
    7. "context_tokens_used": 152000,
    8. "full_reruns": 0,
    9. "artifacts": ["code", "screenshots", "logs", "review", "metrics"]
    10. }

    4. Engineering Recommendations

    Based on the observations above, here are several recommendations for using lightweight models to drive agents in real production environments:

    • Classify failures instead of retrying uniformly. Distinguish among “model output errors” (which should be self-repaired by the model), “tool/service exceptions” (which should be retried with backoff), and “context overflow” (which should be handled by compressing history before continuing). Using the same policy for all three types is the root cause of incidents such as 85 retries.
    • Move acceptance earlier into the process. Do not wait until the end to run acceptance scripts. Perform local validation after each completed state, which can downgrade a “full rerun” to a “single-step rollback.”
    • When selecting models, run your own tasks rather than relying only on leaderboards. The same model can perform very differently under different task structures. Running a single-variable comparison like the one in this article on your own typical tasks costs far less than encountering problems after launch.
    • In enterprise scenarios, combine model services provided by cloud vendors with general capabilities such as logging, monitoring, and alerting to continuously observe agent call chains, retry rates, and token consumption. Turn a one-off comparison into an ongoing quality baseline.

    Conclusion

    All four models delivered, but between 17 minutes and 85 retries lies a combined gap in planning ability, tool-call reliability, and context engineering. For developers, the core question in model selection should not be “which model has higher scores,” but “under my task, my framework, and my budget, which model has the healthiest process metrics.” Moving evaluation from result screenshots back to the execution process is the first step toward mature agent engineering.