AI Coding Assistants in Real Projects: Usage Lessons and Engineering Workflow
This article examines why AI coding assistants often look impressive in demos but fall short in real projects. It covers the gap between code generation and maintainable delivery, the limits of project rule files as soft context, a plan-first workflow, verification loops with static, type, unit, and smoke checks, model tiering by task complexity, and team practices for turning individual prompting tricks into reusable engineering capability.
AI Coding Assistants in Real Projects: Usage Lessons and Engineering Workflow
1. From “Perfect Use Cases” to Real Gaps: The Biggest Illusion of AI Coding
Many developers form a natural expectation the first time they use an intelligent coding assistant: migrating an old system to a new architecture, rewriting repetitive pages into components, or generating tedious boilerplate can supposedly be reduced from one or two hours of work to ten minutes of review with a clear prompt. This expectation is not groundless. Models are genuinely good at generating structured code, explaining legacy logic, completing common patterns, and improving efficiency on localized tasks.
But real projects quickly expose the problem. A seemingly standard page migration often involves legacy template semantics, data contracts, routing conventions, error handling, loading states, permission boundaries, analytics rules, style compatibility, and testing requirements at the same time. If a developer only gives a prompt such as “turn this old page into a modern component,” the model can easily produce code that looks plausible: complete structure, reasonable naming, and correct syntax, yet it misses critical states or changes existing behavior in complex branches. As a result, “fifteen minutes of review” becomes “an hour of back-and-forth conversation,” and a human still has to rewrite the code.
This is the most typical illusion in AI coding: mistaking “the model can write code” for “the model can reliably deliver maintainable engineering results.” Code generation is only the starting point. What really determines quality is whether context is sufficient, constraints are explicit, verification forms a closed loop, and tasks can be decomposed. A simple prompt cannot consistently bring AI to ninety percent of hand-written quality. The reason is not that the model cannot write at all, but that engineering tasks require a large amount of implicit knowledge, and that knowledge does not automatically appear in the prompt.
2. Why Rule Files Go From “Magic” to “Decoration”
When a model repeatedly makes the same mistakes, a common recommendation is to write project conventions into a project-level rule file so that the coding assistant reads it automatically during a session. For example, teams can list directory structure, naming conventions, test commands, prohibited actions, component boundaries, and data request patterns. The idea itself is correct: it makes implicit team knowledge explicit, reduces repeated explanations, and gives both new members and the model a shared context.
The problem is that many teams treat rule files as a one-time cure-all. In practice, rule files often work in short sessions and early in a task, but as conversation turns increase, context grows, and tasks switch, the model’s adherence to the rules declines. A common observation in public discussions is that the model may follow formatting and address requirements for the first few interactions and then gradually forget them; even explicit instructions such as “must run checks before submission” can be ignored. Developers have to repeatedly remind the model to “read the project rule file first,” which itself shows that a rule file is not an enforcement mechanism but only contextual guidance.
A more reasonable understanding is that rule files are soft constraints, not hard gates. They are suitable for stable, short, high-value project conventions, but they cannot replace automated checks, code review, and task acceptance. The more rules there are, the lower the probability that any single rule will be noticed; the more abstract the rules are, the more likely the model is to interpret them on its own. Therefore, rule files should be designed in layers:
- The first layer is project-level hard constraints: technology stack boundaries, directory responsibilities, data access patterns, and prohibited dependency types.
- The second layer is task-level constraints: which behaviors must be preserved in this migration, which states must be completed, and what the acceptance criteria are.
- The third layer is example-level constraints: providing one correct component example and one counterexample is more effective than abstract description.
- The fourth layer is verification-level constraints: writing “which checks must pass” as executable steps rather than verbal requirements.
An illustrative rule file can be organized as follows:
# project_rules.md (illustrative)constraints:- The view layer must not issue data requests directly; all requests go through the service layer- New pages must include loading, error, and empty states- Migration tasks must not change the semantics of existing route parametersverification:- Run static checks- Run type checks- Run unit tests- Execute browser smoke verification
Even so, you cannot assume the model will always remember. The right approach is to combine rule files with task templates, check scripts, and review checklists so that key constraints are reinjected at the start of each task and backed by automated processes before submission.
3. Plan First, Execute Later: Turning a Conversation into an Engineering Workflow
Many low-quality generations are not caused by insufficient model capability but by tasks that were not clearly defined from the start. Asking the model to “start writing” immediately compresses requirements analysis, solution design, boundary confirmation, and implementation details into a single generation, which naturally increases failure probability. A safer approach is a two-stage workflow: plan first, execute later. In the first stage, the model only produces a plan and does not write final code; in the second stage, it implements the plan step by step, with a verification method for each step.
The planning stage should answer several questions: which files need to change? Which behaviors in the old logic must be preserved? Does the data structure change? How should error and loading states be handled? Which parts can be reused? What are the acceptance criteria? The more specific the plan, the more stable the execution. An actionable prompt structure looks like this:
Task: Migrate a legacy template page to a component-based implementationInput: Legacy template snippet, target component interface, data contract, acceptance criteriaConstraints: Preserve existing route parameter semantics; add loading, error, and empty states; the view layer must not call data requests directlyOutput: First provide a step-by-step plan without writing code; after the plan is confirmed, implement it file by fileVerification: After each step, explain how to verify it, and list the final checklist
The value of this workflow is not only “improving generation quality.” More importantly, it moves developers from reviewing code to reviewing the plan earlier. If the plan is wrong, the cost of finding it early is low; if the direction is wrong after the code is written, rework is expensive. For high-uncertainty tasks such as migrations, refactoring, and cross-module changes, the planning stage should become a default step rather than an optional one.
4. Verification Loop: Let the Model “See” Its Own Results
One of the biggest weaknesses of AI coding assistants is that they tend to stop when the code “looks correct.” Passing syntax does not mean correct behavior, and passing unit tests does not mean the page states are complete. To make the model deliver reliably, you must give it executable verification methods and incorporate them into the task workflow.
Verification can be divided into four layers:
- Static verification: Formatting checks, static analysis, and type checks, used to catch low-level errors and style deviations.
- Unit verification: Tests for pure functions, data transformations, and state logic, confirming boundary behavior.
- Integration verification: Check whether contracts among components, the service layer, routing, and permissions are consistent.
- End-to-end smoke verification: Use browser automation or manual scripts to walk through critical paths and confirm loading, error, empty states, and interaction behavior.
The key is not to let the model “claim it has verified” but to make verification commands, outputs, and failure handling part of the workflow. For example, a task template can require that specified checks must run after every modification; if they fail, the model must first explain the failure reason and then repair it; after repair, rerun checks until they pass or the task is explicitly blocked. In this way, the model’s behavior shifts from “generating code” to “completing a verifiable task.”
Illustrative pseudocode:
for step in plan.steps:code = generate(step, context=rules + task_spec + examples)result = run_checks(static, type, unit, smoke)if result.failed:analyze_failure(result)code = repair(code, result)rerun_checks()require_human_review_if(result.unclear or behavior_changed)
It is important to note that the verification loop cannot rely entirely on the model’s self-discipline. Teams should configure check scripts, review checklists, and merge gates so that “unverified” work cannot enter the main branch. The model is responsible for increasing generation speed, while the engineering system is responsible for protecting the quality baseline.
5. Model Tiers and Cost: Match Capability to Task Complexity
In real usage, model tier selection also significantly affects the experience. More capable models are usually more stable in complex refactoring, cross-file understanding, and long-context reasoning, but they cost more and run more slowly. Lightweight models are suitable for formatting, simple completion, and localized rewriting. A reasonable strategy is neither “use the strongest tier for every task” nor “use the cheapest tier for everything”; instead, tier by task complexity:
- Low-risk, localized, pattern-based tasks: use a lightweight tier with clear templates and checks.
- Medium-complexity tasks that require understanding multiple files: use a mid-to-high tier and plan before execution.
- High-risk migrations, architecture changes, and behavior-preserving tasks: use a stronger tier and require human review of critical plans.
- Batch repetitive tasks: first validate prompts and rules on a small sample, then execute in batches.
At the same time, control session length. A long session does not equal more useful context; it may dilute key instructions. A more effective approach is “short sessions plus task cards”: each task carries the necessary rules, examples, acceptance criteria, and relevant file excerpts, and conclusions are archived after completion rather than continuously appending requirements in an extremely long conversation.
6. Team Adoption: From Individual Tricks to Reusable Engineering Capability
The experience of using AI coding assistants ultimately depends on whether the team incorporates them into the engineering system rather than relying on individual prompting tricks. Practical team practices include:
- Establish short, layered project rule files and regularly remove outdated entries.
- Provide task templates for high-frequency tasks: migration, bug fixing, test completion, refactoring, and API adaptation.
- Write verification commands into unified scripts and require generated results to pass checks.
- In code review, focus on behavior changes, boundary states, and test coverage rather than only code style.
- Record failure cases and turn “common model mistakes” into rules, examples, or automated checks.
- Require plan review for high-risk tasks to avoid jumping directly into large-scale generation.
Returning to the original question: how do AI coding assistants actually feel in use? The answer is not simply “magic” or “toy.” They can indeed improve efficiency in localized generation, pattern migration, code explanation, and test completion, but they cannot replace requirements analysis, architectural judgment, and quality gates. The so-called biggest illusion is treating natural-language prompts as engineering contracts, rule files as enforcement, and model generation as final delivery. The truly effective approach is to place AI within an engineering workflow of layered context, plan-first execution, verification loops, and human review. Only by lowering the expectation of “one sentence generates perfect code” can teams achieve stable, reusable productivity gains.
