AI Coding Tools in Practice: From Zero to One and From Good to Better
This article is a hands-on retrospective on using AI coding tools as the primary executor of real development work. Using a firmware project—one with a specific toolchain, incomplete documentation, and mixed Chinese-English code—as the test bed, the author evaluates the tools across two rounds: getting an unfamiliar project from zero to its first successful run, and then improving it from merely running to genuinely usable. The article documents concrete pitfalls (counterproductive "insurance" copies, shell-script quoting issues, encoding-related build failures, and display defects that live outside the code) and distills a reusable human-AI collaboration method built on structured requirements, incremental verification, project rule files, high-quality feedback loops, and keeping the final judgment with humans. It closes with a framework for evaluating which AI coding tool fits a given team, plus advice for developers, teams, and technical managers.
Introduction: Why “Two Rounds” Is a Better Measure of a Coding Tool
Being able to produce a program at all is a coding tool’s baseline capability. In a project with a complex structure, many dependencies, and incomplete documentation, what really shows engineering competence is whether the tool can independently drive the project from zero to a “first successful run,” and then push it from “it runs” to “it’s good and easy to use.”
I chose a firmware project as the test bed. Projects of this kind have a few distinct characteristics:
- They span multiple stages: compilation, linking, packaging, and image generation;
- They depend on a specific toolchain and are sensitive to the system environment;
- The source code is non-trivial, and the documentation is often out of sync with the actual state;
- Some code and comments are written in Chinese.
Throughout, I used an AI coding tool as the primary executor and tested it across two phases: “zero to one” and “good to better.”
Why not test with a small program?
CRUD demos, to-do lists, and blog pages have abundant resources and fixed patterns, so almost any tool can produce them “in one shot.” That kind of task can’t exercise engineering capability or reveal the real collaboration cost. I picked this firmware project precisely to see how the tool behaves when facing an unfamiliar codebase, hidden environment dependencies, and “invisible display problems.” What these problems have in common is that the answer isn’t in the code—it’s outside the code, and you can only be sure of it through real feedback.
1.1 Test Scenario and Constraints
At the start, all I had was a source tree obtained from an open-source community, and I was not familiar with its build system. I set three ground rules, and every conclusion below rests on them:
- AI executes, human verifies: All changes are made by the AI; I review diffs, supply error output and observed behavior, and give the final sign-off.
- Real feedback first: Conclusions must be grounded in compile output, runtime results, or reproducible steps. Speculation like “it should work” or “usually there’s no problem” is not accepted.
- Irreversible operations need confirmation: Deletions, forced overwrites, and commands that raise privileges must first come with an explanation of their purpose and scope of impact.
1.2 How the Two Rounds Were Divided
| Round | Phase | Core Task | Main Difficulty | AI Performance |
|---|---|---|---|---|
| Round 1 | Zero to one | Set up and verify the build environment | Implicit environment dependencies, path detection, command details | Explores fast; local details are error-prone |
| Round 2 | Good to better | Feature enhancement, visual polish, display debugging, Chinese support | Vague requirements, intermittent display defects, encoding issues | Iterates fast; needs clear goals and feedback from the human |
Part One: Round 1 — Zero to One, Making the Project Actually Run
1.1 The Real Difficulty of Round 1
The goal of Round 1 was plain and clear: get the project to compile, link, and package on my machine, and ultimately run. It sounds like just “getting the pipeline working,” but the difficulty lies in a large amount of “implicit knowledge”:
- What system-level dependencies are needed before the build is often not fully recorded in the source;
- Some source files live in special directories, and the directory names are themselves part of the build convention;
- Build descriptor files depend on external environment variables, and the examples in the documentation often diverge from the actual environment;
- Whether it ultimately runs also depends on the runtime environment meeting certain conditions—for firmware, that means virtualization or emulation support.
This knowledge is scattered across the directory structure, file names, and build scripts. A person would spend a lot of time probing for it, whereas a coding tool—as long as it can thoroughly read the repository—can quickly piece these clues together. This is where the AI shows its clearest efficiency advantage in the “zero to one” phase.
My approach was to first have it read through the directory tree and build descriptor files and produce an “environment dependency list,” marking which conclusions are backed by files and which are mere guesses. That list became the foundation for everything that followed.
1.3 Interlude One: A Counterproductive “Insurance” Copy
Symptom: The list showed that the build required placing some source files into a special directory. The AI noticed that files with the same names already existed in the target directory, and it lacked enough information to judge whether overwriting them was safe. So it first backed up the entire directory, then copied the source in. In the next several turns, every operation touching that directory was preceded by a full copy.
Consequence: After each phase, the directory had accumulated several “copy + timestamp” backups. When I later cleaned up the environment, I had to sort out one by one which was the currently valid version. The more insidious risk is that if subsequent edits landed on a copy, the build would silently use old code. Tracking down that kind of problem often takes hours—far more expensive than spending a few extra minutes up front to confirm whether overwriting was safe.
Analysis: This is a kind of “insurance behavior.” When uncertain, the AI tends to complete the task in the most conservative way that is least likely to “lose data,” while ignoring the side effects:
- Redundant files polluted the working directory and broke the “single source of truth”;
- The backups had no clear purpose and no accompanying cleanup strategy, so a temporary measure turned into a long-term burden.
Countermeasure: I kept a rule file in the project root that the tool reads at the start of every session:
# Project Collaboration Rules- Minimal-change principle: prefer modifying existing files; do not create duplicate copies.- Do not perform irreversible operations such as deletion, forced overwrite, or privilege escalation; first explain the scope of impact and get human confirmation.- Put all temporary files under `.tmp/` and clean them up when the task is done.- At the end of each task, output: the list of modified files, the verification method, and the verification result.
Takeaway: A coding tool is not “better the more cautious it is.” Caution without constraints creates “hidden technical debt.” A rule file lets you feed the team’s engineering conventions to the AI up front, so it knows the boundaries before it starts.
1.4 Interlude Two: Detours in the Shell Build
Symptom: The build entry point for this project was a shell script. After the AI patched in a few commands per the documentation, the script still wouldn’t run and threw several classes of errors in succession:
- Paths containing spaces caused command arguments to be split into multiple segments;
- Variables weren’t expanded under a certain quoting style, so a literal string was passed in;
- When referencing a variable in a special mode, an undefined variable caused the script to exit outright;
- A few commands behaved differently on the current system than expected.
Analysis: Each of these errors is basic on its own, but when they cluster together, the AI tends to play “whack-a-mole”: fix one spot and another pops up, repeating for many rounds. There are two root causes:
- Shell parsing rules are highly context-dependent—spaces, quoting, and the mode of variable expansion all change what a command means.
- Error messages often point to a downstream command, such as “file not found” or “invalid argument,” while the real fault is on the previous line.
In a familiar scenario, a person sidesteps these pitfalls from experience; the AI needs explicit constraints and accurate first-hand error output.
Countermeasure: Rather than having it rewrite the whole thing at once, it’s better to break the problem into smaller pieces and make verification concrete:
- Require segment-by-segment verification: check immediately after each script segment runs whether the expected artifacts were produced, instead of running everything at the end in one shot;
- Require that variables always be quoted and wrapped in braces—standard shell advice. If the script runs with “error on undefined variable” mode enabled, also provide default values for variables that might be missing;
- Keep the full terminal output and, on failure, feed it back verbatim without summarizing. The closer the AI’s error output is to the original, the more accurately it can localize the problem;
- For the few commands whose behavior differs across platforms, the human points out the alternative syntax directly—faster than letting the AI grope around.
The First Successful Run: Once the environment dependencies were filled in and the script passed segment-by-segment verification, compilation, linking, and packaging all completed. The program launched in the emulation environment and displayed its interface correctly. The feeling in that moment was direct: a project I was completely unfamiliar with—without my having read all the code line by line—had been pushed by the AI to a “runnable” state.
But that sense of accomplishment was quickly replaced by a cooler assessment, because the real test of the tool came next: could it take a program that merely runs and push it toward being genuinely good to use?
1.5 Round 1 Summary: Zero to One, the AI Wins on “Exploration”
Looking back at Round 1, the AI’s value concentrated on “exploring the unknown”:
- Mapping the build chain: Quickly assembling the full build flow from the directory structure and build descriptor files;
- Generating environment configuration: Producing a dependency list and environment configuration for the target platform;
- Diagnosing the first errors: Correctly interpreting the first compile errors and suggesting reasonable fix directions.
In this phase, the human mainly does two things:
- Drawing boundaries: Using a rule file to constrain the AI’s behavior and prevent “insurance operations”;
- Backstopping: Directly supplying answers on platform features and system differences so the AI doesn’t spin in place.
Judgment: In going from zero to one, the AI significantly compressed the time needed to “figure out a new project.” But its efficiency depends heavily on two things: whether the constraints the human provides are clear, and whether the human can promptly backstop platform-level issues.
Part Two: Round 2 — Good to Better, Turning “It Runs” into “It’s Great”
Getting the program running is only the starting point. The goal of Round 2 was to make it smooth, stable, and consistent in daily use. I broke it into four phases.
Why advance in phases instead of asking for everything at once?
If you ask for “add features, redesign the UI, fix the display, and support Chinese” all at once, the AI tends toward a “big refactor”: wide-ranging changes and a large dump of code at once, which is hard for a person to review line by line. When problems are mixed together, it’s also hard to tell which change caused an anomaly. Advancing in phases has two benefits:
- Each phase has a single goal, making it easy to verify;
- When something goes wrong, the rollback cost is manageable.
2.1 Phase One: Feature Enhancement — “A Feature Was Added” Is Not the Same as “It’s Good”
Task: Add several practical features to the program—for example, shortcut entries for common operations, display of build-artifact information, and export of run logs.
Symptom: The features themselves were implemented quickly, but first acceptance surfaced a few typical problems:
- Incomplete interaction paths: The entry point existed, but exception branches weren’t handled—for instance, when a file doesn’t exist or the content format is invalid, the program either errors out or fails silently;
- Unclear field meaning: The UI displayed raw fields directly—using English key names or raw values as display content, which hurt readability;
- Changes spilled into unrelated modules: To implement a new feature, a shared component was modified in passing, causing subtle changes in existing functionality;
- No means of verification: The code “looked like it ran,” but there was no reproducible way to verify it.
Analysis: This reflects a pattern: when a requirement is given at the coarse granularity of “add a feature,” the AI fills in the implementation details it considers reasonable on its own. The direction of that fill-in isn’t necessarily wrong, but it may not match the human’s expectations.
Countermeasures:
- Rewrite the requirement as acceptance criteria: Instead of “add a log-export feature,” list out “what content can be exported, the file-name format, what to do when the target directory doesn’t exist, and how to notify on export failure.” The more explicit the acceptance criteria, the more controllable the AI’s freedom.
- Define the change boundaries: Require new features to be implemented as standalone modules, and list modifications to shared components separately, with a rationale for each.
- Require self-testing: Have the AI describe “how to verify” before submitting, and reproduce it as a human according to that description.
2.2 Phase Two: Visual Polish — The AI Lacks an “Aesthetic Anchor”
Task: Improve the layout, font sizes, spacing, and color scheme to make the interface more harmonious.
Symptom: The AI can produce an interface that “doesn’t go wrong” by conventional standards, but it lacks a basis for judging what’s “good.” After a few rounds of adjustment, the layout often swung between two extremes: either elements were too crowded, or there was too much whitespace. Worse, because the human never said explicitly “what’s wrong,” the AI could only keep guessing.
Analysis: The defining feature of visual problems is that they are “subjective” and “holistic.” Whether a piece of code conforms to a standard can be judged objectively, but “looks good” requires a reference.
Countermeasure: I provided comparable references, specifically:
- A reference screenshot plus a text description of “which parts should move closer to it”;
- A simple design specification to unify font-size hierarchy, spacing units, and the primary color;
- Explicit prohibitions, such as not changing the overall window structure and not introducing a new theming mechanism.
With a reference in place, the AI’s changes went from “adjusting by feel” to “converging toward a target.”
2.3 Phase Three: The Display Battle — The Hardest Part
Task: Fix display anomalies—for example, local refreshes not happening in time, text going blurry after scaling, and old content remaining after switching interfaces.
Symptom: This was the longest and most back-and-forth phase of Round 2. The AI showed clear characteristics:
- It could quickly list a large number of possible causes, covering rendering, layout, refresh strategy, scaling, and more;
- But its first proposed fix often “treated the symptom, not the cause.” For instance, forcing a full redraw eliminated the residue but introduced flickering and a performance drop;
- After several rounds of trial and error, changes piled up, and the code accumulated multiple “patches” that canceled each other out.
Root cause: Most of the information about display problems lives outside the code—for example, after what operation they appear, whether they reproduce reliably, and how they behave at different zoom levels. The AI can’t see the screen, so relying on a text description alone it keeps guessing. At this point, the real bottleneck isn’t the AI’s capability but the quality of the feedback.
Turning point: Once I supplied precise reproduction steps, screenshots of the symptom, and the conditions under which it occurred, the AI quickly narrowed the problem down to the calculation logic of the layout region and provided a targeted fix.
Practical method: When facing a display problem, organizing the information as follows and handing it to the AI significantly improves efficiency:
[Symptom] What anomaly appears after what operation (as specific as possible)[Reproduction Steps] 1. ... 2. ... 3. ...[Conditions] Specific resolution / zoom level / operation sequence[Expected Behavior] The effect that should appear[Already Tried] Modifications made and their results[Attachments] Screenshot or screen-recording description
Lesson: Display problems are a touchstone for the quality of human-AI collaboration. The more structured the feedback a human provides, the faster the AI converges; conversely, the AI can only spin in guesses.
2.4 Interlude Three: A Single Chinese Comment Causing a Compile Failure
Symptom: In one phase, I added some Chinese comments. On the next compile, the build failed outright, with the error pointing to the file containing the comments. The AI’s first response was to suggest deleting those comments. After they were removed, compilation returned to normal.
Analysis: This is a typical AI reaction when facing a problem it doesn’t understand: choose the simplest, most reversible way to eliminate the error, rather than investigating the root cause. This time the real cause wasn’t complicated. In some build environments, if a source file’s encoding doesn’t match the character set assumed at compile time, a file containing non-ASCII characters (including Chinese comments) can trigger a compile error. In other words, the problem was in the “encoding convention,” not in the “comment content” itself.
Countermeasure:
- Require the AI not to “solve” an error at the cost of deleting functionality or content;
- Standardize the source-file encoding (for example, UTF-8 without a BOM) and explicitly specify the input character set in the build configuration;
- Provide a verifiable means—such as batch-checking file encodings and confirming that all source files are consistent before compiling.
This problem is very common in cross-language, cross-team projects. The root cause is that default encodings are not consistent across systems and tools. A project should pin down the encoding convention at the build-configuration level rather than relying on environment defaults.
2.5 Phase Four: The Chinese Breakthrough — From “Not Crashing” to “Great”
Solving the compile problem only made Chinese “able to exist.” The real challenge was making it “display correctly and read smoothly.” I broke this phase into three levels:
- It compiles: Chinese in the source code no longer causes build failures.
- It displays: Chinese in the interface, logs, and messages displays correctly, with no garbled text or tofu boxes.
- The experience is good: Mixed Chinese-English text has natural spacing, long text wraps automatically in a narrow window, and font size stays crisp after scaling.
The AI made fast progress on the first two levels, but the third level likewise requires the human to give clear standards—for example, “when mixing Chinese and English, digits and English use a separate font” and “wrapping happens at word boundaries, avoiding cutting Chinese in the middle of a word.”
Common practices:
- Unify the character set: Use UTF-8 for source files, resource files, and configuration files, and declare it explicitly in the build configuration;
- Watch cross-platform defaults: Some runtime environments use the system default encoding when reading a file without explicitly specifying the encoding. When handling text, specify the encoding explicitly rather than relying on defaults;
- Design font fallback: Specify a primary font and fallback fonts so that when the primary font lacks a character, a fallback font fills it in, avoiding tofu boxes;
- Do multilingual regression testing: Prepare a set of test cases covering Chinese, English, digits, and symbols, and check them uniformly after each change.
2.6 Round 2 Summary: Good to Better, the AI Wins on “Iteration Speed”
| Phase | Main Challenge | AI Performance | Key Human Input |
|---|---|---|---|
| Feature enhancement | Requirements not specific enough | Implements fast; weak on boundaries and exception handling | Refine acceptance criteria; define boundaries |
| Visual polish | No standard for aesthetics | Changes fast; direction easily wavers | Provide references and design specs |
| Display battle | The problem isn’t in the code | Makes many assumptions; localization depends on high-quality feedback | Provide reproduction steps, screenshots, and conditions |
| Chinese breakthrough | Encoding and font conventions | Solutions are complete; details need human calibration | Unify encoding and font strategy; build regression cases |
Part Three: Taking Stock — What Did the AI Complete Autonomously?
After two rounds of testing, if we categorize the work by “whether the human participated,” the results break down roughly as follows.
3.1 What the AI Basically Completed on Its Own
- Project mapping: Reading through the directory tree and build descriptor files to map out the build flow and dependencies.
- Environment setup: Generating a dependency list and environment configuration for the target platform.
- Code generation: Producing the bulk of concrete implementations—feature modules, interface layouts, utility scripts, and more.
- Initial diagnosis: Interpreting error output and suggesting fix directions, correct most of the time.
- Repetitive labor: Batch edits, formatting normalization, comment additions, and other mechanical work.
3.2 What the AI Significantly Accelerated but Still Needs Human Oversight For
- Hard debugging: The AI can list a large number of possible causes, but final localization requires real feedback from the human.
- Solution design: The AI can offer several options; which to pick and why is still decided by the human.
- Boundary handling: Exception branches, extreme inputs, and concurrency scenarios require the human to define expected behavior.
- Performance and experience: Whether it’s smooth and easy to use is ultimately judged by the human.
3.3 What Must Be Done by the Human
- Defining goals and acceptance criteria: Including feature boundaries, visual standards, and display expectations.
- Handling platform-specific differences: For example, the behavioral quirks of a particular system that the AI may not be familiar with and the human must supplement.
- Making trade-offs: Weighing functionality, performance, and complexity against each other.
- Final acceptance: Whether features meet expectations and whether the experience is up to standard is the human’s final call.
3.4 A Notable Pattern
Across the two rounds, the AI’s performance showed a clear “task-type dependence”:
- Tasks with clear, verifiable goals—such as generating scripts, completing code, and modifying to spec—had a relatively high first-try success rate.
- Tasks with vague goals that depend on external state—such as “it looks wrong” or “it fails occasionally”—often led to repeated trial and error, requiring the human to supply more information.
This suggests: The key to using a coding tool isn’t “stating the requirement in a more complex way,” but “stating the goal in a more verifiable way.”
Part Four: A Reusable Human-AI Collaboration Method
Based on the two rounds of practice, I’ve distilled a reusable collaboration method for readers to reference.
4.1 Express Requirements in a Structured Way
A requirement description that’s easy for the AI to understand and execute usually has five parts:
[Goal] The desired final state[Constraints] Rules and prohibitions that must be followed[Inputs] Files, modules, or existing implementations involved[Acceptance] How to judge completion (a reproducible check)[Scope] The boundary of this change—what stays untouched
For example, instead of “help me optimize the interface,” say “adjust the font size and spacing on the settings page to match the main page; don’t change the window structure; acceptance: take screenshots at both 1080P and 4K and confirm no text is truncated.”
4.2 Small Steps, Verify as You Go
- Solve only one class of problem per phase; avoid “big refactors”;
- Verify immediately after each round of changes; don’t accumulate unverified changes;
- When a problem arises, first roll back to the last working state, then try again.
4.3 Write Team Conventions into a Rule File
Put coding standards, directory structure, prohibited operations, and verification requirements into a rule file in the project root so the AI can read it in every session. This reduces repetitive communication and avoids the “the moment you switch sessions, the conventions are forgotten” problem.
4.4 Build a High-Quality Feedback Loop
When the AI’s result doesn’t meet expectations, try to provide the following:
- Specific reproduction steps;
- The complete original error output;
- Relevant screenshots or screen recordings;
- Approaches already tried and their results.
The more specific the feedback, the faster the AI converges. Vague feedback like “still not working” tends to send the AI into ineffective, repeated attempts.
4.5 Keep the Human’s Final Judgment
The AI can generate solutions, write code, and make changes, but whether to adopt them, merge them, or meet business goals should be judged by the human—especially in the following scenarios:
- Involving irreversible operations: Such as deleting data or overwriting configuration;
- Involving security and permissions: Such as raising privileges or modifying access control;
- Involving external commitments: Such as performance metrics or compatibility ranges;
- Involving long-term maintenance cost: Such as introducing new dependencies or changing the architecture.
Part Five: Advice for Different Roles
For developers: Treat the coding tool as an “efficient executor,” not an “assistant that replaces thinking.” Put your energy into defining requirements, selecting solutions, and final acceptance, and hand the repetitive, patterned work to the AI.
For teams: Establish team-level rule files and a code-review mechanism. Code generated by the AI must go through the same review process as human-written code. Maintain the same standards in code review, static analysis, and automated testing—don’t lower the bar because “the AI wrote it,” and don’t hold it to extra harshness because “the AI wrote it” either.
For technical managers: When assessing the value of these tools, focus on overall delivery efficiency rather than single-shot generation speed. Cultivating the team’s ability to “describe problems clearly” often pays off more than simply chasing faster generation.
Part Six: Tool Selection Advice — How to Judge “Fit”
When introducing coding tools, many teams most want to know: “Which tool is better?”
Rather than comparing directly, it’s better to first clarify your own needs and then build an evaluation framework. Here are three evaluation dimensions.
6.1 Evaluation Dimensions
| Dimension | Focus | Typical Question |
|---|---|---|
| Engineering comprehension | Can it read medium-to-large codebases and trace call chains across modules? | Can it quickly map the build flow and dependencies in an unfamiliar project? |
| Interaction and control | Can it advance in phases, accept clear constraints, and roll back? | Does it support rule files, make changes easy to review, and support step-by-step confirmation? |
| Integration and collaboration | How well it fits existing development processes | Does it adapt to the team’s code-hosting platform, code-review process, and CI/CD pipeline? |
6.2 Evaluation Method
I recommend a side-by-side test of candidate tools using “the same set of tasks”:
- Prepare a representative project: Pick the project type your team touches most often—for example, firmware, server-side, or front-end projects.
- Design unified tasks: Select several tasks from each of “zero to one” and “good to better”—for example, setting up the build environment, adding a feature, fixing a display defect, or handling an encoding issue.
- Record key metrics: Including first-try success rate, number of human interventions, total time from request to acceptance, and final code quality.
- Evaluate with multiple people: Have members of different roles and experience levels each use the tools, to avoid the bias of “a few experts carrying the whole thing.”
6.3 Choose “Suitable,” Not “Strongest”
Tools differ in capability, and scenarios differ too. Some teams care about code privacy and will prioritize options that support on-premises deployment; some care about collaboration integration and will prioritize options that fit their existing development process; some handle large amounts of legacy systems and will prioritize the ability to map out complex projects.
There is no “best tool,” only “the tool best suited to the current stage.” Clarifying your own needs and then choosing based on evaluation results is often more effective than chasing the “strongest.”
Part Seven: Conclusion — The AI Is an Amplifier, the Human Is the Anchor
After two rounds of testing, the deepest takeaway is this: the ceiling of a coding tool’s capability largely depends on the person using it.
- It can quickly map an unfamiliar project, but when facing platform differences, it still needs the human to fill in knowledge;
- It can quickly generate feature code, but when facing vague requirements, it still needs the human to define acceptance criteria;
- It can quickly localize display problems, but when facing phenomena outside the code, it still needs the human to provide high-quality feedback;
- It can quickly propose encoding solutions, but when facing cross-platform conventions, it still needs the human to make a unified decision.
In other words, the AI is more like an “amplifier”: what it amplifies is the human’s intent, judgment, and engineering maturity. With clear intent, accurate judgment, and solid fundamentals, the AI can multiply efficiency; with vague intent and missing judgment, the AI may instead amplify mistakes and generate more rework.
For developers, real competitiveness lies not in “whether you can use AI,” but in “whether you can define problems clearly, judge solutions accurately, and verify results thoroughly.” These are exactly the abilities the AI struggles to replace.
