How to Choose an AI Coding Model: A One-Week Hands-On Evaluation and Selection Guide
This article reports on a one-week, real-project evaluation of five mainstream AI coding assistants (referred to as Model A through Model E). It explains why feature implementation is no longer a differentiator, where code quality actually diverges, how default writing style can be constrained with rule files and few-shot examples, why reasoning time is an underappreciated hidden cost, and how to replace subjective impressions with a repeatable scoring rubric, measurement definitions, and an evaluation script. It closes with practical guidance on combining models through a routing layer and on turning one-off tests into durable engineering capability.
Introduction: Five Takeaways After a Week of Hands-On Use
After more than a week of using five mainstream AI coding tools on a real project (referred to below as Model A through Model E), I have formed a reasonably complete picture of them. The goal of this test was not to publish a permanent ranking, but to answer the questions developers actually ask: how to choose an AI coding model, how to evaluate one, where the common pitfalls are, and how rule files plus acceptance checks improve day-to-day efficiency.
The test bed was a mid-complexity project: a system-level compiled language on the backend and a mainstream frontend build toolchain on the frontend. The work covered new feature development, bug fixes, local refactoring, test coverage, and documentation. From these observations, five conclusions emerged:
- Feature implementation is no longer the dividing line. Across the sampled feature tasks, all five tools reached an acceptable level of functional delivery, with no clear laggard.
- Code quality diverges sharply. Model A and Model B produced the highest-quality output; Model C occasionally generated localized “spaghetti code,” though the blast radius was limited and one extra iteration was enough to fix it.
- Default writing style varies widely. Without a preset rule file, each tool’s output habits were clearly different. The good news is that style can be constrained through rule files, system prompts, and examples.
- Reasoning time is a hidden cost. Model D had the longest chain of thought, and combined with a slower base generation speed, its end-to-end completion time was roughly 50% higher than the fastest option.
- Evaluation needs a repeatable methodology. If tasks, rules, acceptance commands, and measurement methods are not fixed, questions like “which model is stronger” quickly degrade into subjective impressions. Reproducible data is required.
These conclusions are more useful than a single ranking. The evaluation framework, rule templates, and evaluation script below are all derived from them.
1. Feature Implementation: A Baseline, Not a Differentiator
In testing, all five tools were able to independently implement the project’s feature requirements. A few years ago this would have been unthinkable: tools often stopped at sample code, or fell into loops of trial-and-error edits after a single error.
With the capability baseline raised this high, “can it implement this?” has decreasing discriminating power for selection. The real question becomes “how fast and at what quality does it implement it?” Feature implementation is therefore better treated as an entry criterion. Its acceptance standard can be defined as: whether the tool can produce code that compiles, is testable, and is logically correct given the supplied context.
In terms of methodology, the key at this stage is the objectivity of acceptance criteria. Subjective scoring cannot distinguish functional correctness from functional gaps. A more reliable approach is to prepare two sets of checks:
- Automated acceptance: unit/integration tests, type checks, static analysis.
- Manual spot checks: walk through the requirements list item by item to confirm whether anything “looks implemented but actually misses edge cases.”
# Example project-level rule file (place at the repo root; coding tools load it automatically)1. Tech stack constraints: backend in Rust, frontend in React + TypeScript; any new dependency must be justified.2. Coding standards: follow rustfmt and clippy on the backend, ESLint and Prettier on the frontend; checks must pass before commit.3. Style constraints:- Comments explain "why", never restate "what";- Use complete written English; avoid colloquial abbreviations and internet slang;- Do not output flattery or people-pleasing statements.4. Output format: first list the files to be changed, then the code, then summarize the rationale and risks as bullet points.5. Reasoning effort: default effort for routine tasks; explicitly enable extended thinking for architecture design, complex bug triage, and similar tasks.
2. Code Quality: Where the Differences Actually Appear
With all features delivered, the code quality of Model A and Model B was clearly higher than that of Model D and Model E. Model C sat in between: most of its code was well structured, but on some feature points it produced typical “spaghetti code” — deep nesting, repeated branches, and copy-paste. The impact was limited; one targeted refactoring round on that module resolved it.
This illustrates two points about assessing code quality:
- Evaluate modularity, single responsibility, naming accuracy, completeness of error handling, and the presence of duplicated logic.
- Single-shot generation quality is not delivery quality. Under a “generate + review + fix” workflow, what really matters is how many rounds of correction are needed on average before the code passes review. A local issue fixed in one round costs far less than a first impression suggests.
Example: Implicit Coupling via a String Protocol
Here is a representative problem scenario, purely for illustration:
// Bad example: the logging module concatenates business-layer strings to detect event typespub fn log_event(msg: &str) {if msg.starts_with("[order]") {println!("[AUDIT] Order event: {}", msg);} else if msg.starts_with("[pay]") {println!("[AUDIT] Payment event: {}", msg);}}// The business layer calls the logging layer directly and manually builds prefixed stringspub fn create_order(name: &str) {let msg = format!("[order] Create order: {}", name);println!("[order] Create order: {}", name);log_event(&msg);}
The problems with this code are:
- The logging module depends on message prefixes defined by the business layer, while the business layer calls the logging module directly — an implicit two-way binding.
- Event types are scattered across
if/elsebranches, so adding a new event requires modifying the logging module, violating the open/closed principle. - String prefixes act as an implicit protocol, and typos cannot be caught at compile time.
To be precise, this is better described as logical implicit coupling rather than a Rust compile-time circular dependency. The business layer and the logging layer are bound through a string protocol: the business layer must know what format the logging layer accepts, and the logging layer must know what the business layer emits. As this coupling grows, the cost of changes rises quickly.
The refactored version looks like this:
// Good example: define a domain event enum in the domain layer; the log layer depends only on domainpub enum DomainEvent {OrderCreated { name: String },PaymentSucceeded { order_id: u64 },}pub fn create_order(name: &str) -> DomainEvent {// Business logic...DomainEvent::OrderCreated { name: name.to_string() }}// The log module only formats and prints; new events require no changes to any string protocolpub fn log_event(event: &DomainEvent) {match event {DomainEvent::OrderCreated { name } => {println!("[AUDIT] Order created: {}", name);}DomainEvent::PaymentSucceeded { order_id } => {println!("[AUDIT] Payment succeeded: {}", order_id);}}}
The difference between the spaghetti version and the structured version comes down to whether a stable domain abstraction is established. When evaluating code quality, watch whether the tool proactively introduces abstractions like this, or tends to “patch” problems with conditionals and string concatenation.
3. Writing Style: Default vs. Controllable
With no rules loaded, the default expression habits of the tools differed noticeably:
- Model E used a constant stream of casual “veteran engineer” phrasing, favoring abbreviations and acronyms of every kind.
- Model D wrote in a fixed “industry jargon” register that was highly recognizable.
- Model B leaned sycophantic, praising the user’s ideas at every turn.
- Model A read more naturally; Model C was acceptable.
It is worth stressing that default style is not the ceiling of capability. When given clear, specific style requirements, Model E did adjust its expression. In other words, default style reflects what a tool does in an unconstrained state; in engineering practice, what actually matters is the constraint system formed by rule files, system prompts, and few-shot examples.
Why does style matter? In AI-assisted development, the text output is itself a deliverable, including at least:
- Code comments and docstrings;
- Commit messages and code review notes;
- Bug analysis reports and design comparisons.
If that text is full of colloquial abbreviations or sycophantic phrasing, the consequence is not merely that it “reads awkwardly.” More importantly, it raises the comprehension cost for teammates and dilutes the information density of technical documentation.
The following template constrains style:
[Style requirements]- Use standard written English; spell out an abbreviation on first use;- State facts and conclusions objectively; no praise, flattery, or emotional phrasing;- Lead with the conclusion, then give reasons and evidence;- Follow a consistent template structure for documents, commit messages, and review comments.[Example]Do not write: "Great plan! Super easy peasy o( ̄▽ ̄)d"Do write: "This approach is viable. The core change is confined to module X and the impact is contained; tests for scenario Y must be added before release."
Take commit messages as a concrete comparison:
Negative: Fixed this thing, tweaked a bit along the way, that's it.Positive: Fix duplicate deduction when updating order status under concurrency; add concurrency tests; impact: order state machine and payment callback — related cases need regression.
One detail worth noting: in this limited sample, we observed that tools whose default style is more verbose and formulaic also tended to produce longer reasoning text and slower responses. This correlation is only an observation from this test, and can at best be treated as a hypothesis to verify — it cannot be generalized into a universal rule for all models or all tasks. In practice, the safer approach is still to split by task type: prefer tools with deeper reasoning for optimization-advice tasks, and tools whose style better matches team conventions for documentation polishing.
4. Reasoning Time: The Underrated Hidden Cost
Model D was the most representative case. Its chain of thought was the longest among all tools tested, at times producing more than twice the reasoning text of the others. This produced two compounding effects:
- The reasoning itself consumed significantly more time;
- Its base generation speed was not competitive either, amplifying the latency further.
The end result: for the same tasks, Model D took about 50% longer end to end than the alternatives.
This deserves a balanced view. A longer reasoning chain is not useless: on complex tasks such as architecture design, hard-to-diagnose bugs, and cross-module refactoring, deeper thinking helps reduce the error rate. But for routine small changes, style adjustments, and adding unit tests, excessive reasoning often just “re-confirms obvious conclusions” and is wasted overhead.
What Makes Up Reasoning Latency
End-to-end time ≈ queue wait + time to first token+ input processing time (grows with context length)+ reasoning generation time (depends on the thinking budget)+ output generation time (depends on generation speed and output length)
With the architecture fixed, there are three main optimization paths:
- Allocate thinking budget by task complexity: use default or lower effort for tasks like understanding requirements and filling in details; explicitly enable extended thinking for solution design and bug triage. In practice, some model services expose parameters or mode options for thinking effort or thinking budget, which can be configured centrally at the integration layer.
- Control context size: avoid dumping entire unrelated files into the context; prefer concise type definitions, interface signatures, and descriptions of relevant modules.
- Reduce task granularity: instead of merging “implementation + tests + documentation” into one oversized request, execute in stages so each step’s reasoning stays focused on a single goal.
If the platform does not support thinking-effort parameters, alternatives include:
- Ask for an outline first, then generate code from the outline;
- Cap output length to avoid generating too much at once;
- Split large tasks into subtasks: understand requirements, design the solution, implement code, add tests;
- Use cached prompts or fixed templates for recurring requests;
- Log failed requests at the integration layer to make latency sources easier to analyze.
Example Evaluation Script
import subprocessimport timeclass ModelClient:"""Replace with the actual model client."""def generate(self, system_prompt: str, user_prompt: str, think_budget: str):raise NotImplementedError("Connect a concrete model service here")TASKS = [{"id": "T1","desc": "Add a paginated query endpoint to the order module, including parameter validation","acceptance": [["cargo", "test"]],},{"id": "T2","desc": "Fix a data race in module X under concurrent access","acceptance": [["cargo", "test"]],},{"id": "T3","desc": "Refactor the string-prefix checks in the logging module into a domain event enum","acceptance": [["cargo", "clippy", "--", "-D", "warnings"]],},]def run_acceptance(commands: list[list[str]]) -> bool:"""Run inside an isolated container where possible.Acceptance commands must be adapted to the project environment, and a command allowlist is recommended."""for cmd in commands:result = subprocess.run(cmd,stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL,)if result.returncode != 0:return Falsereturn Truedef evaluate(model_client, task: dict, rules: str, rounds: int = 3) -> dict:"""Repeat the same task several times, recording latency, tokens, and acceptance results, and take themedian to reduce randomness.Prerequisites:1. model_client must be replaced with a real client;2. resp must expose a usage field, or be replaced with an adapter that counts tokens;3. acceptance commands must match the project environment;4. run the script in an isolated environment, never against a production repository."""results = []for _ in range(rounds):t0 = time.perf_counter()resp = model_client.generate(system_prompt=rules, # always load the same project rule fileuser_prompt=task["desc"],think_budget="default", # default reasoning effort for routine tasks)elapsed = time.perf_counter() - t0passed = run_acceptance(task["acceptance"])results.append({"elapsed": elapsed,"prompt_tokens": resp.usage.prompt_tokens,"completion_tokens": resp.usage.completion_tokens,"passed": passed,})return {"task": task["id"],"pass_rate": sum(r["passed"] for r in results) / rounds,"median_latency": sorted(r["elapsed"] for r in results)[rounds // 2],"median_tokens": sorted(r["completion_tokens"] for r in results)[rounds // 2],}
The core idea of the script is: turn subjective impressions into repeatable, collectable data. Only when acceptance commands are frozen as executable checks in a script can conclusions like “A just feels better” be avoided.
5. Overall Assessment: From “Which Is Best” to “Which Fits Best”
Turning the observations above into an actionable scorecard makes the basis for selection much clearer:
| Evaluation dimension | Suggested weight | Observed metrics | Typical results in this test |
|---|---|---|---|
| Feature implementation | 20% | Requirement coverage, acceptance pass rate | All five tools met the bar; no meaningful difference |
| Code quality | 35% | Module boundaries, naming, error handling, average correction rounds | A and B best; C showed local spaghetti code, fixable in one round |
| Writing style | 15% | Default style, controllability after rule constraints | Default behavior differed markedly; all usable once constrained |
| Reasoning and response efficiency | 20% | End-to-end time, token consumption, adjustability of thinking effort | D was ~50% slower; thinking effort must be allocated per task |
| Cost and operability | 10% | Cost per token, rate limits and quotas, observability | Must be measured at real call volumes |
The weights need not be fixed and should be adjusted to the team’s situation. For example, a team focused on infrastructure development can raise the weight on code quality, while a team shipping fast iterations for end users can raise the weight on response efficiency.
To make the scorecard reusable, the measurement definitions must be specified:
- Task set: sample 20–50 representative tasks from real project requirements, covering new feature development, bug fixes, refactoring, and test writing. The sample used for this article was much smaller — roughly a dozen tasks drawn from the project — so the results are better read as a methodology example than as a comprehensive capability ranking.
- Repetitions: repeat each task at least 3 times and take the median; if results for the same task fluctuate widely, increase the repetitions or record the distribution.
- Latency start and end points: end-to-end time starts when the model request is sent and ends when the full model response is received; the execution time of acceptance commands should be recorded separately and not mixed into model reasoning time.
- Token measurement source: prefer the
usagefield returned by the model service; if the API does not return token counts, estimate with a local tokenizer and state the estimation method in the report. - How the 50% difference is computed: use the median end-to-end time of the fastest option as the baseline and compute
(median time of D - median time of the fastest) / median time of the fastest. If the fastest option takes 100 time units and Model D takes about 150, the difference is roughly 50%.
On the selection conclusion itself, a more sensible strategy is combining models rather than betting on one:
- Core modules and complex logic: use the tools with better code quality and deeper reasoning, and accept some extra latency;
- Boilerplate code, documentation generation, simple refactoring: choose faster and cheaper tools;
- Integration layer: use a unified gateway for model routing and fallback, so business code is not tightly coupled to a single tool.
6. Turning Findings into Engineering Capability
The value of a one-off test lies in producing a method, not in memorizing a conclusion. Models iterate on a monthly or even weekly cadence, and today’s ranking may change with the next release. To keep evaluation results valid over time, they need to be embedded into the team’s engineering practice:
- Build a reproducible task set: accumulate 20–50 representative tasks from real project requirements, covering new feature development, bug fixes, refactoring, and test writing, and run the same set for every evaluation.
- Put rule files under version control: write tech stack constraints, coding standards, and style requirements into configuration files and commit them, so the context for each call is identical and cross-tool comparisons are fair and credible.
- Improve observability: record latency, token consumption, and acceptance results along the call path, and continuously track each tool’s real behavior through log services and monitoring alerts.
- Establish a model integration and routing mechanism: configure primary/backup policies in a unified model access layer, automatically switching to the backup model when the primary times out or becomes unavailable, so development workflows are not interrupted.
- Re-evaluate periodically: rerun the task set quarterly or after each major release, and correct selection conclusions with fresh data.
- Maintain an evaluation data template: record at minimum the model version, temperature, thinking effort, retry count, rule file version, repository commit hash, task ID, latency, token consumption, acceptance result, and failure reason, so results can be compared later.
7. Limitations and Caveats
In fairness, the conclusions above come from a single project, a single tech stack, and one week of testing, with limited sample size and coverage. Different language ecosystems, different team coding standards, and different task distributions can all change the relative performance of these tools. The point of this article is therefore not a permanent ranking, but a reusable evaluation method.
In short, the competition among AI coding tools has shifted from “can it complete the task” to “how it completes the task, and at what cost.” What developers should do is not hunt for a single “best model,” but build a repeatable, quantifiable, continuously updated evaluation mechanism — so that tool choice serves engineering efficiency itself.
