How Agent Execution Frameworks Determine Task Success Rate
This article examines why the same large language model can produce very different results across agent execution frameworks, also known as harnesses. Drawing on a controlled test in which one model was paired with eight frameworks, it breaks down the five layers of a harness—tools, prompts, context management, execution strategy, and observation/feedback—and explains how each layer reshapes the task the model actually sees. It then covers four root causes of success-rate gaps, a reproducible evaluation design, a four-quadrant failure attribution method, and a practical engineering optimization checklist for improving multi-step agent reliability.
1. Same Model, Very Different Results
In a controlled test focused on multi-step tasks, an agent tooling team connected the same large model to eight different execution frameworks (commonly called harnesses in the industry), with each framework completing 30 multi-step tasks. The test deliberately held the model variable constant and changed only the outer framework, yet the results diverged sharply: the best-performing framework passed 20 tasks, while the weakest passed only 14—a gap of nearly 30%. Another internal example showed that when the same model ran the same mini-game task under three different frameworks, the resulting behavior traces were completely different.
Both observations point to the same conclusion: in multi-step tasks, the model is only the “reasoning core,” and what really determines success or failure is the layer of engineering structure wrapped around it. This article takes apart this long-underestimated variable.
Note that this article does not evaluate any specific framework as better or worse; instead, it abstracts the findings into transferable engineering principles.
2. What an Execution Framework Actually Contains
An execution framework is the middle layer between the model and the outside world. It typically consists of at least five separable parts:
- Tool layer: the set of actions the model can invoke, including reading and writing files, executing commands, retrieval, and calling APIs, along with each tool’s name, description, and parameter schema.
- Prompt layer: system instructions, role settings, output format constraints, and failure retry rules.
- Context management layer: strategies for trimming, compressing, summarizing, and retrieval-based backfilling of message history.
- Execution strategy layer: single-step decision-making versus plan-then-execute, whether parallelism is allowed, fallback and retry after failure, and termination condition checks.
- Observation and feedback layer: how tool return results are cleaned, truncated, and structured before being fed back to the model.
A difference in any one of these five layers changes the input distribution the model actually sees, and therefore changes its output. The essence of the success-rate gap is that the “task the model sees” is reshaped by different frameworks into problems of different difficulty.
3. Four Root Causes of the Success-Rate Gap
3.1 Tool Set Design Determines the Action Space
More tools is not necessarily better. Too many tools create selection difficulty and wrong invocations; vague tool descriptions lead the model to make incorrect inferences about parameter semantics. A reliable practice is to make tool granularity match task semantics and to state preconditions and side effects clearly in the descriptions.
3.2 Context Management Determines Long-Task Stability
Failures in multi-step tasks are often not “don’t know how to do it” but “forgot what has already been done.” When history is crudely truncated, the model repeats completed steps or loses key constraints. Summary-based compression, externalizing key state to structured storage, and on-demand retrieval backfill are three common mitigation approaches.
3.3 Execution Strategy Determines Whether Errors Can Be Corrected
A one-shot long plan lacks checkpoints, so errors amplify along the chain; a strategy with staged validation, fallback branches, and clear termination conditions can confine errors to a local scope.
3.4 Feedback Quality Determines Iteration Efficiency
The raw output of tools often contains a lot of noise. Without truncation and structuring, the model treats noise as fact and continues reasoning on top of it. The cleaning rules in the feedback layer are effectively equivalent to giving the model a clearer pair of glasses.
4. A Reusable Evaluation Design Method
To turn “framework differences” from guesswork into data, design controlled experiments as follows:
# Example: controlled-variable framework comparison evaluationTASKS = load_tasks("multi_step_suite", limit=30) # fixed task setMODEL = "fixed_model" # fixed model and parametersdef run(harness, task):trace = harness.execute(task, model=MODEL, max_steps=20)return {"passed": verify(task, trace), "steps": len(trace), "trace": trace}report = {h.name: [run(h, t) for t in TASKS] for h in harnesses}
There are three key constraints: the task set and verification script must be fixed; the model’s sampling parameters must be kept consistent; and each task must record the full trace rather than only pass or fail. Only by retaining traces can you perform failure attribution.
5. Four-Quadrant Failure Attribution
Splitting failure samples along two dimensions—“whether planning was completed” and “whether execution was correct”—yields four categories of problems: missing planning, wrong planning, execution deviation, and feedback misreading. The fixes for the four categories are completely different—the former needs stronger task decomposition and prompt constraints, while the latter needs improved tools and feedback cleaning. Tuning prompts without attribution is the most common form of ineffective optimization.
6. Engineering Optimization Checklist
- Write tool descriptions that state preconditions, return structure, and failure semantics, and keep the total number of tools within a manageable range.
- Externalize task state as structured objects instead of relying entirely on conversation history to carry state.
- Set staged checkpoints and clear termination conditions for long tasks to avoid infinite loops that consume resources.
- Apply uniform length truncation and structured wrapping to tool outputs to reduce noise interference.
- Build a regression evaluation set and run a comparison each time you change a prompt or a tool.
- When deploying in the cloud, you can use a container platform to host execution sandboxes, object storage to save traces, and logging services with monitoring and alerting to track success rate and step distribution, forming a closed loop.
7. Conclusion
The success-rate gap produced by the same model under different frameworks shows that the focus of agent engineering is shifting from “choosing a model” to “designing the environment the model operates in.” Treating tools, prompts, context, and execution strategy as measurable, regression-testable engineering objects to be governed is the right way to reliably improve the success rate of multi-step tasks.
