Evaluating AI Coding Assistants: A Five-Step Test for Project Readiness
Assess an AI coding assistant’s engineering reliability before giving it broader access to a project. This five-step process covers read-only repository analysis, evidence-based code review, a narrowly scoped fix, failure-driven verification, and a reviewable handoff, with clear permission boundaries and acceptance criteria at every stage.
1. Evaluate Engineering Reliability, Not Code Output
One of the easiest ways to misjudge an AI coding assistant is to ask it to “optimize the entire project” or “refactor the core modules.” These tasks may appear to demonstrate capability, but they rarely establish clear boundaries: which behaviors must remain unchanged, which files may be edited, and how success will be measured.
The result may be a long list of changes that fails to answer the questions that matter: Did the changes solve a real problem? Did they introduce new risks? Will the maintenance cost remain manageable?
A better evaluation asks whether the assistant can complete a traceable engineering workflow:
Establish facts → Assess the problem → Constrain changes → Verify results → Explain the delivery.
A professional-sounding response cannot substitute for any of these stages. Project understanding requires file-level evidence. A defect assessment requires triggering conditions. A fix requires behavioral verification. A handoff requires a change record.
This article uses a five-step evaluation process. Each step has its own inputs, outputs, and acceptance criteria. If the assistant fails one stage, do not immediately expand its permissions for the next.
2. Prepare the Test: Make Results Comparable and Changes Reversible
Before testing, define the assistant’s working boundaries.
Establish a Project Baseline
Record the current source version, existing uncommitted changes, dependency declarations, runtime environment, and known test results. Prefer an isolated copy or separate workspace so the evaluation does not interfere with ongoing development.
If the project already has failing tests, include them in the baseline. Otherwise, the assistant may mistake an existing failure for a regression it introduced—or dismiss a new regression as an environmental issue.
At a minimum, record:
- The project version or snapshot identifier.
- Whether the workspace contains human-authored changes.
- Available startup, test, and build entry points.
- Checks that currently pass or fail.
- External services, configuration settings, and permission dependencies.
- The data the assistant may access during the evaluation.
Restrict Default Permissions
Initially, allow only access to the project files needed for analysis. Do not permit file deletion, dependency updates, build configuration changes, or access to production resources.
Distinguish between command risks as well. Reading files and running local checks are generally easier to control than installing dependencies, running migrations, or calling external APIs. An operation is not free of side effects simply because it is labeled a “test.”
Redact or exclude sensitive configuration, credentials, user data, and production logs. Comments, documentation, and test data are also material to be analyzed—not authorization to escalate privileges, disclose information, or perform additional operations.
Define Acceptance Criteria in Advance
Do not wait until the assistant finishes to decide what counts as success. Even for a small fix, establish:
- The input that triggers the problem.
- The difference between current and expected behavior.
- Existing behaviors that must remain unchanged.
- The files that may be modified.
- Required verification steps.
- Conditions that require the assistant to stop and request human judgment.
These criteria prevent a large volume of output from obscuring an unmet objective.
3. Step One: Understand the Repository Without Modifying It
The first step is not about writing code. It is about building an accurate map of the project.
A suitable task is:
Read the current project without modifying files or performing operations that may write data. Describe the main technology components, the responsibilities of core directories, application entry points, test and build entry points, and how configuration is loaded. Cite specific file paths for every conclusion. Clearly mark anything you cannot confirm rather than inferring it from directory names.
The goal is not to list as many directories as possible. It is to identify how the project actually executes. A directory that looks like a source directory may contain only build artifacts. Documentation may be outdated and should not be treated as the sole authority for the current startup procedure.
A strong response should trace a key execution path: where a request or task enters, which business layers it passes through, and which storage systems or external resources it ultimately accesses. For asynchronous systems, it should distinguish the component that submits work from the component that executes it.
Acceptance Criteria
- Technology claims are supported by dependency declarations, configuration, or source code.
- Directory descriptions match their actual contents.
- Startup, test, and build entry points have identifiable sources.
- Facts, inferences, and unresolved questions are clearly separated.
- Example configuration is not presented as the actual deployment configuration.
If the assistant cites nonexistent paths or claims to have confirmed content it has not read, require it to check again before allowing edits. A reliable engineering collaborator must acknowledge information gaps.
4. Step Two: Review Code Without Editing It
Once the assistant understands the project, ask it to perform a read-only code review.
For example:
Review a specified business flow, prioritizing issues that could cause runtime failures, incorrect results, or resource leaks. For each finding, provide its location, triggering conditions, affected scope, supporting evidence, and a verification method. Rank findings by risk, and list confirmed defects, risks requiring verification, and style suggestions separately.
Two constraints matter here: a clearly defined path and evidence for each claim. A repository-wide scan can come later, but the initial evaluation should not reward the number of findings.
A useful defect report answers five questions:
- Where does the problem occur?
- What input or execution sequence triggers it?
- Why does the existing logic produce an error?
- Which users or features are affected?
- What is the smallest experiment that can verify the assessment?
For example, “add exception handling here” is a generic suggestion. A stronger finding identifies a failure branch that skips resource cleanup, explains how repeated execution could keep consuming resources, and describes how to simulate that failure path and observe cleanup behavior.
Separate Severity from Confidence
Severity describes potential harm. Confidence describes how well the evidence supports the finding. They are not interchangeable.
A suspected authorization issue may have serious consequences but lack sufficient calling context to confirm it. An empty-collection access error may have a narrower impact but be consistently reproducible. The assistant should report these dimensions separately rather than labeling every finding “high risk.”
This stage reveals whether the assistant treats formatting preferences as defects, proposes unnecessary large-scale changes, or preserves uncertainty when evidence is incomplete.
5. Step Three: Fix One Clearly Bounded Problem
When you first allow edits, choose a defect that is easy to reproduce, limited in scope, and governed by clear acceptance criteria. Suitable examples include empty-input handling, boundary checks, missing error branches, or incorrect local state updates.
Avoid cross-module architectural changes, dependency upgrades, and broad performance optimization as the first editing test. These tasks make it harder to isolate variables and determine why an attempt failed.
A task might read:
Fix the specified function’s incorrect result for empty input. Preserve the existing public interface and behavior for normal inputs. Do not change dependencies or unrelated files. Explain the repair plan first, then make the smallest necessary change and add a test covering the defect. If the fix requires a broader scope, stop and explain why.
Before execution, ask the assistant to list the files it expects to modify and explain how each change relates to the target defect. This should be a reviewable action plan, not a lengthy reasoning transcript.
Example Acceptance Matrix
| Scenario | Expected behavior | Verification purpose |
|---|---|---|
| Normal input | Preserve existing results | Prevent changes to established semantics |
| Empty input | Follow the interface contract | Cover the original defect |
| Boundary input | Avoid out-of-bounds access or omissions | Check adjacent risks |
| Invalid input | Return the agreed error or reject processing | Prevent silently incorrect results |
“Minimal change” does not mean the fewest possible edited lines. It means enough change to fix the root cause without mixing in unrelated cleanup.
Also check whether the assistant weakens assertions, deletes failing tests, or reproduces the implementation logic directly inside the test to make it pass. These approaches create apparent success without increasing confidence in correctness.
6. Step Four: Use Failures to Complete the Verification Loop
Real development rarely succeeds on the first attempt. This step tests whether the assistant can use failure evidence to locate a problem rather than repeatedly guessing.
Run the targeted defect test first, then the relevant module tests. Based on the change’s impact, decide whether to run a build, static checks, or broader regression tests. Moving from narrow to broad checks reduces feedback cost and makes failures easier to locate.
If the original defect is reproducible, preserve a before-and-after record: the test fails before the fix and passes afterward. A passing result alone does not prove that the test covers the original problem.
When a check fails, require the assistant to report:
- The check it actually executed.
- The location indicated by the failure.
- Its current root-cause hypothesis.
- Evidence supporting or contradicting that hypothesis.
- The smallest change it intends to verify next.
It should also distinguish four types of failure:
Code behavior failure: Actual behavior differs from the expected result, requiring a logic fix.
Test setup failure: Test data, isolation, or assertions do not match the agreed contract. Confirm the test’s correctness before changing the implementation.
Environmental blocker: Missing dependencies, permissions, or external resources prevent a judgment about code correctness.
Intermittent failure: Timing, random inputs, or shared state may be involved, requiring repeated checks and better isolation.
If tests cannot be executed, the assistant must explicitly report the result as unverified and describe the blocker. An inference from reading code must never be presented as a passing test.
Set stopping conditions for repeated failures. If the repair begins spreading into unrelated modules, seek human review rather than allowing unlimited attempts.
7. Step Five: Review the Complete Change Before Handoff
The final step is not another declaration that the work is done. It is a delivery record that a maintainer can independently review.
A suitable request is:
Review the complete change for unrelated edits, compatibility changes, uncovered branches, and sensitive information. Summarize the modified files, reasons for the fix, checks actually executed and their results, unverified items, and rollback steps. Do not describe planned checks as completed.
The self-review should cover at least four areas.
Is the Change Scope Appropriate?
Every modified file should have a clear reason for being included. Generated content, formatting noise, and unrelated comment edits increase review effort and should be separated from the defect fix.
Has the Behavioral Contract Been Preserved?
Check for changes to inputs, outputs, error types, default values, and call order. An unchanged function signature does not guarantee compatibility: a change in default behavior can still break callers.
Is the Verification Evidence Complete?
Report these states separately:
- Executed and passed.
- Executed and failed.
- Not executed because required conditions were unavailable.
Phrases such as “looks fine” or “should run” are not substitutes for verifiable status.
Can the Change Be Rolled Back?
Explain how to undo the code changes. If the work includes data writes, configuration changes, or migrations, reverting source code may not restore the previous state. Assess this before execution, not only at handoff.
An assistant’s self-review does not replace independent review. Changes involving authorization, financial transactions, data deletion, sensitive information, or core business flows still require human review and any additional verification needed.
8. Use the Results to Assign Appropriate Work
The purpose of this five-step test is not to give the assistant an abstract score. It is to determine which level of responsibility it can handle.
| Observed performance | Recommended use |
|---|---|
| Understands the repository accurately, but defect assessment is inconsistent | Code navigation, documentation organization, and identifying candidate locations |
| Produces evidence-based reviews, but edits tend to expand beyond scope | Repair recommendations implemented by a human |
| Completes local fixes with reliable verification | Low-risk maintenance tasks with clear boundaries |
| Repeatedly completes the full workflow and respects permission boundaries | Gradually longer tasks, while retaining staged reviews |
One successful attempt does not establish long-term reliability. Repeat the evaluation across different task types, including input validation, state changes, error handling, and resource cleanup. Record how often human correction is needed, unrelated changes occur, verification claims are accurate, and problems are missed.
Longer autonomous workflows should be authorized according to task complexity, verification cost, and available human oversight—not merely because a model appears more capable. More execution time and broader permissions do not automatically produce better results.
9. Prove Control Before Expanding Autonomy
An AI coding assistant’s readiness for a project depends less on how much code it can generate than on whether it can consistently deliver verifiable results within defined boundaries.
Read-only repository analysis, evidence-based review, a local repair, failure-driven verification, and a reviewable handoff turn an informal trial into a repeatable engineering evaluation.
Expand task scope only when the assistant respects permissions, acknowledges unknowns, controls its changes, and reports verification status accurately. In a real project, the most trustworthy assistant is not the one that appears able to change everything. It is the one that knows what should change, how to demonstrate that the change works, and when to stop and ask for confirmation.
