Which AI Should You Use for Coding? A Practical Guide to Quality and Reliability

Choose a coding workflow, match access to the task, and verify changes with a small reproducible test protocol.

Research checked · Version 1.0

A hand arranges translucent sheets marked with distinct violet revision lines.
Editorial illustration generated for Haas Arts.

You need to change a small rule in an application with a long history. A chat assistant can explain the rule, an editor extension can suggest the next line, and a coding agent can inspect files and run tests. Which is worth using, and what would make its output trustworthy enough to merge?

Choose → Apply → Verify is the structure of this series. It is an editorial framework for deciding what to delegate and what evidence to demand. This part covers tool selection, the conditions under which coding assistance helps, and a small comparison you can reproduce. The other parts apply the same questions to writing and mathematics.

Choose a workflow before you choose a model

A chat assistant works primarily through a conversation. For a question about a short function, that may be enough. Supply the intended behavior, the function and language version, then ask for an explanation tied to the code. You control what goes in and which suggestions, if any, enter the project.

IDE completion offers suggestions while you type in an integrated development environment. The low interaction cost makes it convenient for familiar patterns, repeated declarations and small tests. Its suggestions can arrive before you have specified what should happen at an edge case. Pay attention to what you approve by accepting an entire block.

A coding agent can take several steps toward a task. Depending on the product and permissions, it can read a repository, edit files and run commands. That workflow helps when the relevant implementation and tests are in different places. The repository state, installed tools, network access and command permissions all shape the result. Those are product and environment properties alongside any differences in the underlying model.

Chat: Read a proposed answer; Editor completion: Inspect the accepted lines; Coding agent: Inspect the diff and run logs
Pick an interaction style that leaves enough evidence for the task.

A model might reason well about a function from a snippet and still be poorly suited to a project change if it cannot see the caller or test the result. An agent with extensive access can still make a wrong architectural decision. For selection, separate your questions into three parts. Can the model interpret the task? Does the product expose the evidence you need? Can the environment contain the effects of a mistake? Compare the work you can verify under your own access and time constraints.

Selected workflows as of 4 December 2026#

These examples represent three interaction styles. GitHub Copilot appears twice because completion and workspace chat have different review surfaces. The matrix describes documented capabilities, with no speed or accuracy ranking. [1, 2, 3]

Workflow Documented capabilities What to check in your installation
GitHub Copilot Chat in VS Code Chat and workspace-related assistance from the editor, with mode-dependent context and tool use Which files and references enter the request, which mode is active, and whether it can edit
GitHub Copilot inline suggestions in VS Code Code suggestions as you type, accepted in the editor Which suggestion was inserted, surrounding context and whether the plan supports the feature
OpenAI Codex CLI A terminal-based coding agent that can inspect a project, edit files and run commands within its permissions Workspace boundary, sandbox and approvals, model configuration and which commands can run

Before using any cloud-backed tool with work code, check the selected account and plan for data handling, administrative controls and pricing. A local interface does not determine where inference takes place. Also consider what you can disable, such as unnecessary network or tool access. Subscription cost is one input. Time spent preparing context, reviewing changes and correcting them belongs in the comparison. A completion tool may fit someone already in an editor, while a CLI may suit a team that wants command output and a reviewable patch.

Apply the tool to a task with explicit boundaries

Explain code. Ask for a call path, inputs, outputs and uncertainties. Check the referenced functions yourself. Source citations in the answer should point to the checkout you actually have. A named function in a plausible explanation can be absent, generated at build time or part of a different version.

Write a small function. Provide the contract and edge cases before asking for an implementation. For a pure function, where results depend only on inputs, the review can focus on input handling and deterministic tests. Keep the requested file or snippet small enough to read in full.

Investigate a bug. Give the expected behavior and observations from your own environment. Ask the assistant to separate observations from hypotheses. Work from the first point where the observed state differs from the intended state. An apparently sensible patch can hide the symptom while leaving the cause untouched.

Develop tests. Give the tool requirements and ask it to propose case categories. Decide the expected values independently. When implementation and tests are generated from the same incomplete interpretation, they can agree with each other while breaking the intended behavior. Tests should exercise rejection and boundary cases as well as examples that succeed.

Change an existing repository. Provide the normal entry point, relevant conventions and test command. Ask for a short account of the files involved before delegating edits. Review the diff, including configuration and lockfiles. If new dependencies appear, ask what they are needed for and verify that the installed version exposes the proposed API.

Refactor larger areas. Write down what has to remain observable, such as URLs, data formats or retry rules. Record the baseline on representative cases. Split the work into small changes with clear reasons and review them in order. Progress is easier to recover if each part can be understood and verified separately.

Write the contract: Specify edge cases; Collect a change: Keep the task bounded; Run independent tests: Use predetermined results; Review the result: Read the diff and decide
A passing result covers the selected tests. Read the resulting change before you merge.

A reproducible comparison protocol

This exercise compares outputs under different tool conditions. The reference tests were executed locally. The article reports no head-to-head product trial. Use a disposable folder and a recent Node.js release with the built-in test runner. [4]

Implement groupByFirstSeen(labels) in labels.mjs as a named export. The input is an array of strings and is read-only. Trim leading and trailing whitespace, ignore empty results, and count equal trimmed labels case-sensitively. Return an array of [label, count] pairs in order of first appearance. Treat all labels as ordinary text. Use no dependencies. Modify only labels.mjs.

Save these tests outside the tool's workspace until scoring. The expected results come from the contract, including an ordering check for labels that resemble numbers and a check for an ordinary string that happens to look like a JavaScript property.

import { test } from 'node:test';
import assert from 'node:assert/strict';
import { groupByFirstSeen } from './labels.mjs';

test('first-seen order and case-sensitive counts', () => {
  const input = Object.freeze([' 10 ', '2', '', '10', 'A', 'a', ' A ', ' ']);
  assert.deepEqual(groupByFirstSeen(input),
    [['10', 2], ['2', 1], ['A', 2], ['a', 1]]);
});

test('labels are treated as ordinary text', () => {
  assert.deepEqual(groupByFirstSeen(['__proto__', 'x', '__proto__']),
    [['__proto__', 2], ['x', 1]]);
});

test('empty arrays and whitespace-only labels', () => {
  assert.deepEqual(groupByFirstSeen([]), []);
  assert.deepEqual(groupByFirstSeen([' ', '\t']), []);
});

Run node --test labels.test.mjs with the generated file beside the test. For a chat assistant, copy the output into the file and record that manual step. For completion, put the contract into a comment above the export. For an agent, supply the task in its normal input and allow edits only in the exercise folder. If you want to compare model quality alone, use the same interface, context and tools with each model. Here, differences in interface are part of what you are comparing.

Record date, product version, visible model identifier, permissions, whether tests were available, number of attempts, corrections and end-to-end time. Keep the first answer and the final one. If you test with different information or allow one tool another attempt, record the difference. A passing run establishes what those tests cover. It leaves questions about naming, readability, unnecessary complexity and behavior outside the contract. For a wider decision, repeat the protocol on work that reflects your project's languages and ordinary maintenance tasks.

Verify the change and interpret benchmarks carefully

SWE-bench was designed around resolving repository issues and evaluates patches under defined test conditions. Its variants differ in task selection and setup. A leaderboard score is evidence about the evaluated combination of model, agent setup and tasks. A project with different languages, tests, build times or review conventions may produce a different result. Even within a benchmark, check whether you are comparing the same variant and tool configuration. [5]

METR's randomized study of experienced open-source developers working in repositories they knew found slower completion with the early-2025 tools studied. Its participants, selected repositories and tools define the scope of that result. A team trying new tools can take a practical lesson from the study design: measure the time to finish and review an actual change, including the work that happens after a suggestion appears. The result provides limited evidence about a different team or tool version. [6]

Plausible code can satisfy an easy example while assuming too much about inputs, storage or permission checks. A review of security and maintainability also asks whether another person can understand the change, whether unsafe defaults appear and whether data stays within the intended boundary. The German article on checking AI-generated code goes through that release process in more detail.

Before you merge: a short AI-code review checklist

  • The expected behavior, edge cases and scope are written down.
  • I read the relevant callers and the full diff, including configuration and dependencies.
  • API names, signatures and versions match documentation for the installed tools.
  • Tests use expected results decided independently of the generated code.
  • The change respects input and authorization boundaries, and makes sense to the next maintainer.
  • The final patch passed the project's checks. Residual concerns and the rollback path are clear.

A tool earns its place when it contributes to a change you can explain and verify at a reasonable cost. Sometimes that is a single suggestion. Sometimes it is a patch assembled with the benefit of repository context and tests. The quality of the evidence you keep matters in both cases.

Research checked 4 December 2026.

Sources

  1. GitHub · About GitHub Copilot
  2. Microsoft · AI tools in Visual Studio Code
  3. OpenAI · Codex CLI
  4. Node.js · Test runner
  5. Jimenez et al. · SWE-bench: Can Language Models Resolve Real-World GitHub Issues?, ICLR 2024
  6. METR · Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity, July 2025
Kontakt