Evaluating AI Coding Agents for UEFI Low-Level Development: A Hands-On Test
This article describes a hands-on test in which an AI coding agent built a sound-free Breakout game for the UEFI Shell, with keyboard control, basic collision detection, and on-screen Chinese text. It covers where the agent performed well, where it struggled, and how missing resources and debugging shaped the outcome. It ends with a practical human-AI workflow for low-level projects.
As smart coding tools improve quickly, more developers are asking a basic question: can AI only generate routine business code, or can it now take part in low-level system development?
In application development, AI can usually rely on abundant public resources to build interfaces, process data, and call APIs. Firmware, boot environments, hardware initialization, and register-level programming are different. Developers there must do more than figure out how to implement a feature. They also have to deal with a missing runtime environment, strict interface constraints, limited debugging tools, scattered documentation, and large differences between hardware.
Generating a few hundred lines of code does not show how capable an AI coding agent is. A better test is whether it can understand the target environment, set up a project structure, handle low-level constraints, and keep correcting its work after compile errors and runtime failures. This article uses a graphical Breakout game running in the UEFI Shell as a case study and breaks down the capabilities of a coding agent in low-level development.
Why Use the UEFI Shell as the Test Environment
The UEFI Shell is not a full operating system in the traditional sense. It typically provides limited boot services, file access, input and output interfaces, and a graphics output protocol. It lacks a mature window system, font libraries, audio frameworks, and advanced debugging tools.
As a result, even a simple game requires the developer to solve several basic problems:
- How to create an executable that meets the requirements of the boot environment;
- How to get the screen resolution and the graphics framebuffer;
- How to draw the background, paddle, bricks, and ball;
- How to read keyboard input and respond in real time;
- How to implement collision detection and game state management;
- How to display Chinese characters;
- How to locate problems without a conventional debugger.
On a desktop system, graphics frameworks and system services handle these tasks. In the UEFI Shell, many capabilities require calling low-level protocols directly, or building basic components from scratch. This type of test shows more clearly whether the AI understands the program’s runtime environment, rather than just assembling common code templates.
Test Conditions: Minimizing Manual Intervention
To keep the developer’s own experience from skewing the results, the test used fairly strict conditions:
- Only a basic build environment was provided;
- No existing code library was provided;
- No graphics, input, or font modules were written in advance;
- Only the target features and runtime constraints were given;
- The AI could create its own directory structure, build scripts, and documentation;
- The human only ran commands, reported errors, and confirmed test results.
This setup does not match a real production environment. In real projects, experienced developers usually provide interface documents, hardware manuals, existing code, and test cases. The value of a strict test is that it shows whether an AI agent, when information is scarce, can break down the problem, ask clarifying questions, and narrow the scope through verification.
The test instruction can be summarized as:
Create a graphical application for the UEFI Shell in the current directory. It should implement a sound-free Breakout game with keyboard control, basic collision detection, and a Chinese-language interface, and it should have a project structure that compiles and runs.
The goal sounds clear, but it hides many requirements. Where does the Chinese font come from? How is the screen’s color format determined? Is input handling blocking or polling? Do different firmware implementations support the same graphics protocol?
How the AI Performed During Project Setup
The first strength of a coding agent is that it can quickly turn a natural-language goal into a project plan. A mature workflow usually includes the following steps.
1. Analyzing the Target Environment
The AI first needs to confirm that the program runs in a boot services environment, not a regular operating system. It cannot rely on window components, standard graphics libraries, or operating system thread interfaces.
2. Planning the Module Structure
A reasonable project can be split into at least these modules:
- Entry point module;
- Graphics output module;
- Input handling module;
- Game logic module;
- Collision detection module;
- Font and text drawing module;
- Main loop and timing module;
- Build configuration and
