AI Agent Model Selection and Reliability Evaluation on a Constrained Budget

    This article explains how to evaluate models for AI agents when the goal is not a single-turn chat answer but a controlled execution loop. It covers budget allocation for bounded experiments, task sets that reflect real workflows, metrics based on accepted tasks, token-consumption diagnosis, skill discoverability, execution-layer authorization, and long-running system requirements. The aim is to help teams compare configurations by effectiveness, reliability, and economics, and to choose a system that fits explicit permissions, verifiable outcomes, and a controlled budget rather than an abstract notion of the strongest model.

    1. From “Which Model Is Stronger?” to “Which System Is More Effective?”

    Choosing a model for an AI agent is not the same problem as choosing a model for a chat assistant.

    Chat scenarios mainly test whether an answer is accurate and clearly expressed. An agent must continuously complete an execution loop: understand the goal, read the environment, form a plan, call tools, check results, and revise the plan. The model must not only produce correct answers. It must also maintain state across multiple steps, obey permission constraints, and decide when to continue, when to stop, and when to request human confirmation.

    A strong single-turn question-answering capability therefore does not guarantee that a model is suitable for long-running tasks. A good one-off code generation result does not prove that the model can reliably handle dependency relationships, test failures, and file modifications in an existing project.

    Under a budget in the thousand-yuan range, the real optimization target is not the model’s nominal capability ceiling. It is the following three objectives:

    • Effectiveness: whether the task meets predefined acceptance criteria.
    • Reliability: whether execution is controllable and traceable, and whether the system can recover after failure.
    • Economics: how much cost and time are required to complete one qualified task.

    These objectives often constrain one another. Longer reasoning may improve success rates on complex tasks, but it may also increase latency and cost. More tool calls may supply necessary information, but they may also create ineffective loops. The core of model selection is to find a system configuration that satisfies business constraints, not to set every capability to its highest level by default.

    2. Define the Evaluation Target: Model Performance Is Not Agent Performance

    An agent’s actual performance is affected by at least four categories of factors:

    1. The model’s ability to understand, plan, and correct errors.
    2. The quality of tool descriptions, return formats, and error messages.
    3. The organization of skill documentation and environment information.
    4. Scheduling, permission, budget, and state-management mechanisms.

    If an agent does not read local skill instructions, the cause may be that the model did not follow instructions. It may also be that the skill entry point was not explicitly exposed, the path was inaccessible, or the tool return was truncated by the context.

    If an agent performs a high-risk operation without confirmation, this should not be attributed only to insufficient “security awareness” in the model. A more fundamental problem may be that the execution layer allows the model to call destructive tools directly and does not enforce a non-bypassable authorization gate.

    Therefore, it is advisable to split evaluation into two layers:

    The first layer is controlled capability testing. Provide the same input materials, tool set, execution permissions, and output requirements, then compare understanding, planning, tool invocation, and error-correction capabilities.

    The second layer is system-fit testing. Validate skill discovery, state preservation, permission approval, timeout handling, and failure recovery in a real environment.

    The results of the two layers should be recorded separately. Otherwise, differences caused by inconsistent tool configuration can easily be misread as differences in model capability.

    3. How to Allocate a Thousand-Yuan Budget Meaningfully

    The value of a fixed budget is that it constrains the test scope and forces evaluators to focus on return on investment. It is not meant to prove that a particular model is “the most cost-effective.”

    One practical budget arrangement is to divide the total into four parts: environment validation, formal testing, retesting, and contingency reserve. For example, use a small portion to check tool availability, invest the main portion in a standard task set, and reserve space for failure reproduction, configuration adjustments, and unexpected consumption. This is an experimental design recommendation. It does not represent the actual price or billing rules of any service.

    Before formal testing begins, complete the following preparations:

    • Fix the task set, input files, and acceptance criteria.
    • Save an initial snapshot of the test environment.
    • Limit the maximum cost, runtime, and execution steps for each task.
    • Standardize tool permissions and accessible directories.
    • Record model configurations and available reasoning options.
    • Prohibit different test tasks from sharing undeclared answers or historical state.

    Do not let all candidate configurations use the highest reasoning intensity unconditionally. If a service provides different reasoning options, observe the gains from standard and enhanced configurations separately: whether success rates improve, whether the additional cost is worthwhile, and whether latency still meets business requirements.

    For simple file organization or explicit rule validation, enhanced reasoning may provide no clear benefit. For complex fault localization and multi-constraint modifications, additional compute may be worthwhile. Conclusions must come from task data, not from configuration names.

    4. Build a Task Set That Covers Real Workflows

    Testing only “generate a page” or “write a function” is unlikely to cover the main risks of an agent. A more complete task set should include the following types.

    4.1 Development Tasks with Clear Acceptance Criteria

    Provide a small project and ask the agent to fix a defect, add tests, and leave unrelated files unchanged. Acceptance should check not only the final test result but also whether the scope of modification matches the requirements.

    This type of task can reveal whether the model understands the requirement, reads relevant files first, and verifies its changes after editing.

    4.2 Troubleshooting Tasks with Incomplete Information

    Provide log excerpts, error symptoms, and limited environment information, then ask the agent to investigate step by step rather than guess immediately.

    Focus on whether it prioritizes low-cost, high-information-gain checks; whether it distinguishes facts from assumptions; and whether it clearly states uncertainty when evidence is insufficient.

    4.3 Local Skill Discovery Tasks

    Place skill instructions in an accessible directory and ask the agent to complete an operation according to those instructions.

    This type of task should separately verify whether the agent finds the entry point, reads the content, understands the applicable conditions, and executes within the constraints. Simply “finding the file” does not mean the skill was invoked successfully.

    4.4 High-Risk Operation Tasks

    Design simulated tasks involving data deletion, permission changes, or external publication, and check whether the system triggers an authorization process before execution.

    Testing should preferably be completed in an isolated environment with recoverable data. Do not create real losses merely to validate security.

    4.5 Long-Horizon and Recovery Tasks

    Ask the agent to process multiple related steps in sequence, and simulate tool timeouts, process interruptions, or incomplete output midway.

    The key question is whether it can continue from a confirmed state instead of repeating all operations, and whether it can distinguish “not yet executed” from “executed but no result received.”

    5. Establish Metrics Based on Valid Tasks

    Unit call price reflects only local cost and cannot directly explain overall economics. At a minimum, record the following metrics:

    Metric What It Measures Interpretation Notes
    Task success rate The proportion of tasks that meet all acceptance criteria Partial completion should not be counted directly as success
    Average cost per successful task Total test cost divided by the number of successful tasks Should include failure, retry, and recovery costs
    End-to-end latency Time from task receipt to passing acceptance Should not count only model response time
    Effective tool-call ratio The proportion of calls that materially advance the task Requires log analysis or sample review
    Human intervention count The number of times humans supplement, correct, or recover Normal approvals and abnormal rescue should be separated
    Unauthorized execution count The number of executions that did not meet authorization conditions Average quality cannot offset security violations

    A practical cost definition is:

    Average cost per successful task = total actual cost during the test period ÷ number of tasks that pass acceptance.

    If no task succeeds, mark the result as “no valid task completed in this round” rather than reporting a seemingly comparable finite cost.

    For production systems, also distinguish normal confirmation from abnormal intervention. Requesting approval before a high-risk operation is behavior that matches the design. Needing humans to reorganize context because state was lost is a reliability problem.

    6. Investigate Token Consumption Through Traces Before Drawing Conclusions

    High token consumption does not necessarily mean the model is inefficient. Complex tasks may genuinely require reading more materials, expanding more reasoning, and performing multiple rounds of verification. However, if increased consumption does not improve success rate or quality, check whether the execution process contains waste.

    Common causes include:

    • Resending the complete history every round.
    • Tool returns containing large amounts of task-irrelevant logs.
    • Repeatedly reading files that have already been confirmed.
    • Continuously retrying the same failed operation.
    • Lacking clear completion conditions, so the agent keeps exploring after finishing.
    • Skill documentation being too long and being fully injected on every call.

    Break consumption down into model input, model output, and other metered items actually provided by the service, and interpret it together with the call trace. Different services may use different billing definitions. A single token count cannot be used to directly infer cost.

    For optimization, consider the following methods first:

    Compress tool returns. For large files, return a directory, summary, or relevant excerpt first, then expand on demand.

    Save structured state. Explicitly record completed steps, verified facts, pending questions, and the next action to reduce repeated investigation.

    Set stopping conditions. End when acceptance criteria are met. When the same error occurs repeatedly, trigger diagnosis or human intervention instead of retrying indefinitely.

    Allocate resources by difficulty. Use standard configurations for tasks with explicit rules, and add compute only for complex reasoning tasks.

    Note that context compression must not lose critical constraints. Authorization scope, data sensitivity level, immutable files, and executed actions should be retained as persistent state.

    7. Make Skills Discoverable, Understandable, and Executable

    The existence of local skill documentation does not mean an agent will automatically use it. A reliable skill mechanism needs an explicit discovery entry point.

    Each skill description should include at least:

    • Applicable tasks and non-applicable situations.
    • Prerequisites and required permissions.
    • Input requirements and result format.
    • Recommended execution order.
    • Verification method and completion conditions.
    • Common failure causes.
    • Risk warnings and recovery methods.

    To reduce context burden, use a “skill index plus on-demand reading” approach. The index should describe only the skill’s purpose and loading location. After the agent selects a skill, it reads the detailed instructions.

    Instructions in skill documents must also obey system permission boundaries. Content from files, web pages, or tool returns should be treated as task data or restricted guidance. It must not gain higher privileges merely because it says “skip approval.”

    When testing the skill mechanism, also check document versions, access paths, and read results. Otherwise, a skill invocation failure may be only an environment configuration issue but be incorrectly attributed to the model.

    8. Security Controls Must Live in the Execution Layer

    Prompting a model to “ask before dangerous operations” is helpful, but it cannot be the only line of defense.

    A more reliable architecture is: the model submits an operation intent, the policy layer assesses risk, and the execution layer handles only actions that already satisfy authorization conditions.

    A generic execution flow can be represented as:

    1. Receive an operation request
    2. Check the target resource and allowed scope
    3. Determine the risk level of the action
    4. If approval is required and no valid authorization has been obtained:
    5. Pause execution and submit an approval request
    6. If the permission check fails:
    7. Reject execution and record the reason
    8. Otherwise:
    9. Execute in a restricted environment
    10. Save the result and audit record

    Approval information should be bound to a specific action, target resource, and validity period, so that one broad confirmation cannot be reused for later unrelated operations.

    For actions such as deletion, overwriting, and publication, provide preview, backup, or rollback mechanisms where possible. Before an agent reports “operation successful,” it must read the execution result and complete necessary verification. It cannot declare completion merely because a call was sent.

    9. Long-Running Operation Depends on Systems Engineering, Not Model Promises

    Whether an agent can keep working depends not only on model performance but also on service rate limits, network conditions, context capacity, process stability, and quota management.

    Production environments should include:

    • Checkpointing: save state after key steps are completed.
    • Bounded retries: limit retry counts and distinguish retryable from non-retryable errors.
    • Idempotency control: prevent duplicate requests from producing duplicate side effects.
    • Budget alerts: pause, degrade, or request confirmation when approaching task limits.
    • Execution isolation: restrict access to files, networks, and sensitive resources.
    • Audit records: save plans, calls, approvals, and verification results.

    Pay particular attention to timeout scenarios: a call timeout does not mean the operation did not happen. For tasks with side effects, query the actual state first, then decide whether to retry.

    10. Final Selection: Find the Right Combination, Not a Single Strongest Model

    In real business systems, a single model does not necessarily need to handle all work. Layered handling can be used according to task difficulty: simple classification and rule checks can be assigned to lightweight configurations, complex planning to stronger reasoning configurations, and deterministic operations to controlled execution programs.

    However, layered scheduling also increases the complexity of state transfer, permission inheritance, and problem localization. This design is valuable only when the saved cost or improved success rate exceeds the additional engineering burden.

    The final decision should follow three principles:

    First, security violations cannot be offset by better answer quality.

    Second, cost comparisons must be based on the same acceptance criteria.

    Third, conclusions apply only to the tested tasks, environment, and configurations. They cannot be directly extrapolated to all business scenarios.

    A budget in the thousand-yuan range is enough to support one bounded screening experiment, but not enough to prove long-term stability. A more reliable path is to use a standard task set to eliminate clearly unsuitable configurations, then validate execution traces through small-scale real tasks, and gradually expand the scope of use.

    What matches an agent is not an abstract “strongest” model. It is an overall system that can continuously complete business tasks under explicit permissions, verifiable results, and a controlled budget.