AI Coding Agents: Why Behavior Differs with the Same Model
AI coding agents can produce different results even when they use the same underlying model. This article explains how workflow design, tool permissions, context management, and fallback strategies affect execution, and outlines a reproducible approach to evaluating speed, accuracy, and control.
As enterprises integrate AI coding agents into everyday development, one important distinction is easy to overlook: using the same underlying model does not guarantee the same task performance.
Consider an information retrieval task such as “Find yesterday’s AI industry news and summarize the key points.” Some agents finish in similar timeframes with similarly structured results. Others report that no information is available. Still others repeatedly request approval before accessing external information, increasing total completion time even when the final output is usable.
These differences arise not from the model parameters themselves, but from how each agent organizes model capabilities into an executable workflow.
1. Separate Model Capabilities from Agent Behavior
The underlying model largely determines the limits of language understanding, summarization, synthesis, and reasoning. The coding agent translates user intent into operational steps: whether to search, which sources to use, how to construct queries, when to request permission, whether to change strategy after failure, and how to format the final response.
Evaluation should therefore distinguish model response quality from agent execution quality.
Response quality includes factual coverage, accuracy, and clear organization. Execution quality includes latency, interaction count, failure rate, repeatability, and permission boundaries.
Changing prompts without changing the toolchain usually improves presentation more readily than it resolves execution problems such as “no results found” or “approval required at every step.” Conversely, relaxing tool permissions without constraining output can improve speed while reducing control.
2. Four Common Patterns on the Same Task
When the skill definition, time window, and output requirements are held constant, agent behavior generally falls into several patterns rather than a simple “good” or “bad” classification.
Similar Speed and Similar Results
The agent converts natural language into explicit search criteria, applies the required time window, retrieves several sources, and then deduplicates and summarizes the results.
These implementations typically have stable tool descriptions, reasonable timeouts, and a consistent output template, which reduces variation across repeated runs.
Failed Retrieval or Premature Abandonment
The model may be perfectly capable of summarizing news, but the agent fails to translate “yesterday” and “industry developments” into executable time filters and expanded keywords. Alternatively, it may lack access to the required sources or have no fallback when a search returns nothing.
The user sees “no results found,” while the actual cause may be an overly narrow query, incorrect date interpretation, or a tool call that was silently skipped.
Approval Interruptions Increase Completion Time
Requesting permission before visiting a URL, executing a command, or reading external content supports safety. However, if every individual address requires approval, human-agent back-and-forth can dominate total task time.
The task may still succeed, but the experience shifts from automation to continuous human supervision.
Apparent Success Without Comparable Quality
Some agents produce long responses containing unlabeled speculation. Others provide short responses that merely repeat headlines.
An evaluation that checks only whether an agent produced an answer can misjudge quality. It should also verify that the time window is correct, key points are traceable to sources, and facts are clearly distinguished from inference.
3. Where the Differences Come From
System Instructions and Workflow Definitions
System instructions establish the agent’s default approach. Instructions emphasizing source verification tend to increase retrieval and approval steps. Instructions emphasizing a fast answer tend to reduce steps, but can also lead to missed information.
If a skill or predefined workflow describes only the goal and omits failure branches, the model may declare the task impossible as soon as it receives an empty result.
Tool Permissions
Read-only search, network access, file writes, and command execution carry different risks and should not necessarily share the same approval policy.
Placing low-risk public information searches behind the same approval requirements as high-risk actions makes routine retrieval cumbersome. A more appropriate approach is to classify actions by risk: batch searches of public information can receive a single authorization at the start of a session, while writes, outbound transfers, and destructive commands retain step-by-step approval.
Context Management
Context management affects consistency. In long conversations, unrelated files and historical failure logs can dilute the retrieval criteria.
Keeping the time window, topic, output fields, and maximum number of sources in a separate task state is more reliable than depending on the entire conversation history.
Fallback Strategies
Fallback design determines whether “no results found” is a meaningful conclusion.
If the initial search returns nothing, the agent should broaden keywords, try related terms, or extend the search to adjacent dates while clearly labeling that change, rather than ending immediately. A maximum retry count is also necessary to prevent endless loops.
4. Build a Reproducible Evaluation
Do not draw conclusions from a single manual request. Repeat the task under fixed conditions: the same model, skill description, question, and approximately the same start time.
Record the following:
- End-to-end completion time
- Number of human approvals
- Number of tool calls
- Number of empty results
- Number of final key points
- Factual discrepancies found through spot checks
Agree on an output template in advance. For example, each item could include a timestamp, an event, a one-sentence impact assessment, and source information. If a source cannot be verified, mark the item as unverified rather than presenting it as established fact.
When comparing agents, base conclusions on these process and content metrics rather than brand perceptions.
Task constraints can be expressed as structured fields to support both execution and human review:
task: Summarize AI industry developments for the specified datewindow: Previous calendar day, with an explicit time zonefields: Time, event, impact, source information, confidence labellimits: Maximum 8 items, deduplicate, do not fabricate links or datafallback: If no results, broaden related search terms once; if still empty, explain the search scopeconfirm: One authorization for batch read-only searches; separate approval for write operations
This is not a product-specific interface. It is a task contract defined by the team. Agents that support custom instructions and tool permissions can be evaluated against the same contract.
5. Engineering Trade-offs in Deployment
Development productivity workflows generally favor fewer approvals and faster responses. Security and compliance workflows favor auditability at every step.
These goals are not mutually exclusive. They require different policies for different actions. Information retrieval skills are well suited to a policy of one-time authorization, time-limited validity, read-only access, and source attribution. Code changes, dependency installation, and external publishing should still require approval by default.
At a minimum, logs should retain:
- The search criteria
- Whether tools were actually called
- Whether results were empty
- What the user approved
Without these records, teams cannot distinguish a model that failed to summarize from an agent that never performed the search.
For monitoring, timeout rates, empty-result rates, and approvals per user provide more actionable guidance than final satisfaction scores alone.
When selecting an agent, prioritize three questions:
- Can its workflow be configured while keeping the model unchanged?
- Can approval granularity be adjusted according to risk?
- Does it provide diagnosable reasons for failure?
Agents that handle these requirements well are better suited to recurring information synthesis and development assistance, rather than merely producing fluent answers in demonstrations.
6. Practical Recommendations
When defining a skill, specify the time window, output fields, limits, and fallback behavior instead of simply asking the agent to “find some news.”
Authorize public information retrieval separately from high-risk operations to reduce unnecessary interruptions. Distinguish verified facts from model inference in the output. Use fixed tasks for regression testing rather than switching tools based on a single experience. Periodically clean up excessively long context so that search criteria are not buried in conversation history.
Using the same model is only the starting point. Similar speed and results suggest a stable execution pipeline. Empty results often indicate weaknesses in query construction or fallback design. Frequent approvals can indicate an overly coarse safety policy.
Once these differences are treated as configurable engineering issues, teams can make explicit trade-offs among efficiency, accuracy, and control instead of mistaking agent behavior for differences in model capability.
