How to Systematically Evaluate a New LLM’s Real-World Development Capability
Evaluating a new general-purpose LLM for development work requires more than benchmark scores and isolated coding prompts. This article presents a practical evaluation framework based on a realistic end-to-end project—a local trading-data backtest system—covering requirement understanding, task decomposition, context retention, tool use, engineering quality, result validation, and interaction stability. It also outlines staged prompting, reliability checks, common failure modes, and a reusable scorecard for assessing both correctness and the human intervention cost.
As new general-purpose LLMs continue to be released, the developer question has shifted from “Can it write code?” to “Can it reliably complete a real project?” In practice, whether a model is worth adopting often depends less on whether one answer is impressive and more on whether it can sustain understanding of requirements across a longer workflow, call tools correctly, handle exceptions, and ultimately deliver runnable, maintainable results.
Therefore, evaluating a new model should not rely only on leaderboard scores or a few simple Q&A cases. It should use comprehensive tasks that resemble real work. For example, combine personal transaction records, historical market data, and an analysis goal, then require the model to complete data cleanup, API calls, local storage, backtest calculation, and report generation. Such a task is not especially complex, but it covers the most common and error-prone parts of LLM-assisted development.
1. Evaluation Should Focus on More Than Code Generation
Many models perform well when generating a single function, but problems emerge when the task becomes a long workflow, multiple files, and external data dependencies.
A complete development task usually includes at least the following dimensions:
- Requirement understanding: Can it accurately extract goals, constraints, and edge cases?
- Task decomposition: Can it break a large goal into verifiable small steps?
- Context retention: After multiple rounds of modification, does it still remember the existing directory structure, data formats, and design conventions?
- Tool use: Can it correctly read API documentation, choose appropriate methods, and handle permission, rate-limit, and return-value exceptions?
- Engineering implementation: Does the code have basic characteristics such as modularity, testability, and extensibility?
- Result validation: Can it proactively detect missing data, field errors, and inconsistent calculation logic?
- Interaction stability: During long tasks, is it prone to interruption, hanging, or repeated execution?
If a model is only asked to solve an algorithm problem, only a small part of its capability is actually measured. A valuable evaluation should simulate the complex workflows developers face in daily work.
2. Use a Data Backtest Project as an Integrated Test Case
Imagine building a localized trading data analysis system. The input is a table exported by trading software, and the output includes instrument identification, historical market data retrieval, trade matching, return statistics, and risk analysis.
The project can be decomposed into six stages; the first three are especially useful for exposing model behavior.
2.1 Raw File Parsing
First, the system needs to read fields such as trade date, security code, security name, buy/sell direction, execution price, executed quantity, and fees.
The difficulty is not “reading the file” itself, but handling uncertainty in real-world data, for example:
- Column names may change across software versions;
- Date formats may be mixed;
- Buy and sell directions may use different text labels;
- Quantity and price fields may contain null values or special characters;
- The same instrument may have multiple partial fills;
- The file may contain summary rows, description rows, or unrelated fields.
A better model will not directly generate fragile reading code. It will first confirm field mapping, add format checks, and provide clear prompts when anomalous data appears.
2.2 Automatically Identify Instruments for Analysis
The model can extract the relevant security codes from the parsed results and proceed to the next stage after user confirmation.
This step reflects the balance between automation and human confirmation. With financial data, fully automatic execution is not always safe. A more robust approach is:
Read file↓Extract candidate instruments↓Display code, name, and occurrence count↓User confirms or corrects↓Start historical data download
This reduces repeated input while avoiding a situation where field misalignment causes a large amount of downstream calculation to be built on the wrong instruments.
2.3 Fetch and Store Historical Data
Historical data retrieval usually depends on external data APIs. The model needs to read the API documentation first, understand field meanings, date formats, permission limits, pagination, and error codes, and then design a data access module.
It is advisable to split this part into independent layers:
- API adapter layer: responsible for calling external data services;
- Data cleaning layer: responsible for field standardization, type conversion, and deduplication;
- Persistence layer: responsible for writing to the local database;
- Task scheduling layer: responsible for progress display, resumable execution, and failure retry.
Database design should also not simply pile everything into one table. At minimum, consider the following types of tables:
- Instrument master table;
- Daily bar table;
- Intraday bar table;
- Raw trade record table;
- Normalized trade record table;
- Data download task table;
- Backtest result table.
Raw data and cleaned standard data should preferably be stored separately. In this way, even if cleaning rules change, there is no need to request data from external APIs again.
3. Staged Prompts Are More Reliable Than a One-Shot Description
Many developers are used to giving the model all requirements at once—for example, asking it to complete data parsing, API calls, database design, backtesting, and report generation simultaneously. This may look efficient, but in practice it easily causes the task to spin out of control.
A better approach is “staged delivery.”
Stage 1: First Let the Model Understand the Requirements
Ask the model to output only:
- Its understanding of the requirements;
- Known inputs and expected outputs;
- Key risks;
- Questions that need user confirmation;
- Recommended project directory structure.
Do not rush to generate a large amount of code at this point. First check whether it truly understands the task.
Stage 2: Implement Only Data Import
Ask the model to complete file parsing and provide sample output, exception prompts, and testing methods. Once field identification is confirmed correct, move to the next step.
Stage 3: Implement the Data Access Module
Use the API documentation as context input. Ask the model to first list the APIs it plans to call, the parameters, and the returned fields. After confirmation, write the code. This significantly reduces the risk of misunderstanding API names, parameter types, and field meanings.
Stage 4: Implement the Database and Cache
At this stage, focus on unique constraints, indexes, duplicate writes, transaction handling, and resumable execution. As financial data grows, an early non-standard table structure will directly affect query performance and maintenance cost.
Stage 5: Implement Backtest Logic
Backtesting cannot be limited to calculating a simple return rate. It should also clarify:
- Trade matching rules;
- Whether fees and taxes are included;
- How open positions are handled;
- Whether corporate actions such as dividends and splits are considered;
- Whether closing prices or execution prices are used;
- How missing data is handled;
- Whether lookahead bias exists.
If the model does not proactively ask these questions, it is focusing more on “generating code” than on “ensuring trustworthy results.”
4. How to Judge Whether Model-Generated Results Are Reliable
Code that runs does not mean the results are correct. For data analysis projects, it is advisable to establish multi-layer validation mechanisms.
4.1 Count Validation
Check whether the number of retrieved records matches expectations, whether the date range is complete, and whether there are abnormal gaps.
4.2 Field Validation
Check the data types and value ranges of fields such as price, volume, and amount. For example, prices should not be negative, and volume should not be incorrectly parsed as text.
4.3 Logic Validation
Use a small sample that can be calculated manually to verify model results. For example, construct a simple case with two buys and one sell, manually calculate the position and profit/loss, and compare it with the program output.
4.4 Cross-Validation
When conditions permit, use two independent data sources for sample comparison. If key fields for the same date and instrument differ significantly, pause subsequent analysis rather than directly choosing one result.
4.5 Regression Testing
Whenever trade matching or return calculation logic is modified, automatically run the existing test cases to ensure the new changes have not broken existing functionality.
5. Common Model Problems and Improvements
During long-workflow development, new models may exhibit several typical problems.
Task Interruption or Long Periods of No Response
This may be related to excessively long context, tool call failure, API waiting, or runtime environment exceptions. Improvements include:
- Split large tasks into smaller tasks;
- Limit the size of code generated in a single response;
- Set timeouts for external requests;
- Add logs and progress output;
- Save intermediate state;
- Support resuming from the last successful step.
Code Looks Complete but Cannot Run Directly
Common causes include hard-coded paths, missing dependencies, unconfigured environment variables, and inconsistent field names. Requiring the model to also output a pre-run checklist, dependency installation instructions, and a minimal test command is often more effective than simply asking for “complete code.”
Excessive Modification of Existing Code
To implement a new feature, the model may rewrite many files and break parts that were previously working. Therefore, explicitly require: prefer incremental changes, explain which files are modified and why, and do not delete existing functionality without confirmation.
Overly Optimistic Interpretation of Results
Backtest results are not predictions of future returns. When generating reports, the model should clearly distinguish historical statistics, simulation results, and future judgments, and avoid describing in-sample performance as a stable capability.
6. Build a Reusable Model Evaluation Scorecard
To avoid evaluating by impression, use the following dimensions for scoring:
| Evaluation Dimension | Question to Consider |
|---|---|
| Requirement understanding | Did it identify implicit constraints and risks? |
| Task decomposition | Did it form a clear execution order? |
| Code quality | Is it modular, readable, and testable? |
| Data handling | Did it correctly handle nulls, duplicates, and anomalies? |
| Tool use | Did it use API documentation correctly? |
| Stability | Is it prone to interruption, hanging, or repeated execution? |
| Debugging ability | Can it locate problems from logs? |
| Result credibility | Did it proactively validate and cross-check? |
| Maintenance cost | Is it easy to modify later? |
The final evaluation should consider both “correctness rate” and “human intervention cost.” Even if a model occasionally generates excellent code, if every step requires the developer to recheck and fix it, its actual efficiency may not be high.
7. Conclusion: Do Not Just Ask Whether the Model Is Strong
The most effective way to evaluate a new model is not to have it answer a few knowledge questions, but to have it complete a full project with real inputs, real constraints, and real possibilities of failure.
Using personal trading data backtesting as an example, what matters is not whether the model can quickly generate hundreds of lines of code, but whether it can:
- Clarify requirements first instead of executing blindly;
- Break complex tasks into checkable steps;
- Correctly understand external data APIs;
- Design standard, extensible data structures;
- Handle exceptions and failures;
- Verify calculation results through tests;
- Remain stable throughout a long workflow;
- Clearly explain the scope and limitations of its conclusions.
To form an objective evaluation of a new model, treat it as a collaborative developer who needs code review, not as an automatic programmer that can be trusted unconditionally. The model is responsible for increasing the speed of exploration and implementation, while humans still need to control requirement boundaries, data quality, business rules, and final decision-making. Only under this kind of collaboration can LLM capabilities truly translate into reliable engineering efficiency.
