Multi-Model Agent Selection: A Reproducible Five-Stage Evaluation Framework

    This article describes a controlled-variable framework for comparing language models in agent projects. It covers how to build identical agents that differ only in their underlying model, which metrics to record, how to design five tasks of increasing difficulty, how to calculate a combined score from success rate and cost, and which failure modes to monitor. The framework does not rank specific models. It helps readers run their own tests and interpret the results.

    Introduction

    Many agent projects choose models based on impressions. Some teams switch to a model because its advertised benchmark scores are high, only to find that tool calls fail frequently. Others pick a model because its unit price is low, then discover that token consumption in long tasks far exceeds their estimates. Selection problems often share one cause: the tests were not run under consistent conditions.

    This article presents a controlled-variable evaluation framework. It does not provide a general ranking. Instead, it explains how to design the tests, which metrics to track, and how to calculate results. The four candidate models are labeled A, B, C, and D. Readers should replace these labels with the specific models and versions they are evaluating in their own environment.

    Evaluation Method: Change Only the Model

    The core of the evaluation is controlling variables. Build four identical agent instances that use the same memory records, the same tool definitions, the same skill packages, and the same system prompt. The only difference is the underlying model. This way, differences in task results can be attributed to the models themselves.

    Before the experiment starts, record the following:

    • Test date and model version number
    • Inference mode and related parameters, such as temperature and maximum output length
    • Version identifiers for the tool set and skill packages
    • Number of repetitions for each task. At least three is recommended. Record both the success rate and the distribution of results.
    • Success criteria written as conditions that a script can check, rather than scores based on impressions
    • Cost basis, including input, output, and cache-hit token counts, converted using the same price table

    Without these records, conclusions cannot be reproduced or compared with other people’s results.

    Five-Stage Task Design

    The five tasks are ordered from easy to hard. The output of one stage can serve as the input to the next, simulating a real agent workflow.

    Stage 1: Skill Packaging

    Give the model a long prompt document that contains design specifications, and ask it to organize the content into an installable skill package. This stage tests information structuring ability. A good skill package has clear input and output definitions, extracts variables such as output format and style preferences into parameters, and includes error-handling logic. For example, it should specify how to truncate input that exceeds the context window.

    Metrics include the size of the skill package, the degree of parameterization, and whether the package passes a self-check script after installation. Some models keep large amounts of the original description. This makes the skill package bloated and increases the context cost of every later call.

    Stage 2: Web Development

    Given a product description, the model must generate a complete web page with interactive features. The evaluation focuses on requirement understanding and code maintainability. Weaker models often generate pages that look complete but have buttons that do not respond. Stronger models implement state switching and data binding, and they proactively split the page into components.

    This stage checks three things: whether the page opens correctly in a browser, whether the interactions pass click-based verification, and whether the code structure has obvious problems. Line count alone does not indicate code quality. A high line count may mean redundancy, and a low count may mean missing features. Judge the result against a feature checklist.

    Stage 3: Presentation Generation

    Given a topic, the model must produce an outline with a clear thesis and write speaker notes for each slide. Most models can find supporting material in a local knowledge base, so retrieval is usually not the bottleneck. The differences mainly appear in narrative logic: whether each slide connects to the next, whether the conclusion comes first, and whether the structure is complete.

    This stage is a good place to add a content review node to the agent. The review node reads the draft, checks whether each slide’s argument is supported and whether the transitions are natural, and then sends revision suggestions back to the generating model.

    Stage 4: Knowledge Base Retrieval

    Simulate a local knowledge base that contains a large volume of customer communication records. The model must run targeted retrieval for a specific question and output a structured report. As the data volume grows, the model’s ability to allocate attention is tested. For questions that involve multi-turn conversation history, some models cite irrelevant historical records and confuse memory.

    This suggests that agent developers should not rely entirely on the model’s native memory. External retrieval is a safer approach. The steps include splitting text into chunks, generating vector embeddings, retrieving the top-K candidates, scoring candidates by relevance with a reranking model, and setting a score threshold. When scores fall below the threshold, the system should return “not found” instead of forcing an answer.

    Stage 5: Browser Automation

    Give the model a business process that requires logging in, paging through results, and filling out forms. The model must complete the process by operating a browser through an agent framework. This stage is the most sensitive to cost.

    Log analysis shows that the main source of cost differences is plan redundancy. Some models first generate detailed plans with many irrelevant steps, then frequently revise the plan during execution. Each replanning consumes a large number of tokens. By contrast, better-performing models produce short execution sequences and make local corrections when errors occur.

    When evaluating this stage, track the completion rate, the average number of steps, the number of replanning events, and the total token count together. Looking only at unit price does not show the real cost.

    Calculating the Results

    Selection should not rely on a single metric. It is recommended to combine the success rate per task with the cost per call:

    Composite score = 0.6 × success rate + 0.4 × (1 − normalized cost)

    Normalized cost is each model’s cost per call divided by the highest cost among all candidate models. The weights 0.6 and 0.4 are examples only. Adjust them based on how much the project values quality and how much it values budget. If the project has a low tolerance for failure, increase the weight of the success rate.

    Pay attention to sample size. When each task is repeated too few times, fluctuations in the success rate may exceed the real differences between models. In that case, state that the difference is not significant instead of forcing a ranking.

    Common Failure Modes

    Across the five stages, the following problems appear often. Use them as a checklist:

    1. Tool name hallucination: calling a tool that does not exist, or using parameter names that do not match the definition.
    2. Format parsing failure: when JSON output is required, the response includes extra explanatory text, which breaks parsing.
    3. Missing confirmation for high-risk actions: operations such as deleting files or submitting forms run without a second confirmation.
    4. Context copying: when processing long text, the model repeats the original content word for word, and the token count grows quickly.
    5. Repeated plan revisions: the model overturns its existing plan several times during execution.
    6. Memory confusion: the model retrieves historical records with low relevance and answers based on them.

    For each failure type, set a matching monitoring metric, such as the parsing failure rate, a cap on retry counts, or a token budget per call.

    Selection and Architecture Recommendations

    Based on the tests above, there are several practical recommendations.

    First, if an agent calls external tools frequently, prioritize models with stable instruction following and consistent output formats. Also validate parameters strictly in code.

    Second, long-context capability does not equal efficiency. Enable context compression or key-information extraction, and set a token budget for each task. When the budget is exceeded, the workflow should pause and request human confirmation instead of continuing to consume quota.

    Third, for coding assistant agents, consider a hybrid architecture in which a strong model handles planning and a lightweight model handles summarization. The planning model sets the direction, and the computation-heavy steps go to the lower-cost model. A hybrid architecture requires additional testing of the handoff quality between the two models, so that the summarization model does not drop constraints from the plan.

    Fourth, handle high-risk operations in deterministic code instead of leaving the decision to the model. The model can suggest actions, but rules or a human should confirm them before execution.

    Reproduction Steps

    1. Fix the model version, parameters, and test date, and write them into the test record.
    2. Build identical agents, changing only the underlying model configuration.
    3. Prepare input data and judgment scripts for the five tasks.
    4. Run each task repeatedly, and record successes, failure causes, and token usage.
    5. Calculate the success rate, cost per call, and composite score, and note the sample size.
    6. For models with small differences, run additional tests, or treat them as having no significant difference.

    Limits of the Conclusions

    The value of this framework is that it makes the selection process inspectable and reproducible. Models A, B, C, and D are not ranked here, because results may change across versions, parameters, and tasks. Readers should run a complete test round in their own business scenarios before choosing a model. The most suitable model is the one that can reliably complete the full workflow within the cost constraints that apply.