Hands-On Low-Level Development with AI Coding Assistants: Comparing the Capability Boundaries of K2.5, GLM-5, and MiniMax M2.5
This article presents a practical evaluation of three mainstream AI coding assistants through a complete firmware-level development project: building a graphical Snake game in the UEFI Shell environment using the EDK2 framework. Over roughly three and a half hours and 27 rounds of prompts, the three models (referred to as Model A, Model B, and Model C) were compared across four dimensions: project management, environment setup, hardware abstraction layer usage, and multi-round iteration stability. The article details each model's behavior in directory discipline, QEMU-based emulation setup, GOP framebuffer rendering, and long-context code iteration, then summarizes their respective strengths and risks, and concludes with practical collaboration guidelines for developers working with AI assistants on low-level system development.
Introduction: Evaluating AI Coding Assistants in Low-Level Development Scenarios
As large language models have made rapid progress in code generation, AI coding assistants have evolved from “autocomplete tools” into “collaborative developers” capable of independently completing complex engineering tasks. However, most capability benchmarks focus on high-level application development such as web apps and data processing. For low-level system development — which requires direct hardware interface manipulation and firmware-level protocol handling — the real performance of these models is often underestimated or overestimated.
This article uses a complete, hands-on project as its test case: developing a graphical Snake game in the UEFI Shell environment. Three mainstream AI coding assistants (referred to as Model A, Model B, and Model C) each completed the project independently, and their performance was compared across four dimensions: project management, environment configuration, hardware abstraction layer usage, and multi-round iteration stability. The entire development process took about three and a half hours and involved 27 rounds of prompt instructions, covering everything from setting up the EDK2 build environment from scratch to producing a runnable binary.
1. Technical Background and Challenges of UEFI Development
1.1 Special Requirements of Firmware-Level Development for AI Coding Assistants
UEFI (Unified Extensible Firmware Interface) development differs fundamentally from regular application development. First, it runs before the operating system loads, which means developers cannot rely on any runtime libraries or system calls — all functionality must be implemented through the protocol interfaces defined by the UEFI specification. Second, the build system of EDK2 (the UEFI development kit) is extremely complex, involving numerous platform description files (DSC), package declaration files (DEC), and metadata files (INF).
For an AI coding assistant, this means it must go beyond general programming logic and possess the following capabilities: accurate knowledge of the UEFI specification (including the GOP graphics output protocol, serial port protocols, and timer services); a deep understanding of the EDK2 build system’s directory structure and configuration file syntax; and the ability to spot potential problems through code review in an environment where no debugger can be run.
1.2 The Central Role of the Graphics Output Protocol
GOP (Graphics Output Protocol) is the standard interface for graphics display in the UEFI environment. Through this protocol, developers can directly manipulate the graphics card’s frame buffer and achieve pixel-level drawing control. The Snake game’s rendering requirements include: a double-buffering mechanism to avoid screen tearing, fast drawing and erasing of sprites, and frame synchronization.
In a bare-metal environment without operating system support, double buffering requires the developer to manually manage two independent frame buffers and switch between them during the vertical blanking interval. This process involves extensive low-level memory operations and hardware timing control, placing extremely high demands on code accuracy.
2. Hands-On Process: A Capability-by-Capability Comparison of the Three Models
2.1 Project Management and Directory Structure: The Hidden Risk of Overstepping Boundaries
In the first phase of development, we needed to initialize the project structure in an empty folder and create a Chinese-language CLAUDE.md file describing the project specification. After receiving the initialization instruction, Model A displayed a surprising tendency to “act on its own initiative”: instead of strictly creating the project in the current working directory, it went one level up and established the EDK2 source tree in the parent directory. Subsequently, during compilation, it created the build tools directory, output directory, and configuration file directory in the parent directory as well, completely disrupting the intended project structure.
A similar problem appeared in Model B’s test, indicating that this is a common issue for current AI coding assistants when handling low-level projects — they tend to replicate the directory management habits of conventional Linux development environments while ignoring UEFI development’s need for strict path isolation. By contrast, Model C accurately respected the directory constraints from the very first instruction: all intermediate artifacts were generated in designated subfolders within the current working directory, demonstrating better instruction-following ability.
The root of this difference lies in the models’ “working memory” mechanisms: when an instruction contains multiple constraints (such as “in the current directory,” “use the UEFI GOP protocol,” and “no sound needed”), the model must continuously track these constraints throughout the multi-turn conversation. Models A and B “forgot” the initial path constraint at certain intermediate steps, while Model C maintained instruction consistency more reliably.
2.2 Setting Up the Emulation Environment: QEMU Invocation Strategies
Since UEFI applications cannot run directly in a conventional operating system, we needed to verify program behavior in an emulator. After the prompt explicitly mentioned the need for emulated execution, Model A chose to download a precompiled QEMU emulator from the internet and attempted to configure UEFI firmware support. While this strategy is feasible, it has two problems: first, there is a compatibility risk between the downloaded emulator version and the already-configured EDK2 version; second, while drilling down into the configuration, the model repeatedly executed commands at the wrong directory level, causing the firmware image to fail to load.
Model B adopted a different strategy — it directly used EDK2’s built-in emulator support, generating binaries runnable in an emulator through compilation options. This approach is more elegant and avoids version conflicts with external tools, but it also exhibited similar path confusion during configuration.
Model C was more flexible: upon recognizing that no emulator was preinstalled in the current environment, it first searched the system PATH for available virtualization tools, then selected an existing option that supports UEFI boot, and automatically completed the environment variable configuration. It finished setting up the runtime environment in a single instruction interaction, whereas Models A and B took 4 and 6 rounds of dialogue respectively to resolve the problem.
2.3 Graphical Rendering: Accuracy of Frame Buffer Operations
This was the most challenging part of the entire development process. Rendering the Snake game involves querying the GOP protocol, memory-mapping the frame buffer, identifying pixel formats (including different layouts such as RGB32 and BGR32), and managing double-buffer flipping.
When implementing the basic rendering framework, Model A handled the GOP mode query logic correctly, but exhibited a typical “boundary condition oversight”: when allocating frame buffer memory, it failed to correctly handle cases where the display resolution is not aligned to 4 pixels, causing image offsets at certain resolutions. This problem cannot be detected at compile time and only surfaces at runtime, placing high demands on debugging ability.
Model B’s implementation was logically more rigorous — it correctly handled pixel alignment and added an adaptive resolution adjustment mechanism. However, for the buffer-flipping strategy, Model B chose a full-copy approach, copying the entire buffer content on every update. While simple to implement, this incurs significant performance overhead at high resolutions, reducing the game’s frame rate.
Model C produced the highest code quality of the three. It adopted a region-update strategy — copying only the portions of the buffer that changed (the snake’s movement area, the food spawn area) — and synchronized drawing operations with the vertical blanking interval, achieving smooth visual updates. Additionally, it added particle-effect visual feedback when drawing food, demonstrating richer graphics programming techniques.
2.4 Multi-Round Code Iteration: Maintaining Context in Long Conversations
During development, we carried out three rounds of feature iteration: the first round implemented the basic game logic, the second added a multi-level system and obstacle mechanics, and the third completed localization of the interface and prompt messages into Chinese. Each round required modifying code on top of the existing base rather than regenerating it, placing high demands on the models’ contextual understanding.
Model A maintained good focus across the three iterations, but in the third round it introduced a “regression error” — while modifying interface text, it accidentally broke the previously completed collision detection logic. This reflects insufficient awareness of protecting unrelated modules when handling high-dimensional code modifications.
Model B performed excellently: before each round of modification, it first summarized the key structure of the current code and then made targeted changes based on that summary, effectively avoiding regression errors. The trade-off was that each iteration required additional dialogue turns to complete the “summary,” slightly reducing overall efficiency.
Model C took a middle path: it established a modular code architecture early on (separating game logic, rendering, and input handling into different source files), so that subsequent iterations could modify only the relevant module without affecting the whole. This forward-looking architectural design was unique among the three models and a key factor in its highest overall development efficiency.
3. Capability Map: The Strength Zones of Each Model Across Dimensions
3.1 Model A: Comprehensive Foundational Ability with “Defocusing” Risk
Model A demonstrated balanced coverage of broad foundational knowledge, handling everything from environment setup to graphics rendering. However, its greatest risk lies in “goal drift” — gradually deviating from the user’s initial instruction constraints over multi-step operations. Especially in “safety boundary” tasks involving directory management and permission control, Model A tends to act according to its own “habits” rather than strictly respecting user-defined operational boundaries (it attempted to access the parent directory and install global tools without skip authorization). In real engineering collaboration, such boundary-overstepping behavior can pose serious security risks.
3.2 Model B: Rigorous Logical Reasoning with a Tendency Toward “Over-Engineering”
Model B’s analytical ability was the strongest of the three. It tends to present a complete logical derivation process before taking action, which is very useful for solving complex problems. However, its “over-engineering” tendency — deliberately or inadvertently introducing generalized handling mechanisms beyond the scope of requirements (such as full-buffer copying and adaptive resolution detection) — can lead to unnecessary performance overhead or increased complexity in certain scenarios. For firmware-level development that values lean implementation, appropriate restraint is also an important dimension of code quality.
3.3 Model C: Engineering Architecture Awareness with “Patterned” Aesthetics
Model C’s most notable characteristic is its proactive “architectural thinking.” It does not merely complete tasks according to instructions; it also considers the convenience of subsequent iterations, establishing a modular code structure in advance. This kind of initiative that “goes beyond the instruction” is extremely valuable in complex engineering tasks and greatly improves overall development efficiency. However, when dealing with highly non-standard, user-defined coding style conventions, it sometimes tends to fall back on its own familiar “idiomatic patterns,” resulting in generated code whose style is inconsistent with the existing project.
4. Recommended Collaboration Paradigms for AI Coding Assistants in Low-Level Development
4.1 Make Constraints Explicit: Embed Safety Boundaries into Every Round of Dialogue
Across the tests of all three models, problems of varying degrees appeared whenever “operational constraints” were involved — permission boundaries, directory locations, dependency sources, and so on. We recommend that developers explicitly write constraint conditions (such as “only operate within the current directory” or “do not download external dependencies”) into the initial system prompt when collaborating with AI coding assistants, and repeat the reminders at every critical stage. Just as permission checks in code should not be performed only once, operational constraints on models likewise need “continuous enforcement.”
4.2 Architecture First: Decide the Module Division Strategy Before Coding
As Model C’s performance shows, a good modular architecture not only improves code quality but also significantly reduces the communication cost of subsequent iterations. We recommend that developers, when starting a project, first ask the AI coding assistant to propose a recommended code structure and module division based on the requirements, review and confirm it, and only then proceed to concrete implementation. This “design review” model incorporates the model’s architectural capability into the engineering quality assurance system.
4.3 Phased Delivery: Manage Long Tasks with Small Milestones
In practice, asking a model to output a complete project’s code in one go often introduces numerous integration problems that are hard to locate. A more reliable approach is to break the task into multiple independently verifiable milestones (for example, first implement the logic core without a graphical interface, then integrate GOP rendering, and finally add visual effects), verifying and reviewing after each milestone before moving to the next phase. This approach distributes the error-correction cost of complex tasks across multiple checkpoints, effectively reducing overall risk.
4.4 The Irreplaceability of Human Review
Although all three models demonstrated impressive code generation capabilities, they each exhibited oversights of varying degrees in specialized areas involving hardware timing, memory alignment, and UEFI specification details. AI coding assistants are powerful “efficiency amplifiers,” but at the current stage they cannot replace developers’ professional judgment. Any generated critical code — especially low-level portions involving hardware interaction — must undergo rigorous code review and real-world testing before being put into production.
5. Conclusion: Making Rational Choices Amid Continuously Evolving Capabilities
In this UEFI firmware-level game development project, the three AI coding assistants each displayed differentiated capability profiles: Model A offers comprehensive knowledge coverage but needs improvement in reliability; Model B excels at rigorous reasoning but tends toward over-engineering; Model C leads in engineering architecture awareness and is the choice closest to a “senior developer collaboration model.”
For developers, choosing the right AI coding assistant should be based on the specific project’s technology stack characteristics and execution requirements. In low-level system development scenarios, prioritize the model’s strictness in instruction following, its modular architecture capability, and the accuracy of its debugging reasoning — rather than raw code generation speed alone. As large model technology continues to evolve in code generation, we have good reason to expect AI coding assistants to achieve further breakthroughs in low-level development and become truly reliable technical collaboration partners.
