Evaluating "Wish-Style Programming": A Practical Benchmarking Method for AI Coding Tools

    This article presents a reproducible method for evaluating AI coding tools that generate, test, and fix code from natural-language intent. It covers environment isolation, building a 15–30 task benchmark with acceptance criteria, structured prompt design, a four-round testing approach, a six-dimension scoring rubric with security as a veto item, common failure patterns, and a reproducible record format for tracking tool upgrades.

    1. Why “Wish-Style Programming” Needs Rigorous Evaluation

    “Wish-style programming” describes an interaction pattern: developers state their intent in natural language, and an AI coding tool generates code, fills in dependencies, runs tests, and iterates on fixes until it delivers something runnable. The value proposition is attractive, but it is also easy to over-package. What really shapes the experience is not a single success in a demo video, but whether the tool stays reliable once requirements get slightly more complex, the context grows longer, or dependency versions change.

    So the goal of evaluation should not be to “prove it is powerful,” but to answer three verifiable questions: first, what is the first-attempt success rate on a given task set; second, can the tool self-correct through multiple rounds of feedback after a failure; third, do the generated results meet engineering requirements for security, maintainability, and reproducibility. Only when these three points are quantified do the conclusions mean anything.

    2. Preparation: Environment Isolation and Baselines

    The most common evaluation mistake is mixing tool capability with the runtime environment. Three things should be done before starting.

    1. Environment isolation. Use a separate working directory or a containerized environment, and pin the runtime version and dependency sources so that caches or temporary files from a previous run do not affect the next one.
    2. Task set construction. Prepare 15 to 30 tasks covering four difficulty levels: single-function implementation, small cross-file features, bug localization and fixing, and dependency upgrade adaptation. Each level needs clear acceptance criteria.
    3. Baseline recording. Complete 5 of the tasks manually first, recording time spent and code size as a reference. An evaluation without a baseline yields impressions, not conclusions.

    A sample directory and acceptance layout:

    1. eval/
    2. ├── tasks/
    3. │ ├── t01_single_func.md # Requirement + acceptance command
    4. │ ├── t02_cross_file.md
    5. │ ├── t03_bugfix.md
    6. │ └── t04_dependency.md
    7. ├── baseline/ # Manual implementation and timing records
    8. └── report/ # Generated results and logs per round

    Each task file should follow a fixed three-part structure: requirement description, constraints, and acceptance method. The constraints should state the language version, prohibited dependencies, and code style requirements; the acceptance method must be an automatically executable command or test, not something that “looks right.”

    3. Prompt Design: Turning a “Wish” into an Executable Spec

    The ambiguity of natural-language requirements is the main source of failure. Evaluations should deliberately use two kinds of prompts: a colloquial one-sentence requirement, and a structured spec. Comparing the success rates of the two directly quantifies the tool’s tolerance for vague intent.

    A structured prompt template:

    1. Goal: <one sentence describing the intended outcome>
    2. Input: <function signature / data structure / interface contract>
    3. Constraints: language version, dependency whitelist, files that must not be modified
    4. Acceptance: run <test command> and all tests pass
    5. Output: only the changed files and key code snippets

    The key here is not polished wording, but moving acceptance to the front. Once acceptance comes first, the generated code shifts from “requiring human judgment” to “machine-decidable,” and evaluation cost drops by an order of magnitude.

    4. Test Execution: The Four-Round Escalation Method

    Run four rounds per task, increasing pressure each round to observe the capability curve.

    Round one, single generation. Give one prompt only, and record whether it passes acceptance, the number of code lines, and whether any non-whitelisted dependency is introduced. This round measures basic coding ability.

    Round two, feedback and correction. Pass the failure log back verbatim and ask the tool to locate the cause and fix it. Watch whether it “fixes the right place” or repeatedly patches the same spot. Constrain it like this:

    1. Previous failure output: <paste the full error>
    2. First explain the root cause, then give the minimal change. Do not rewrite the whole file.

    Round three, context expansion. Append a second related requirement in the same session to test memory retention and file consistency under a long context, checking for problems such as overwriting a previous change, duplicate definitions, or naming conflicts.

    Round four, regression verification. Ask the tool to run the existing tests itself after the change and explain any failures. This round assesses engineering closure awareness rather than single-point generation quality.

    5. Scoring Dimensions: Breaking Subjective Feelings into Checkable Metrics

    Use a six-dimension score, 0 to 5 points each, 30 points total, and record raw evidence (logs, test output) for review.

    • First-attempt success rate: whether it passes acceptance in one go.
    • Correction efficiency: number of interaction rounds needed to pass.
    • Context consistency: whether multi-round changes break each other.
    • Dependency compliance: whether unauthorized dependencies or version drift are introduced.
    • Maintainability: whether naming, structure, comments, and exception handling meet team standards.
    • Security compliance: whether patterns such as hardcoded credentials, plaintext keys, dangerous command execution, or unauthorized file access appear.

    The security dimension should be a veto item: if hardcoded credentials or unconfirmed external data upload behavior appears, the task fails outright, regardless of functional correctness. The reason is simple: functional errors can be fixed, but data leaks cannot be undone.

    6. Common Failure Patterns and Attribution

    In real evaluations, failures cluster into four types that need separate attribution, so tool problems are not mistaken for prompt problems.

    The first is free improvisation caused by a missing spec, showing up as adding dependencies or changing interface signatures without authorization. Attribute it by checking whether the prompt contains a constraints section. The second is long-context drift, where modifying file A rolls back existing work in file B; pin it down with regression tests. The third is hallucinated interfaces, calling parameters or methods that do not exist, which should be intercepted by type checking and static analysis. The fourth is “surface passing,” where generated test assertions are too weak or even hardcode expected values, so test quality must be spot-checked manually.

    The interception measures can be combined:

    1. # Static checks and type validation as the first gate
    2. static analysis → type checking → unit tests → manual spot-check

    7. A Reproducible Evaluation Record

    Conclusions must be recomputable by others, so the record matters more than the conclusion. Suggested fields: task ID, prompt type, interaction rounds, pass or fail, failure attribution, dependency changes, time spent, and notes. Keep full logs for each round to compare behavior across versions or configurations.

    To scale the evaluation to team level, put the task set and scripts under version control and run them on a schedule via a CI pipeline to build a trend dashboard. For cloud execution, use a container platform for isolated environments, object storage to archive logs, and a logging service with monitoring and alerting to track failure-rate changes. These are general capability categories and do not depend on any specific vendor implementation.

    8. Conclusion: Turning “One-Click Magic” Back into Engineering Metrics

    “Wish-style programming” does compress the distance from intent to code, but it is not an exemption from review. Reliable judgment comes from a reproducible task set, upfront acceptance criteria, escalating multi-round tests, and a veto-level security baseline. Running one full evaluation with this method usually yields an evidence-backed conclusion within half a day: which tasks can be handed to the tool independently, which must keep human review, and which scenarios are not yet suitable for adoption.

    For developers, the value of this method goes beyond judging a single tool; it is about building the team’s own evaluation baseline. Tools keep iterating, but the baseline and acceptance criteria are the long-term asset. When a new version appears, just rerun the same task set and let data answer “is the upgrade worth it,” instead of relying on marketing and intuition.