LLM Coding Performance: How Models and Execution Frameworks Collaborate
Developers often notice that the same Large Language Model (LLM) performs differently across various AI coding tools. This raises the question: is it the model's capability or the execution framework's design? This article provides a structured methodology to evaluate how well an execution framework (harness) utilizes a model's capabilities. It outlines five evaluation dimensions, steps for designing reproducible tests, and how to isolate the impact of the model versus the framework through controlled experiments.
Introduction: Why Does the Same Model Yield Different Results?
Recently, developers have reported noticeable performance differences when using the same LLM across different AI coding tools. Some attribute this to insufficient model capability, while others believe the execution framework fails to leverage the model effectively. Both perspectives have merit, but relying solely on user experience makes it difficult to pinpoint the root cause. This article does not aim to draw immediate conclusions; instead, it offers a methodology you can use to verify this yourself.
Note that this is a methodological discussion, not an official review of any specific vendor or product. We use “Example Framework A” and “Example Framework B” as placeholders rather than referring to actual products.
1. Distinguishing Two Layers: Model Capability and Execution Framework
An AI coding tool consists of two main components. The model capability layer is responsible for understanding requirements, reasoning logic, and generating code. The execution framework layer, often referred to as the Harness, is responsible for converting the model’s output into actual operations, such as reading and writing files, running tests, and searching code.
The execution framework typically includes the following modules:
- System Prompts: Organizes user requirements into instructions the model can understand, appending project background and coding standards.
- Tool Calling Protocol: Defines how the model requests operations like reading files or executing commands, as well as the format of the returned results.
- Context Management: Retains key constraints across multi-turn conversations and compresses lengthy history records.
- Subtask Orchestration: Breaks down complex tasks into multiple sub-steps and delegates them to sub-agents.
- Permission Management: Determines which operations can be executed automatically and which require manual confirmation.
The relationship between the framework and the model can be understood as follows: the model determines the achievable upper limit, while the framework dictates how much of that upper limit is actually realized. When a framework is poorly designed, the model must spend more turns exploring the project and is more likely to forget early constraints.
2. Five Evaluation Dimensions
Evaluating a framework can start with the following five dimensions. Each dimension corresponds to an observable and recordable metric.
| Dimension | Core Question | Observable Metric | Recording Method |
|---|---|---|---|
| Tool Coverage | Can it invoke compilation, testing, and search tools? | Tool call success rate | Track the return status of each call |
| Context Management | Can it remember early constraints after a long conversation? | Context recall accuracy | Ask about constraints mentioned at the beginning around the 10th turn |
| Error Recovery | Can it locate the cause itself after a command failure? | Average recovery turns | Introduce a compilation error and observe the handling process |
| Permission Granularity | How many manual confirmations are required to complete a task? | Average confirmation count | Count the occurrences of approval pop-ups |
| Project Understanding | Does it actively read the project structure before starting a task? | Exploration steps for the first task | Count the number of file and directory reads |
These five dimensions are interconnected. For instance, excessive permission confirmations can interrupt a task and indirectly increase the number of conversation turns. Therefore, raw data should be retained during recording rather than just looking at individual scores.
3. Designing a Reproducible Test
Conclusions drawn from a few casual experiences are easily influenced by accidental factors. The following steps can mitigate this risk:
- Fix Versions: Record the model version number, framework version number, and test date.
- Prepare a Task Set: Cover at least four categories of tasks, such as single-file function modification, cross-module refactoring, adding unit tests, and fixing known bugs. Prepare three or more tasks per category.
- Fix Code Baseline: Start every task from the same commit hash to avoid inconsistent repository states.
- Repeat Runs: Run the same task in each framework at least three times, recording the average and variance.
- Unified Criteria: Use whether tests pass as the primary standard, while also checking if new issues are introduced.
- Classify Failure Causes: Categorize failures into reasoning errors, tool calling errors, context loss, and permission blocks.
It is recommended to organize the test results using the following table:
| Field | Description | Example |
|---|---|---|
| Version Info | Model and framework versions, test date | Model v1.2, Framework v3.0, 2026-11 |
| Task Set | Task ID and type | T01 Single-file modification |
| Success Rate | Number of tasks passing tests divided by total | 9/12, 75% |
| Interaction Turns | Conversation turns to complete one task | Average 8 turns |
| Manual Confirmations | Number of approval pop-ups or manual confirmations | Average 4 times |
| Failure Recovery Method | Automatic retry, manual intervention, or abandonment | Auto-retried 2 times, then manually fixed |
| Average Cost Per Pass | Total cost divided by number of passed tasks | Based on actual billing |
A table can only record results; it cannot directly explain the cause. To determine the cause, controlled experiments are necessary: first, keep the model unchanged and only switch the framework; then, keep the framework unchanged and only switch the model.
4. Potential Influencing Factors
The following factors may affect framework performance in practice, but each requires verification through controlled experiments:
- When the system prompt lacks project structure information, the model needs to explore additionally.
