Why AI Agents Are Hard to Use: Evaluating Capabilities and Improving Engineering Reliability
AI agents can produce fluent answers yet still fail at planning, tool use, state management, error recovery, and result verification. This article explains the main failure patterns, proposes a task-oriented evaluation framework, and outlines engineering practices for improving reliability through clear contracts, constrained workflows, budgets, permissions, and evidence-based delivery. It also provides a practical method for determining whether a problem requires a better model or a better system.
1. Why Models That “Can Answer” Are Not Always Reliable at Tasks
Large language models that perform well in knowledge-based question answering may behave unpredictably when integrated into an agent system. A task may be relatively simple, yet the agent keeps adding irrelevant steps. It may continue following an original assumption after a tool has returned a clear error, announce that the work is complete before performing verification, or modify unrelated content while attempting to fix a local issue.
These behaviors reflect an important fact: language generation ability and agent execution ability are related, but they are not equivalent.
A conventional conversation usually requires the model to generate a reasonable response based on the input. An agent task requires the model to participate continuously in an action loop:
Understand the goal → create a plan → select tools → perform actions → read feedback → adjust the strategy → verify the result.
A deviation at any stage can affect the final delivery. Even if a model can accurately explain a technical topic, it may still fail to use tools correctly in a complex environment, preserve intermediate state, or recover after an interruption.
Therefore, before asking whether a model is “good,” it is necessary to define what is being evaluated: the quality of a single response or the reliability of complete task execution. Without this distinction, developers may mistake fluent language for mature operational capability.
2. Model Size and Version Iterations Do Not Prove Execution Ability
2.1 General capability sets an upper bound, but does not guarantee reliable delivery
A stronger foundation model will often be better at understanding complex requirements, analyzing code, and processing long documents. However, an agent system also requires the ability to follow operational constraints, call tools accurately, recognize execution failures, and stop when necessary.
These capabilities do not automatically mature as model size increases.
For example, a model may know that code should be tested after modification, but skip testing in practice because it wants to provide an answer quickly. It may understand what a tool does, yet supply parameters that are not supported by the available evidence. These problems are not simply knowledge gaps. They may also involve action strategy and the ability to use feedback effectively.
Parameter count, infrastructure investment, and context capacity can provide useful background information, but they should not replace task-based evaluation.
2.2 More iterations may help, but the number of versions is not evidence
Improving agent capability often requires continuous optimization based on real or simulated execution traces. This includes tool use, error recovery, task termination, and result verification.
Useful training and evaluation data should include more than successful examples. They should also cover:
- How to adjust after a tool returns an error;
- How to ask for clarification when information is insufficient;
- How to stop when repeated attempts make no progress;
- How to request authorization when an action involves risk;
- How to hand off a task accurately when it cannot be completed.
However, it is not valid to conclude that a model must be stronger simply because it has gone through more iterations. Different iterations may focus on knowledge, communication, speed, or execution. A version name alone does not indicate what was improved.
Likewise, an execution problem in one version does not guarantee that a later version will solve it. Any improvement should be verified through a fixed task set, a controlled environment, and repeated experiments.
3. Four Common Categories of Agent Failure
3.1 Goal drift: turning the user’s request into a different task
A user may ask only for a fix to an input-validation issue, while the model also changes the directory structure, rewrites a shared module, or alters existing interface behavior. Although such actions may appear proactive, they expand the change scope and increase regression risk.
The underlying causes may include unclear goal constraints, insufficient awareness of minimal changes, or a lack of system-level restrictions on the modification scope.
A better approach is to define what may be changed and what must remain unchanged, and require the model to describe the change boundaries before execution. For high-risk tasks, an operation allowlist should be used rather than relying only on natural-language instructions.
3.2 Tool misuse: knowing that a tool exists without using it correctly
Common problems include incomplete parameters, incorrect targets, executing an operation before its prerequisites are met, and treating text returned by a tool as proof that the operation succeeded.
Reliable tool use requires at least three conditions:
First, the tool description must be clear, with explicit parameter meanings and constraints. Second, the result must distinguish success, failure, and partial completion. Third, the model must be able to update its judgment based on the result.
If a tool returns only an ambiguous error message, the model is more likely to fill in missing facts on its own. Tool interface design is therefore part of agent reliability.
3.3 State distortion: forgetting what has already happened
During long tasks, a model may repeatedly read the same material, execute completed steps again, or confuse “ready to execute” with “already executed.”
This cannot be solved simply by expanding the conversation history. The system should maintain structured task state, including:
- Confirmed requirements and constraints;
- Actions already performed and their results;
- Objects that have been modified;
- Assumptions that remain unverified;
- The current blocking issue;
- Actions that are allowed next.
It is especially important to distinguish model inferences from external observations. Inferences can help determine the next plan, but they cannot serve as final evidence.
3.4 Missing verification: replacing completion with explanation
Saying “I fixed it” does not mean that the problem has actually been resolved. If an agent has not inspected the output, run tests, or read execution results, it can only claim that it attempted an operation.
Verification criteria should come from outside the model whenever possible. A file-processing task should check whether the output exists and whether its format is valid. A code modification task should check relevant tests and the scope of the changes. A data-analysis task should verify that the statistical definitions and calculations are consistent.
For tasks that are difficult to verify automatically, manual sampling can be introduced. The central principle is: completion must be supported by evidence, not announced by the model itself.
4. Build an Evaluation System for Real Tasks
4.1 Design tasks around real business work units
Evaluation should not test only whether a model can explain a concept. It should cover complete workflows from real work, such as:
- Applying a targeted change based on explicit requirements while verifying that existing behavior has not been broken;
- Extracting facts from multiple sources and marking conflicting information;
- Retrying reasonably or reporting a blocker when a tool is temporarily unavailable;
- Requesting missing information when a task lacks necessary conditions;
- Stopping instead of attempting to bypass restrictions when an operation exceeds the available permissions.
The task set should include both normal paths and edge cases. Testing only smooth completion paths will overestimate actual system stability.
4.2 Response quality should not be the only metric
At minimum, evaluation should consider the following dimensions:
Task success rate: Whether the final output meets predefined acceptance criteria.
Tool-call effectiveness: Whether each call was necessary, whether its parameters were correct, and whether its result was used appropriately.
Invalid action ratio: The proportion of repeated queries, meaningless retries, or modifications unrelated to the goal.
Failure recovery capability: Whether the agent can adjust its strategy and continue after a recoverable error.
Constraint compliance: Whether it exceeds permissions, expands the scope, or performs unauthorized actions.
Total delivery cost: Model calls, tool execution, waiting time, human review, and rework required to complete the task.
These metrics must be interpreted in the context of business risk. For high-risk operations, a single unauthorized action may be more serious than several ordinary task failures. Such failures should not simply be averaged away.
4.3 Control variables to avoid misleading comparisons
When comparing models or configurations, keep the task, prompt, tool permissions, execution environment, and budget as consistent as possible. If one system has clearer tool documentation or more opportunities to retry, the result cannot be attributed entirely to model capability.
Large-model outputs also vary between runs. Important tasks should be executed multiple times, with the full execution traces retained. Failure cases are particularly valuable because they reveal whether the system failed during understanding, planning, execution, or verification.
5. Engineering Optimization Should Reduce Degrees of Freedom Before Increasing Prompt Length
5.1 Convert vague requirements into verifiable contracts
Instead of asking an agent to “do the task well,” define the inputs, outputs, constraints, and acceptance criteria.
For example, a modification task might specify that the agent must address only the stated issue, must not change public behavior, must run relevant verification after the change, must explain why verification was impossible if necessary, and must list the modifications and supporting evidence in the final report.
Such a contract transforms open-ended generation into a more clearly bounded execution process. However, a contract cannot replace access control. Sensitive operations still require system-level restrictions.
5.2 Use fixed workflows for deterministic steps
Not every step requires autonomous model planning. Deterministic checks—such as whether a file exists, whether required fields are present, or whether an output matches a format—are usually better handled by software.
Models are suitable for semantic understanding, option selection, and explaining anomalies. Programs are suitable for applying explicit rules. Combining the two is often more reliable than allowing the model to explore freely from start to finish.
For stable processes, use a fixed workflow and delegate only decision points to the model.
5.3 Set budgets, stop conditions, and escalation paths
An agent must know when to stop. Depending on the task, set a total step budget, a tool-call budget, and a limited retry count. The system should also detect repeated failures without progress.
When a stop condition is reached, the system should provide handoff information: what has been completed, what remains unfinished, where the blocker is, and what permissions or inputs are needed. It should not hide failure to improve apparent completion rates, nor retry indefinitely.
5.4 Use layered permissions and risk confirmation
Reading information, generating a draft, modifying files, and performing irreversible operations should not require the same level of authorization.
In practice, low-risk actions can be automated, broader modifications can be routed through a review process, and actions such as deletion, publication, or external submission can require human confirmation. Permission controls must be enforced at the execution layer so that a block of text cannot grant the model capabilities beyond what the task requires.
6. How to Decide Whether to Change the Model or the System
When execution quality is poor, investigate the problem in the following order:
First, check whether the task is clear and whether the acceptance criteria are executable. Next, verify that tool descriptions, error messages, and state records are complete. Then inspect execution traces to determine whether the model can understand feedback and adjust its actions. Finally, change the model or configuration and run another evaluation while keeping other conditions consistent.
If failures are concentrated in ambiguous tool interfaces, missing permissions, or unclear acceptance criteria, improving the system is usually more effective.
If the interfaces are clear, the environment is stable, and the budget is reasonable, yet the model continues to enter incorrect parameters, ignore feedback, or fabricate results, there is stronger evidence that it is unsuitable for the task.
Price should not be treated as a standalone measure of capability. Low per-call cost does not imply weak execution capability, and high per-call cost does not guarantee reliable delivery. A more meaningful comparison is the total cost of completing one qualified task, including human takeover and rework after failures.
7. Conclusion: Evaluate Closed-Loop Delivery, Not Impressions
Agent evaluation should go beyond whether a system appears intelligent in conversation or feels difficult to use. The key questions are whether it can take the necessary actions within clear boundaries, revise its judgment based on feedback, prove its results with inspectable evidence, and stop safely when it cannot complete the task.
Model optimization, tool design, state management, and verification mechanisms jointly determine the final user experience. Developers should not blame every failure on the model, nor expect engineering wrappers to completely compensate for insufficient execution ability.
A more practical approach is to define the task and acceptance criteria first, establish an evaluation baseline, use failure traces to locate problems, and improve each component systematically. Ultimately, success rate, risk, and total cost—not subjective impressions—should determine whether an agent system is truly usable.
