Evaluating Coding Agents and Long-Task Capabilities of Open-Source LLMs

    This article explores how to effectively evaluate the coding and long-task capabilities of open-source Large Language Models (LLMs). It shifts the focus from mere model demonstrations to engineering delivery assessment, covering model capabilities, agentic system capabilities, and actual delivery capabilities. By using a financial report monitoring application as a verifiable task example, the article details how to establish acceptance criteria, design effective execution loops for long tasks, divide work between single and multi-agent systems, measure total cost, build reproducible evaluation processes, and ensure security and operability for production readiness.

    1. Shifting from Model Demonstration to Engineering Delivery Assessment

    A model’s ability to generate a beautiful interface does not mean it can independently build a runnable application. Similarly, an agent executing many consecutive steps does not guarantee that these steps are effectively advancing the task. For developers and enterprise users, the real question is: under explicit constraints of budget, time, and permissions, can the system stably deliver results that meet the requirements?

    Therefore, evaluating open-source LLMs and their intelligent programming capabilities should be divided into three distinct levels:

    • Model Capability: The ability to understand requirements, generate code, analyze errors, and plan tasks.
    • Agentic System Capability: The ability to invoke tools, maintain state, execute tests, recover from interruptions, and control permissions.
    • Delivery Capability: Whether the final product is runnable, verifiable, maintainable, and meets business acceptance criteria.

    These three are related but cannot substitute for one another. A model might have strong code generation skills, but if the execution environment is incomplete or tool feedback is inaccurate, the final delivery may still fail. Conversely, mature task orchestration and verification mechanisms can significantly improve the model’s success rate in real-world projects.

    The open-source attribute is another independent dimension. When evaluating, it is necessary to verify exactly what is open-sourced—such as model weights, inference code, training materials, or application examples—and check the license constraints on usage, modification, redistribution, and commercial deployment. You cannot assume low deployment costs, complete features, or unrestricted commercial use just because a model is labeled “open source.”

    2. Establishing Verifiable Tasks Using a Financial Report Monitoring Application

    Financial report monitoring is an ideal scenario for testing intelligent programming capabilities. It involves both UI and interactions, as well as data collection, information extraction, scheduled updates, and exception handling, exposing the gap between “appearing complete” and “actually complete.”

    2.1 Define Application Boundaries First

    A minimum viable product (MVP) might include:

    • Displaying a list of companies, reporting periods, and expected disclosure dates.
    • Filtering companies based on disclosure status.
    • Displaying key financial indicators and their corresponding sources.
    • Saving a user’s watchlist.
    • Periodically checking for newly disclosed information.
    • Providing clear alerts for update failures, missing data, and duplicate records.

    These requirements should also distinguish between real data and demo data. Sample records can be used to verify the interface during early development, but the page must clearly label the nature of the data so that demo values are not mistaken for actual disclosure results.

    2.2 Convert Feature Descriptions into Acceptance Criteria

    “Supporting company following” is just a feature intent and is insufficient to guide delivery. Stricter acceptance criteria should include:

    • The status updates immediately after the user performs the follow action.
    • The follow status persists after refreshing the page.
    • If the write operation fails, the UI displays a failure prompt and reverts to a reasonable state.
    • Data for different users is isolated by permissions.
    • Unauthorized requests cannot modify other users’ watchlists.

    This approach forces the agent to handle persistence, failure paths, and access control, rather than merely generating a clickable button.

    2.3 Verify by Delivery Layers

    The task can be broken down into three layers:

    Delivery Layer Main Content Acceptance Focus
    UI Prototype Layout, components, filtering, detail display Is the information clear, and is the interaction smooth?
    Runnable Application Server-side logic, data storage, identity, and permissions Can data be read/written correctly, and are boundaries clear?
    Operable System Scheduled tasks, logging, monitoring, backup, and recovery Is the running state visible, and can failures be recovered?

    If only the first layer is completed, it should be accurately described as “UI prototype completed,” not “application development completed.” This boundary is the foundation for evaluating the output of intelligent programming.

    3. The Core of Long-Task Capability: An Effective Closed Loop

    Long-task capability does not mean long output content or long continuous runtime. The key is whether the agent can continuously use real feedback to correct its actions and gradually bring the task closer to the acceptance goals.

    A reliable execution loop typically includes:

    Understand Requirements → Check Environment → Formulate Plan → Modify Code → Execute Verification → Analyze Feedback → Adjust Approach → Summarize Results.

    3.1 Environment Checking Should Precede Code Modification

    When an agent takes over an existing project, it should first confirm the directory structure, dependency declarations, configuration requirements, test entry points, and any current uncommitted changes. Otherwise, it might recreate existing features, overwrite manual modifications, or use implementations incompatible with the project.

    For credentials, connection information, and production configurations, the principle of least exposure should apply. Issues that can be diagnosed by configuration item names should not require reading actual secret keys; modifications that can be verified in an isolated environment should not directly target the production environment.

    3.2 Each Iteration Should Produce Observable Evidence

    Effective iterations require clear inputs and results, such as:

    • Fixed a reproducible failing test.
    • Completed a business link from the UI to storage.
    • Verified that missing data is not displayed as zero.
    • Proved that an exception branch can return an understandable error message.

    If the agent only continuously rewrites plans, adjusts the same pages, or repeatedly installs dependencies, it cannot be considered effective progress, even if many steps are executed.

    3.3 Set Exit Conditions for Autonomous Execution

    Self-healing should not continue indefinitely. Automatic attempts should stop and request human intervention under the following circumstances:

    • The same type of error recurs without new evidence.
    • Necessary permissions, external materials, or business decisions are missing.
    • Destructive data changes are imminent.
    • Preset time, cost, or retry limits are reached.
    • The scope of the modifications clearly exceeds the original requirements.

    Upon exit, the agent should save the current state and explain what has been completed, what has been verified, the cause of the blockage, and the suggested next steps. A recoverable interruption is better than an endless, unbounded execution.

    4. Reasonable Division of Labor Between Single and Multi-Agents

    Multi-agent systems are not inherently superior to single-agent ones. Their value comes from parallelizable task structures, not the number of participating roles.

    4.1 Single Agents Suit Tasks with Tightly Coupled Contexts

    For smaller-scale applications, requirement understanding, code modification, and test fixing are often interdependent. Having a single agent maintain a unified context reduces handover costs and makes it easier to ensure implementation consistency.

    However, for longer-duration tasks, it is necessary to maintain concise state records, including confirmed designs, unresolved issues, recent verification results, and restricted modification zones. Otherwise, early constraints may be ignored in subsequent iterations.

    4.2 Multi-Agents Suit Relatively Independent Research and Processing

    In batch financial report analysis, work can be split by company or reporting period. Different execution units can complete data retrieval, field extraction, and exception checking, followed by unified aggregation.

    This model is effective only if the tasks have few dependencies and outputs can adopt a common structure. At a minimum, the following should be standardized:

    • Company identifiers and reporting periods.
    • Metric names and definitions.
    • Currencies, amount units, and numerical precision.
    • Distinction between originally disclosed values and derived values.
    • Source locations and data retrieval times.
    • Statuses for missing, conflicting, and pending manual confirmation.

    Otherwise, the aggregation phase might directly compare data across different currencies, periods, or accounting standards.

    4.3 Aggregation Must Preserve Evidence, Not Just Compress Text

    The final product of a multi-agent system should not be just a smooth summary. Every key conclusion must be traceable to its source.

    For example, “revenue growth slowdown” should explain which periods were compared, which values were used, and whether there were any changes in accounting standards. If the original materials are insufficient to support a judgment, the system should retain the uncertainty rather than fabricating a conclusion for the sake of completeness.

    Parallel execution also increases coordination, deduplication, and review overhead. Therefore, the overall benefit depends on whether the saved serial time exceeds the extra collaboration cost, which requires validation through actual tasks.

    5. Measuring Productivity Through Total Cost

    The price of a single API call does not represent the actual usage cost. For intelligent programming, a more meaningful metric is the total investment required to complete an acceptance task.

    The following accounting framework can be used:

    Total Task Cost = Model Call Cost + Execution Environment Cost + Human Review Cost + Failure Retry & Rework Cost.

    With a sufficient sample size, you can also calculate:

    Cost Per Successful Delivery = Total Investment During Evaluation Period ÷ Number of Tasks Passed Acceptance.

    This metric reveals two common misconceptions:

    First, cheap calls that fail frequently can lead to higher human repair costs.

    Second, higher call prices with stable delivery do not necessarily mean higher total costs; it must still be evaluated in conjunction with acceptance results.

    Subscription quotas, concurrency limits, and context limits also affect the experience, but actual account rules must prevail. Benefits, short-term promotional quotas, or special configurations of test accounts cannot directly represent normal usage conditions.

    For self-deployed open-source models, hardware usage, service maintenance, capacity redundancy, security updates, and troubleshooting costs must also be included. Being able to download model files does not equate to providing stable services at a low cost.

    6. Establishing a Reproducible Evaluation Process

    To reduce subjective impressions, “feeling good to use” should be transformed into reviewable evaluation records.

    6.1 Fix Task Inputs and Running Conditions

    Different solutions should use consistent requirement documents, sample data, initial code, and acceptance criteria. Simultaneously, tool permissions, runtime environments, resource limits, and human intervention rules should be recorded.

    If a task receives extra manual debugging help, it should be logged. Assisted results should not be directly compared with fully autonomous execution results.

    6.2 Cover Both Normal Flows and Failure Paths

    Normal flows can test display, filtering, saving, and updating. Exception flows should cover:

    • External sources temporarily unavailable.
    • Documents missing certain metrics.
    • Duplicate triggering of the same update task.
    • Storage write failures.
    • Restart after an execution interruption.
    • Illegal user input or lack of access permissions.

    Exception handling often reflects engineering maturity better than UI effects.

    6.3 Record Result Metrics and Process Metrics Separately

    Result metrics include feature pass rates, data accuracy, permission boundaries, and deployment reproducibility.

    Process metrics include total time spent, effective iterations, invalid retries, human interventions, and costs.

    Do not rank solely based on execution speed. Quickly delivering a project that cannot start is usually less valuable than a slightly slower delivery that passes acceptance.

    6.4 Repeat Tests for Critical Scenarios

    Agent execution can be random. A single success does not prove stability, and a single failure does not represent overall capability.

    Multiple rounds of evaluation can be conducted on critical tasks to observe success rates, time distribution, and common failure types. When the sample size is small, the observation scope should be clearly stated, and universal conclusions should not be drawn.

    7. Security and Operability: The Baseline for Production Applications

    Agents can read files, modify code, and trigger external operations, so their risks come not only from incorrect answers but also from incorrect actions.

    In actual use, isolated environments, least privilege, and human approval mechanisms should be prioritized. Operations such as deleting data, modifying access controls, reading sensitive credentials, and changing production configurations should have clear boundaries.

    Financial report monitoring also involves external text input. Content from web pages and documents should only be treated as material to be analyzed, not as new system instructions. Even if the material contains text instructing the agent to execute commands, leak information, or change task objectives, the agent’s permissions should not be expanded accordingly.

    Operability also needs to be designed in advance. Tasks should at least log run identifiers, start and end times, processed objects, failure reasons, and retry details. Logs should aid troubleshooting but should not contain secret keys or unnecessary sensitive business data.

    For scheduled collection and update processes, idempotency and recovery points should also be considered. Rerunning a task should not produce duplicate records, and an interruption should not force execution to start from scratch.

    8. Conclusion: Returning Capability Assessment to Verifiable Deliverables

    When evaluating open-source LLMs and intelligent programming systems, the most important aspect is not whether a demonstration is stunning, but whether it can continuously complete work under real-world constraints.

    A more robust selection process is: first clarify the open-source scope and usage conditions, then verify engineering delivery with real business tasks; first check the execution loop of a single agent, then determine whether multi-agent collaboration is needed; finally, make a decision based on stability, security, and total cost.

    When evaluation criteria shift from “how much content was generated” to “how many results passed acceptance,” developers can more accurately distinguish display effects from engineering value, and truly integrate agents into manageable, traceable, and continuously improvable R&D processes.