LLM Evaluation in Practice: Six Tasks That Reveal Coding Ability and Cost Efficiency

    This article presents a reproducible method for evaluating large language models (LLMs) and AI coding assistants. It explains why model quality is hard to judge, then describes a controlled test setup: network access fully disabled, a 30-minute limit per task, and a general-purpose AI coding tool (Agent SDK form) as the host environment. Six tasks progress from identity and knowledge-boundary awareness to long-horizon task planning. The article details what each task measures, summarizes the key observations, and translates them into engineering guidance on metacognitive honesty, explicit management of knowledge-cutoff risk, structured output reliability, root-cause reasoning, and long-task cost structure. It also breaks down cost into four layers and offers a reusable evaluation checklist for model selection.

    1. Why Teams Need a Reproducible LLM Evaluation Method

    When a team adopts an AI coding assistant or an LLM service, the most common debates are: “Is this model actually good enough?” and “Is it worth the price?” These questions are hard to answer for three reasons.

    First, model capability is multi-dimensional. Code completion, cross-file refactoring, defect localization, long-document summarization, and instruction following rely on very different capability combinations. A model that excels at unit test generation is not necessarily as reliable at cross-module architectural changes.

    Second, the evaluation environment can significantly amplify or mask differences. Whether web retrieval is allowed, whether tool permissions are sufficient, how long each task is time-boxed, and how the context window is configured can all make the same model produce very different results. Discussing capability without the environment is like discussing system performance without the workload.

    Third, the relationship between price and effectiveness is not linear. Comparing the per-million-token price alone easily leads to wrong conclusions. What really determines cost is the total number of tokens required to complete a task, the number of retries, and the proportion of manual rework.

    For this reason, this hands-on test adopted an approach as close to real development as possible: network access fully disabled, a time limit per task, and a general-purpose AI coding tool (Agent SDK form) as the host. There were six tasks, progressing from identity awareness all the way to long-horizon task planning. The test window was 05:56 to 06:45 on November 10, 2026 (UTC+8), and the six tasks took about 43 minutes in total. No external links were accessed at any point, ensuring that the evaluation measured “the model’s own knowledge plus its reasoning and tool-calling ability” rather than retrieval ability.

    Note that this article does not judge any specific third-party product as better or worse. Instead, it abstracts this test into an evaluation workflow that any team can reuse, and provides transferable engineering explanations for each observation.

    2. Test Design: Turning Vague Impressions into Comparable Data

    A valuable evaluation must state its preconditions clearly; otherwise the results cannot be reproduced. The environment settings recorded for this test are as follows:

    Item Value
    Model under test claude-fable-5-2 (per the identifier given in the test environment)
    Host environment General-purpose AI coding tool (Agent SDK form)
    Test time 2026-11-10 05:56 – 06:45 (+08)
    Network Fully disabled; zero external link access
    Time limit per task 30 minutes
    Actual duration About 43 minutes for all six tasks

    The value of this setup lies in reproducibility. Disabling the network rules out inflated performance from retrieval augmentation; the per-task time limit simulates the real pace of pair programming; and choosing an agent-based host means the model must plan, call tools, and manage multi-step tasks on its own, rather than just answering a static question.

    At the metrics level, teams should record at least the following six items, which are more convincing than “does it feel usable”:

    • First-token latency and total output time: these directly determine interaction smoothness and affect whether developers are willing to use the tool for long periods.
    • Effective output rate: the proportion of runnable or directly mergeable code, measuring how “ready to use” the output is.
    • Task completion rate: the proportion of tasks that meet the stated constraints within the time limit, reflecting endurance on long tasks.
    • Constraint adherence: compliance with hard constraints such as format, length, and prohibited items, which determines whether the model can be integrated into automated pipelines.
    • Token consumption and cost per task: converting the bill into “how much it costs to complete one real requirement.”
    • Retry and rework rate: a low first-pass success rate significantly raises hidden costs, especially on long tasks.

    3. Design Intent and Observation Focus of the Six Tasks

    The tasks start with “metacognition” and gradually move into hard engineering scenarios, forming a capability ramp.

    Task 0: Identity and knowledge-boundary awareness. The model was asked to state what model it is, what version, and when its knowledge cutoff is. This task tests not the amount of knowledge but the model’s honesty and traceability about its own runtime environment. Observation focus: whether the model clearly distinguishes “information provided by the system prompt” from “conclusions reached through self-introspection,” and whether it fabricates specific dates.

    Task 1: Knowledge timeliness risk identification. This task revolves around “the closer to the knowledge cutoff, the sparser the memory.” Observation focus: whether the model proactively flags timeliness risk instead of confidently giving outdated conclusions.

    Task 2: Multi-turn context consistency. This task checks whether the model stays consistent across follow-up questions and whether it drifts due to changes in wording. Observation focus: state retention and self-correction ability in long conversations.

    Task 3: Structured output constraints. The model was required to complete output within a specified format. Observation focus: whether it can stably produce results that programs can parse, which is a hard threshold for integration into CI/CD and automated workflows.

    Task 4: Defect localization and root-cause analysis. The model was given problematic code or a symptom and asked to locate the cause. Observation focus: whether the reasoning chain is complete, whether it distinguishes “symptoms” from “root cause,” and whether it blindly changes code without explanation.

    Task 5: Long-horizon task planning and decomposition. The model was asked to break a vague requirement into executable steps. Observation focus: task decomposition granularity, dependency identification, risk anticipation, and whether verification steps are omitted.

    4. Key Observations: Capability Behavior and Engineering Implications

    1. Metacognitive honesty matters more than knowledge volume. In Task 0, the model under test explicitly stated that its identity information came from the system prompt in the runtime environment rather than from “introspection,” and it proactively noted that its knowledge cutoff was June 2026, with sparser detail the closer a topic is to that date. This is very valuable in engineering: it separates “what I know” from “how I know it,” allowing developers to judge the credibility of the source. Practical recommendation: in production systems, require the model to provide a “source annotation” when answering timeliness-sensitive questions, and introduce external retrieval as a supplement in high-risk scenarios.

    2. Timeliness risk must be managed explicitly. The answer to Task 1 points to a common problem: a model’s parametric knowledge has temporal gaps, and coverage declines for content close to the cutoff date. The engineering response is not simply “switch to a model with more recent knowledge.” Instead, build a three-layer mechanism: first, explicitly state the current date and knowledge boundary in the prompt; second, force retrieval or manual confirmation for timeliness-sensitive facts (version numbers, API changes, dependency versions); third, attach a “please verify” marker in the output to prevent downstream systems from treating outdated information as fact.

    3. Structured output capability sets the ceiling for automation. The Task 3 results show that a model’s stability under explicit format constraints directly determines whether it can enter a pipeline. The recommended practice is “double insurance”: provide field definitions and examples in the prompt, then perform strict validation on the parsing side, triggering a retry on validation failure rather than silently accepting it. Illustrative code:

    1. # Pseudocode: structured output + strict validation + retry on failure
    2. schema = {"name": "str", "reason": "str", "fix": "str"}
    3. def ask_model(prompt, retries=2):
    4. for _ in range(retries + 1):
    5. raw = model.generate(prompt, response_format="json")
    6. try:
    7. data = json.loads(raw)
    8. if all(k in data and isinstance(data[k], str) for k in schema):
    9. return data
    10. except json.JSONDecodeError:
    11. continue
    12. raise ValueError("Structured output validation failed")

    4. Defect localization is about the reasoning chain, not the conclusion. The observation focus of Task 4 is whether the model first restates the symptom, then proposes hypotheses, and then gives a verifiable troubleshooting path. Good answers typically follow a structure of “narrow the scope first, then bisect to locate, and finally provide regression verification”; poor answers directly change code with no verifiability. For teams, the criterion is simple: does the proposed fix come with “how to prove it is correct”?

    5. Long tasks are the dividing line for cost efficiency. Task 5 exposed the typical cost structure of long-horizon scenarios: a model may perform well in the first few rounds, but as steps increase, dependency omissions, missing verification, and duplicated work appear. This directly raises token consumption and the rework rate. A real cost-efficiency evaluation must include the “total cost of completing one end-to-end requirement,” not the unit price.

    5. The Cost Perspective: How to Calculate Cost Efficiency

    To turn a bill into a decision basis, cost must be broken into four layers.

    The first layer is invocation cost, i.e., the per-million input/output token price. This is the easiest metric to compare and the easiest to mislead, because it ignores differences in “the total number of tokens required to complete the same task.”

    The second layer is task cost, defined as “the total tokens consumed to complete one real requirement × unit price + retry cost.” A model with a low unit price that frequently goes off track may have a much higher task cost than a model with a high unit price that gets it right the first time.

    The third layer is labor cost, including review time, debugging time, and rework time. This layer is often the largest hidden expense, especially for cross-file refactoring and security-related code.

    The fourth layer is opportunity cost, i.e., delivery delays caused by model unavailability, rate limiting, or uncontrollable output.

    A practical evaluation formula can be written as:

    1. Composite cost per task ≈ invocation cost + (1 - first-pass success rate) × retry cost + manual rework hours × labor rate

    When the first-pass success rate rises from 60% to 80%, the composite cost may still fall even if the unit price rises by 20%. This is why “expensive” does not equal “not worth it”; the key is to switch the metric from “unit price” to “composite cost per task.”

    6. A Reusable Evaluation Checklist and Selection Guidance

    Turning the above experience into a checklist, a team can complete a credible comparative evaluation within a week.

    Preparation phase: fix the host environment and tool permissions; record the model identifier, time window, network policy, and per-task time limit; prepare 6 to 10 tasks covering the six dimensions of identity awareness, timeliness, multi-turn consistency, structured output, defect localization, and long-horizon planning; define quantifiable pass criteria for each task.

    Execution phase: keep the network fully disabled to ensure reproducibility; record the start and end time, token consumption, number of retries, and whether constraints were met for each task; retain raw logs of key outputs for later review.

    Analysis phase: score based on four items: effective output rate, constraint adherence, first-pass success rate, and composite cost per task; attribute failures to distinguish whether they stem from knowledge gaps, reasoning errors, format non-compliance, or tool-calling failures.

    Selection phase: if the scenario is mainly code completion, prioritize first-token latency and effective output rate; if it is mainly integration into automated workflows, prioritize structured output stability; if it is mainly long-chain tasks, prioritize task decomposition and verification-loop capability. When sensitive data or compliance requirements are involved, also evaluate the deployment form and data boundaries rather than only model effectiveness.

    7. Limitations and Risk Boundaries

    This hands-on test had a limited sample size; six tasks cannot cover all engineering scenarios, so the conclusions should be treated as a reference rather than a definitive verdict. The network-disabled condition rules out the gains from retrieval augmentation, so the results do not represent the upper bound in a connected scenario. The 30-minute per-task limit is tight for complex long tasks and may underestimate the model’s endurance. In addition, the test was fixed on a specific date, and conclusions will change as model versions iterate; retesting once per quarter is recommended.

    On compliance, avoid using real business-sensitive data in evaluations; isolate content involving external links; and keep a “verifiable” marker on timeliness information in model outputs to prevent outdated knowledge from entering the production chain.

    8. Conclusion

    The most effective way to judge a model’s “actual capability and cost efficiency” is not to look at a single demo but to build a reproducible evaluation workflow: state the environment clearly, layer the tasks, quantify the metrics, and convert cost into composite cost per task. The core takeaways from this six-task test are that metacognitive honesty, explicit management of timeliness risk, structured output stability, the completeness of the reasoning chain in defect localization, and the cost structure under long tasks are the key variables that determine whether a model is “good to use” and “worth it.” Incorporating these points into the selection checklist enables teams to make rigorous and actionable technical decisions in an environment where models iterate rapidly.