Evaluating Long-Horizon Coding with Open-Source Models Through Real Projects

    Benchmark scores show how models perform on standardized tasks, but real projects reveal whether they can handle ambiguity, hidden constraints, security requirements, and sustained cross-module work. This article compares two stress tests—extending a legacy system with security-sensitive functionality and building an Agent learning game from scratch—to examine the progress and remaining limitations of a new generation of Chinese open-source coding models.

    Why Evaluate Coding Models on Real Projects Instead of Benchmarks?

    Whenever a new generation of open-source models is released, benchmark scores are usually the first topic of discussion. To me, however, benchmark results mainly indicate a model’s lower bound on standardized problems. Engineering practice is more concerned with its upper bound on non-standardized tasks. The gap between the two often becomes visible only in real projects.

    Benchmark questions typically have three characteristics:

    • Clear objectives: The desired outcome is explicitly defined.
    • Self-contained context: The information needed to solve the problem is provided within the task.
    • A single acceptance standard: The solution can be evaluated against a relatively unambiguous answer.

    Real engineering work is often the opposite:

    • Ambiguous goals: Requirements may describe expected behavior without specifying the implementation path.
    • Sparse context: Many constraints are hidden in legacy code, comments, configuration files, and undocumented team conventions.
    • Multiple acceptance criteria: The result must not only work, but also be secure, maintainable, and testable.

    To stress-test these capabilities, I designed two very different tasks. The first focused on understanding an existing system while handling security constraints. The second examined the complete process from analyzing reference material to delivering a working product. I will first describe the task design, then discuss capability improvements between model generations, and finally summarize the acceptance results and a reusable evaluation methodology.

    Two Long-Horizon Coding Tasks

    Task One: Adding a Security-Sensitive Feature to an Existing Project

    The first task used a project with a substantial amount of legacy code. The model had to add support for securely importing user image assets and referencing them in HTML animation scenarios.

    Although this may sound like a routine feature, it contained several engineering traps:

    1. Legacy constraints: The project already had established data models and API conventions. New code needed to fit the existing style rather than introduce an unrelated architecture.
    2. Cross-module changes: The implementation covered the storage layer, service layer, API gateway, and frontend rendering. A contract mismatch at any point could make the feature unusable.
    3. Security requirements: Image imports naturally involve file-type validation, size limits, metadata sanitization, storage-path isolation, and access control when assets are referenced. The project also had an existing permission system that the new feature needed to integrate with correctly rather than bypass.

    The central question was whether the model could understand a complex context, continue making coordinated changes across multiple modules, and bring the feature to a runnable and testable state.

    Task Two: Building a Playable Agent Learning Game from Scratch

    The second task provided only two inputs: learning materials about Agent technology and a product requirements document. The model had to build an Agent knowledge-learning game that users could actually complete.

    This task tested a different set of capabilities:

    • Material comprehension and knowledge modeling: Could the model extract key concepts, difficulty levels, and assessment formats from unstructured material?
    • Product completeness: The game needed a complete loop covering question generation, answer evaluation, progress persistence, and completion-state logic. Missing any one of these elements would prevent the user from truly completing the game.
    • End-to-end delivery: There was no existing codebase to rely on, so the model had to make all major architectural decisions independently.

    Where the New Generation Improved

    Before discussing the latest results, it is useful to establish a baseline using the previous generation. In an earlier experiment, I used the previous version to add a complete HTML animation video-generation pipeline to a monorepo. The work involved contracts, database changes, a task state machine, APIs, a worker, the web frontend, and the renderer. The first implementation took approximately 70 minutes, followed by about 60 minutes of browser validation and fixes.

    This showed that the previous model already had a basic ability to work continuously in a monorepo and handle full-stack features across the frontend and backend.

    The new generation should be evaluated against that baseline. Notably, the underlying model architecture was not replaced, and the parameter scale remained unchanged. Most of the improvement came from post-training scaling: the training environments for long-horizon tasks expanded by several dozen times, the range of environments became broader, and training time increased significantly.

    This aligns with a broader industry observation: as the returns from pretraining begin to diminish, the diversity of post-training environments and the length of training tasks become important levers for improving long-horizon coding ability.

    The official improvements can be summarized in three areas:

    1. Coding capability: The model remains highly competitive among open-source models on several terminal-operation and software-engineering benchmarks, with greater emphasis on long-horizon tasks and production-oriented engineering scenarios.
    2. Cybersecurity: Its capabilities extend beyond code generation to white-box code review and vulnerability reasoning. It approaches leading closed-source models on basic security tasks, although it still lags behind them in complete exploit-development scenarios.
    3. Long-context processing and task continuity: Its ability to continue work across modules and files has improved.

    My experiments focused primarily on the first and third areas.

    Results and Key Findings

    The From-Scratch Task Performed Very Well

    The learning-game task exceeded expectations. The model extracted a reasonable learning path from the source material and designed a progression of levels with increasing difficulty. The question-generation logic, answer evaluation, and completion state machine operated coherently.

    The final product could be completed from beginning to end, demonstrating a practically useful ability to transform reference material into a functioning product.

    The stability of the intermediate process was particularly notable. During several hours of continuous work, the model did not lose sight of the original objective. Across multiple rounds of tool calls, it retained a consistent understanding of the overall architecture and continued working toward the same product goal.

    The Legacy-System Task Worked, but Exposed a P1-Level Issue

    The legacy-project extension also reached a runnable state. The main workflow worked, and the primary tests passed. However, manual acceptance testing uncovered a P1-level permission-isolation defect: when referencing user assets, the new feature did not strictly verify resource ownership. In theory, this created a risk of unauthorized access.

    This case illustrates several common failure modes in current large-model coding:

    • Functional correctness is not the same as security correctness. The model optimized for passing tests, while security constraints often lack corresponding test cases.
    • Implicit conventions in legacy code are easy to miss. The permission system was distributed across older middleware and data-layer code. Although the model had read those components, it did not consistently carry their constraints into the new code path.
    • Automated validation has blind spots. A clean build, passing unit tests, and successful primary-flow regression testing do not prove that permission boundaries, concurrency conditions, or exception paths are correct.

    Conclusions and a Reusable Evaluation Methodology

    Taken together, these two tasks suggest that the new generation of open-source models has raised the upper bound of long-horizon coding capability. It is now worth investing in validation through real projects, particularly for long tasks with clear objectives and fast regression cycles.

    However, manual review remains essential when permissions, security, or data isolation are involved—areas where failures can have serious consequences. A green test suite does not automatically mean that the code is safe to ship.

    Based on this experiment, I would recommend the following methodology for evaluating coding models:

    1. Use two complementary stress tests: Combine an extension task in an existing project with a from-scratch implementation. The first tests contextual understanding, while the second tests completeness. Either task alone provides only a partial picture.
    2. Include explicit security traps in the requirements: Add constraints such as permission checks, resource ownership, and input sanitization to the requirements without necessarily encoding them in the tests. This reveals whether the model covers them proactively.
    3. Make manual acceptance the final gate: Review authentication and authorization paths, data boundaries, and exception handling line by line. Pay particular attention to the boundary between newly generated code and the legacy system.
    4. Evaluate process stability, not just the final result: Goal drift and contract inconsistencies during a long task may reveal more about practical usability than an isolated bug.
    5. Use standard cloud services to reduce validation costs: General-purpose object storage, logging, monitoring, and alerting services can help create an observable validation environment for model-generated code, allowing problems to surface before deployment.

    The boundaries of large-model coding ability are moving outward quickly, but the basic division of labor between humans and models has not changed. Models can move an engineering task toward “it runs.” Humans must still determine whether it should run that way. For the current stage of AI-assisted development, that remains the most practical collaboration model.