Agent Model Selection in Practice: The First Test When Swapping Models in the Same Framework
Benchmark scores are easy to find, but they offer limited guidance for Agent model selection. What developers actually need to know is whether a model can run stably inside an Agent for long periods, recover from errors, and how many tokens each task consumes—questions that single-item benchmarks rarely cover. Using a single Agent framework with everything else held constant, this article reports a controlled test across three models, covering Skill packaging quality, adherence to confirmation requirements for high-risk operations, local Skill recognition, and token consumption, along with practical selection advice.
In today’s environment of rapid LLM iteration, benchmark scores are the easiest metric to obtain, but they offer limited reference value for Agent selection. The questions developers actually care about are: Can the model run stably inside an Agent over long periods? Can it recover after making mistakes? How many tokens does each task consume? Single-item benchmarks rarely cover these. To answer them, I ran a controlled variable test using the same framework, and I’m documenting the process and its limitations clearly so readers can judge whether the conclusions transfer to their own scenarios.
1. Test Design
This test was based on a general-purpose Agent framework built in-house. Three agent instances shared identical system prompts, history memory stores, callable tools, and preset skills. The only variable was the underlying model. The three models are anonymized as A, B, and C. Specific version numbers and inference parameters are not disclosed, because some parameters changed during the test period and reproducibility cannot be guaranteed.
One clarification: an earlier draft described a model count inconsistent with what was actually integrated. This article reflects the three models actually used; the earlier “four instances” wording is no longer valid.
The top-tier flagship model of a well-known closed-source vendor was not included. Such models carry high API costs and limited quotas, making it hard to sustain long-running, high-concurrency Agent tasks. This was a budget and quota decision, not a judgment on that model’s capability.
The test focused on four dimensions: Skill packaging quality, adherence to secondary confirmation for high-risk operations, recognition and invocation of local Skills, and token consumption. Tokens were counted per task as input plus output, with steps, retries, and human interventions also logged. No unified aggregated figures are provided in this article; related conclusions are qualitative only.
2. How the Three Models Performed
Model A is a multimodal model that recently updated its image recognition capability, with a parameter count notably larger than its previous generation. Two issue types appeared in community feedback, and similar behavior was observed in this framework. First, the model failed to recognize locally preset Skills, breaking the call chain. Second, before high-risk operations like deleting files or modifying system configurations, it did not perform the secondary confirmation required by the system prompt. Feedback also noted its token consumption was noticeably higher than typical mid-tier models. These observations need more repeated testing to confirm.
Model B stands out in coding, performing close to top-tier models on programming benchmarks. However, feedback indicates it burns through resources quickly—one user reported that a coding task of roughly 5 minutes consumed half of a monthly quota. For Agents that need to stay resident for long periods, estimate quota consumption before deployment.
Model C has a mature open-source ecosystem, ships with a command-line tool, and supports multimodal generation including video, music, and speech synthesis. Quotas for these capabilities are calculated separately from text inference. It removes the need to integrate complex Model Context Protocol setups, keeping onboarding costs low.
3. Stage One: Skill Packaging and Structured Documentation
Stage one required each model to turn a design-oriented system prompt into a publishable, directly loadable Skill definition. It looks like simple text organization, but it actually tests instruction abstraction. If a model cannot convert experience into structured, verifiable specifications, deviations will accumulate in later web development and browser automation tasks.
In the original draft, the Skill example contained only natural-language steps, missing fields for types, required values, error codes, and permissions, so the framework could not parse it directly. The improved structure is as follows:
{"skill_name": "design_prompt_packager","version": "1.0.0","description": "Decompose design-oriented system prompts into verifiable, reusable skill definitions","input_schema": {"raw_prompt": {"type": "string", "required": true, "max_length": 20000},"target_platform": {"type": "string", "required": true, "enum": ["web", "ppt", "generic"]}},"output_schema": {"skill_definition": {"type": "object", "required": true},"warnings": {"type": "array", "items": "string", "required": false}},"preconditions": ["raw_prompt is non-empty and does not exceed max_length","target_platform is within the enum list"],"execution_steps": ["1. Parse the goals, roles, and constraints of the raw prompt","2. Extract variables; flag hardcoded paths, secrets, and personal information","3. Generate the skill definition according to input_schema and output_schema","4. Validate the output for JSON syntax and field types"],"error_handling": {"E001": "Empty input; return a parameter error and skip subsequent steps","E002": "Prompt exceeds length limit; prompt the user to submit in segments","E003": "Output fails schema validation; retry once, then escalate to a human"},"timeout_seconds": 120,"permissions": {"file_read": false, "file_write": false, "network": false},"confirmation_required_when": ["Output contains instructions to delete, overwrite, or modify system configuration","Prompt contains suspected secrets or local sensitive paths"],"risk_self_check": ["Could excessive context length trigger token truncation","Are there recursive instructions that could cause infinite loops"]}
In this structure, input_schema declares the type and required flag for each field; error_handling defines how exceptions are handled; timeout_seconds caps execution time, returning partial results on timeout; permissions disables file writes and network access by default, to be enabled explicitly only when needed; confirmation_required_when lists conditions that trigger human confirmation; and risk_self_check flags potential risks—it cannot replace real validation, and the framework still must check parameters and permissions before execution.
In observation, stronger models filled in field types and pointed out that excessive context length could cause token truncation. Weaker models simply placed the raw prompt into a single field without completing the decomposition. Each model completed this task only once, so the sample is very small; the descriptions above are qualitative observations, not scored results.
4. Upcoming Stages
This article only reports stage one results. The designs for the remaining four stages are below; no data exists yet:
- Stage two, web development: coherence from requirements to runnable front-end code, plus the ability to debug broken code.
- Stage three, PPT design and copywriting: balancing multimodal output against long-form text generation.
- Stage four, knowledge base management: document chunking, vectorization, and retrieval accuracy in RAG scenarios.
- Stage five, browser automation: expected to be the most token-intensive stage. The model must parse the DOM tree, perform clicks, scrolling, and input, and recover after operational mistakes.
5. Conclusions and Selection Advice
The observations support three judgments, all built on a limited sample.
- Test framework protocol compatibility first. Whether a model can recognize local Skills and stop for confirmation before high-risk operations directly determines whether the Agent can go live.
- Measure token efficiency per task. Log input tokens, output tokens, steps, retries, and human interventions on every run before comparing costs. A low unit price does not mean a low total cost.
- Tool ecosystem onboarding costs affect development timelines. The more tools that can be invoked directly, the fewer framework changes required.
On safety: Agents involving file deletion, system configuration changes, or browser automation should run in a sandbox with least-privilege credentials, human approval for high-risk operations, backups before execution, and a rollback path. The permission configurations used in this test should not be applied to production environments as-is.
Before selecting a model, run the same controlled variable test against your own tasks. How a model performs in a real workflow says more than any benchmark score.
