Long-Context Coding Test of a New AI Coding Assistant: Capabilities and Limits
A hands-on evaluation of a new AI coding assistant across two real-world scenarios: adding security features to a legacy web project and building a learning game from scratch. The results show strong long-horizon task execution and multi-file consistency, but also reveal gaps in threat modeling and permission isolation that still require human review.
Why Long-Context Coding Matters
In everyday use, most AI coding assistants handle single-point tasks well enough: generating a function, filling in a piece of logic, or fixing an error. The problem appears when task scale grows. When a requirement calls for building features across modules and files in an existing codebase of tens of thousands of lines, the model must understand context, maintain state, and plan multiple steps. These three capabilities determine whether it can take on real work.
This article documents a hands-on test of a new-generation AI coding assistant. The test covered two scenarios: adding a security feature to a legacy project, and building a learning game from scratch. The two scenarios differ significantly in difficulty and nature, making it easier to observe how the model performs under different conditions.
Model Background and Test Scope
Official materials position the model as an open-source model with strong coding capabilities. According to the official introduction, the base model was not changed; the improvements come mainly from the post-training stage, including an expanded training environment for long-horizon tasks. These claims come from public sources and were not independently verified for this article. For specifics on the scale of the training environment expansion and training duration, refer to the official technical report.
This test did not record the model’s exact version number, invocation parameters, or runtime environment. The conclusions below therefore apply only to these two samples and do not represent the model’s performance across all projects.
Test 1: Adding a Security Feature to a Legacy System
Task Requirements
The task was to add a secure user image asset import feature to an existing web project with a large amount of legacy code, and allow HTML animation scenes to reference those assets. The requirements included the following constraints:
- Authentication and authorization: Both upload and reference operations must verify login state and resource ownership to prevent unauthorized access to other users’ assets.
- Content safety: Validate file format and size, and perform content scanning.
- Storage adaptation: Integrate with the existing object storage, with file paths handled through an abstraction layer to avoid coupling with specific implementations.
- Frontend rendering: The asset reference chain must not introduce arbitrary file read or XSS vulnerabilities.
- Legacy constraints: The new feature must not break the runtime logic of existing modules.
Execution Process
In an unfamiliar repository, the model quickly located key configuration files, route registration entry points, and utility modules, and produced a step-by-step modification plan. The implementation covered interface definitions, database schema changes, task state machine extensions, new APIs, asynchronous worker processing, and frontend integration — a typical cross-module task.
Across multiple layers of the call chain, the model consistently maintained the premise that “uploaded assets must belong to the currently logged-in user.” In long tasks, early constraints are often lost during later changes, so this is worth noting.
Problems Exposed
During manual acceptance testing, a high-priority (P1) permission isolation issue was found. Under a specific edge condition, requests bypassed the regular API entry point and directly accessed temporary links generated by the storage layer, where no authorization logic was executed. As a result, unauthorized requests could read other users’ assets.
The model correctly implemented authorization on the regular API routes. The problem was that it failed to account for all possible resource access paths. In other words, its understanding of the security boundary remained at the level of individual endpoints, lacking threat modeling of the system’s overall attack surface.
Suggested fixes include:
- Route all asset access through a unified resource access gateway; never expose storage addresses directly.
- Perform authorization on the server side, without relying on parameters passed in from the frontend.
- Sign temporary links and give them short expiration times.
- Write regression tests for unauthorized access, covering the path of directly accessing storage links.
Test 2: Building an Agent Learning Game from Scratch
Task Requirements
The second task provided only an Agent learning document and a PRD, and asked the model to design and implement a completable learning game. This task simultaneously tests information extraction, product design, and architecture skills.
Execution Results
The model proactively added game elements such as experience points, level unlock conditions, and an achievement system, making the overall experience more complete. The core mechanic is learning knowledge points by solving problems, with levels progressing by difficulty and a generally reasonable distribution of topics.
The generated code included frontend pages, backend APIs, data persistence, and state management. The project ran locally and was fully playable, going beyond a demo prototype.
Limitations
The main issues were in UI details and interactions. Some button states did not update with game progress, and a few levels had slight inconsistencies between hints and answers. These issues can be fixed item by item with a test checklist and did not require architectural rework. This test did not record the number of levels or completion counts, so no coverage data can be provided.
What This Test Reveals
Based on the two samples, the following observations can be made:
- In development involving multiple files, the model maintained its grasp of design intent over a fairly long process. A common problem in earlier model versions was forgetting the design plan after switching between files. No control group was set up for this test, so this conclusion should be treated as an observation only.
- In long-running tasks, the model could keep making progress, correct issues based on test feedback, and bring the task to a runnable, testable state.
- In white-box code review, the model could detect common issues such as SQL injection, path traversal, and hardcoded secrets. When facing business logic flaws and permission model defects, its judgment was not sufficient to replace a security engineer’s final review.
- The code’s module structure and naming were closer to common team conventions, reducing some cleanup effort. The magnitude of the efficiency gain depends on task type and team workflow; no statistical testing was done in this test.
Boundaries and Recommendations
Work Suitable for the Model
- Prototyping: From PRD to a runnable MVP, well suited to the product validation stage.
- Cross-module features with clear architecture: When boundaries are already defined, the model can efficiently complete multi-file implementations.
- First-pass code review: Helps quickly locate suspicious code segments; conclusions still need human confirmation.
Where Human Judgment Must Remain
- Permission models and security boundaries: Multi-tenant isolation, privilege escalation protection, and sensitive data access control require human threat modeling.
- Legacy system compatibility: Implicit rules in historical code are often undocumented, and humans need to confirm whether the model has understood them.
- Final acceptance: All tests passing is only the baseline bar; business correctness and security compliance still require human confirmation.
Recommended Workflow
A “humans define the framework, the model implements, two-person review” process is recommended:
- Phase 1: Humans define security boundaries, data flow constraints, and module interfaces.
- Phase 2: The model handles feature implementation and code details. When architectural issues arise, pause and hand the decision back to humans.
- Phase 3: Review should cover both security and business perspectives, with a focus on assumptions the model did not state.
Acceptance Checklist
Before going live, verify each item:
- Unauthorized access: Requesting with another user’s resource identifier should be rejected.
- Temporary links: Expired, unsigned, or tampered links must not work.
- XSS: Asset names, descriptions, and reference parameters must be escaped so scripts cannot be injected.
- Object storage permissions: Storage buckets must not allow public read access, and write permissions should be minimized.
- Legacy regression: Core flows of existing modules must still pass existing tests after changes.
- Error handling: On upload failure, scan timeouts, or worker interruptions, state must be recoverable and no orphan files should be left behind.
Conclusion
Across the two samples, the model showed clear progress. It could understand unfamiliar projects, keep pushing multi-file tasks forward, and bring a prototype to a runnable state. The permission isolation issue also shows that its grasp of the complete attack surface remains insufficient.
For developers, the sensible approach is for humans to own architecture and security boundaries, let the model accelerate implementation, and have humans make the final judgment. Larger samples and fixed test environments would make conclusions like these more reliable.
