AI Coding Basics

How To Boost Productivity With AI Coding Today

How To Boost Productivity With AI Coding Today

Give the tool small, well-specified tasks with project context behind them, and check everything it returns with tests and review. The speed comes from that workflow. The assistant alone doesn’t deliver it.

GitHub Copilot, Cursor and Claude Code cover completion, chat and multi-file agent work, and results vary sharply depending on the task.

METR’s 2025 randomized trial is the odd one out. Experienced open-source developers took 19% longer with AI tools allowed, while believing the tools had sped them up.

Does AI Coding Make Developers Faster?

YouTube player

On small, well-specified tasks, yes. On large codebases the developer already knows well, one randomized trial on real repositories found the opposite.

The Copilot group building an HTTP server in JavaScript finished 55.8% faster (Peng et al., 2023). Across 96 Google engineers the speedup was about 21%, though the authors report it as not statistically significant at the 5% level once adjusted for covariates (p = 0.086) (Google, 2024). Then there’s METR, where 16 experienced open-source developers working through 246 tasks came out 19% slower (METR, 2025).

Adoption doesn’t seem to care either way. About 90% of software professionals use AI tools in their work (DORA, 2025).

Why the studies disagree

The tasks differ more than the tools do.

The big gains came from self-contained work with a clear spec, like building an HTTP server from scratch, and from new code that lands inside a defined change list, like the Google service-logging task. The losses came from real issues in repositories averaging 1M+ lines of code, worked on by developers who had contributed to those repositories for years.

The perception gap matters as much as the speed gap. METR’s developers forecast a 24% speedup before the trial and still estimated 20% afterward, while the clock showed 19% slower.

What the METR result does not prove

The authors are explicit about what they do not conclude. They don’t claim that AI fails to speed up many or most developers, and they don’t claim that no better way of using it exists for that setting (METR).

The tools were early-2025 releases, primarily Cursor Pro with Claude 3.5/3.7 Sonnet. METR’s own page flags the results as out of date and points to newer data on late-2025 tools, published in February 2026. METR itself describes that newer data as an unreliable signal, because selection effects obscured the true speedup.

DORA’s 2025 report on generative AI in software development frames AI as an amplifier. It magnifies the strengths of high-performing organizations, and the dysfunctions of struggling ones too.

So expect the biggest gains where the task is narrow and the feedback loop is fast, and the smallest where the context lives in the developer’s head.

Which Tasks Gain the Most Time From AI Coding

YouTube player

Boilerplate, tests, documentation, refactors and unfamiliar-language work return the most time. Anything that depends on context the tool cannot see returns the least.

Tasks with strong gains

Boilerplate and scaffolding are the easy wins: config files, CRUD handlers, type definitions. Test generation for functions that already exist comes right behind. The tools are also good at summarizing modules you did not write, and mechanical refactors or migrations with a clear target work well too. Debugging fits as well when you can hand over a stack trace and get ranked suspects back.

Test writing is the safest place to start. A tool can draft cases to generate unit tests in seconds, and the test run tells you straight away whether the draft holds.

Atlassian’s blog lists working in an unfamiliar language, explaining code and refactoring among the benefits of AI coding tools. Its caveat applies everywhere, though. Explanations and suggestions are not always correct.

For a mechanical code refactoring job, give the tool a function and a plain description of the change. The first attempt is usually reasonable and needs a read-through, not a rewrite.

Shopify pointed AI agents at its flaky tests and low test coverage, according to Shopify Engineering (2025). Repetitive, well-bounded problems suit agents.

Tasks with weak gains

Changes that spread across many files of a mature repository lose time more often than they save it. So do edits you could type from memory in under a minute, work with vague requirements and anything security-sensitive.

The cost shows up as review time. In the 2025 Stack Overflow survey, 66% of developers named “almost right, but not quite” AI solutions as their top frustration.

Choosing Between Autocomplete, Chat and Agent Tools

YouTube player

Use the simplest tool type that fits the task. Line-level edits belong to completion, and questions go to chat. Save agents for multi-file changes.

The broader definition of AI coding covers every mode in the table below. Each one trades speed against how much of the work you hand over.

Working modes

ModeWhat it doesExample toolsBest for
Inline completionSuggests the next line or block as you typeGitHub Copilot, TabnineOne-function edits
ChatAnswers questions and drafts code in a side panelCopilot Chat, JetBrains AI AssistantExplanations, small drafts
Agent modeEdits several files, runs commands and tests in a loopClaude Code, Cursor, Windsurf, Aider, ClineMulti-file changes with tests
Cloud agentWorks a task in a remote sandbox and returns the resultOpenAI Codex, GitHub Copilot cloud agentWell-defined tickets

Agent mode is also called agentic coding. It carries the highest payoff and the highest review burden.

If the edit fits inside one function, stay with completion. Once it spans several files, take a Git checkpoint and hand it to an agent.

What the main tools cost

ToolPlans (as of November 2026)What to watch
GitHub CopilotFree at $0 with 2,000 completions per month; Pro at $10; Pro+ at $39; Max at $100Chat and agent work draw on a credit allowance, completions do not
Claude CodeIncluded in Claude Pro at $20 a month billed monthly and Max at $100Not included in the Free plan
CursorFree tier with limited agent requests; Teams from $30 per user a monthThird-party models are billed separately by usage

Start on a free or entry tier. Agent work burns usage allowances faster than completion does, so upgrade only after your own task log shows you hitting the cap.

How to Give an AI Coding Tool the Project Context It Needs

YouTube player

Put build commands and test instructions in a repository instruction file, along with your code style rules, and the tool stops guessing at them.

Each Claude Code session begins with a fresh context window. Without a file, the tool infers conventions from whichever parts of the codebase it happens to read.

Instruction files by tool

FileRead byScope
CLAUDE.mdClaude CodeProject instructions, shared with the team through version control
.github/copilot-instructions.mdGitHub CopilotAll requests in the repository
NAME.instructions.mdGitHub CopilotFiles matching an applyTo glob
AGENTS.mdMany agents, including Cursor, Codex and WindsurfThe closest file to the edited code takes precedence

AGENTS.md is the cross-tool option. The agents.md project reports use by over 60k open-source projects.

What belongs in the file

The AGENTS.md project treats a project overview, build and test commands, code style rules, testing instructions and security notes as the typical sections.

Short beats complete. Anthropic’s documentation says Claude treats these files as context, not enforced configuration, and follows specific, concise instructions more consistently.

A stale file is worse than none. Rename a test command and forget the file, and the tool keeps running the old one with full confidence.

Connecting external tools with MCP

MCP, short for Model Context Protocol, is an open-source standard for connecting AI applications to data sources, tools and workflows. Clients that support it include Visual Studio Code and Cursor (modelcontextprotocol.io).

Use it to give the tool read access to your issue tracker, docs or database schema. Connect only the servers a task needs, and read the protocol’s security guidance before granting write access.

How to Write Prompts That Return Usable Code

YouTube player

Name the files and describe the symptom or the target behavior. Then say what done looks like. Skip any of that and you pay for it in a round of corrections.

Scope

GitHub’s prompt guidance says to split large work into small steps and ask Copilot to complete them one at a time.

One large prompt for a whole feature goes wrong in a predictable way. The tool fills every gap with its own assumption, and you learn which ones only after reading the full diff.

Specification

Vague promptSpecific promptWhat it adds
Fix the checkout bugCheckout returns a 500 when the cart holds a discontinued item. Reproduce it in a test, then fix the handler in src/cart/.Symptom, location, check
Add paginationAdd cursor pagination to the orders endpoint, following the invoices endpoint. No new libraries.Pattern, constraint
Clean this upExtract the validation into a helper. Keep the public signature and leave behavior unchanged.Definition of done

Paste error text, stack traces or a screenshot instead of describing them. Anthropic’s Claude Code documentation recommends the same, along with naming the file and stating the symptom up front.

When the requirements are still fuzzy, ask the tool to interview you and write a spec file before any code. The same documentation suggests building from that file in a fresh session, so the build starts with a clean context and a written definition of done.

Examples

A sample input with its expected output works well. An existing function to imitate does too, and so does a test that currently fails.

GitHub’s guidance counts unit tests as examples, and notes that Copilot gives extra weight to instructions at the beginning and end of a prompt. Put the main requirement at one of those two ends.

A Test-First Workflow for AI Coding Sessions

YouTube player

Give the tool a check that returns pass or fail, then let it loop until the check passes. Without one, you become the test suite.

  1. Write the failing test yourself, or have the tool draft it and read every assertion.
  2. Ask for a short plan before any code, and read it.
  3. Commit a clean Git checkpoint.
  4. Let the tool implement the change and run the test until it passes.
  5. Read the diff, then run the full suite for regression testing across code the change touched.
  6. Commit the result, or roll back and rewrite the prompt.

It’s test-driven development with a tool doing the typing. The test is the contract, and the plan step catches a wrong approach before it costs you a diff.

After two failed corrections, clear the session and write one better prompt. Anthropic’s documentation gives the reason, which is that a third correction piles onto a conversation that already holds two failed attempts.

Checkpoints have a gap worth knowing about. Claude Code’s built-in rewind restores only files its own edit tools changed. Anything touched through a shell command is not restored, so Git stays your real safety net.

Ask for evidence at the end, meaning the command that ran and its output. “All tests pass” with no output proves nothing.

How to Review AI-Generated Code Before It Merges

YouTube player

Treat AI-generated code as a pull request from a fast contributor who has never seen your production incidents. Run it through the same code review process as human work, plus a few extra checks the tool cannot do for itself.

What goes wrong most often

YouTube player

Invented dependencies show up first. The USENIX Security 2025 package-hallucination study found averages of at least 5.2% for commercial models and 21.7% for open-source models (Spracklen et al.).

Insecure code is the bigger worry. Across 80 tasks and more than 100 models, 45% of cases introduced a flaw from the OWASP Top 10, and newer or larger models did no better (Veracode, 2025).

Duplication is the quiet one. In GitClear’s analysis of 211 million changed lines, 2024 was the first year copy/pasted lines exceeded moved lines.

Veracode builds security tooling and designed its tasks to expose weaknesses, so read 45% as a stress-test result, not a rate for your codebase. GitClear measures repository-wide patterns, not single projects.

Review checklist

  • Confirm every new dependency exists in the official registry and belongs to the project you expect
  • Run the linter and static analysis before reading a line
  • Read security-sensitive paths by hand, especially auth, input handling and queries
  • Check that the tests assert behavior and don’t just run
  • Reject changes that duplicate an existing helper

Duplicated blocks are how technical debt enters through a green build. The review step is where you catch it.

Review has a price. METR’s trial measured developers spending 9% of their time reviewing and cleaning AI output, and a majority reported making major changes to it.

Keep pull requests small. SmartBear’s study of a Cisco team found that reviewers stop finding defects reliably once a review passes roughly 200 to 400 lines of code at a time.

When AI Coding Does Not Make You Faster

AI coding slows you down on code you know well and in large repositories, basically anywhere the context lives in your head and not in the files. METR’s paper names several contributing factors, and the table pairs each with a counter-move.

FactorWhat the paper reportsCounter-move
High familiarityLarger slowdown on repositories developers knew wellType the edits you already know
Large, complex repositoriesAI performs worse as codebases growScope each prompt to one module
Low reliabilityFewer than 44% of generations acceptedRewrite the prompt, not the output
Implicit contextAI lacks the tacit knowledge developers holdWrite it into the instruction file
Over-optimismExpectations ran ahead of resultsLog your own task times for two weeks

Individual task time versus team delivery

The METR trial and DORA’s 2025 report don’t contradict each other, because they measure different things. METR timed individual tasks. DORA looks at delivery across teams.

DORA found that AI adoption now correlates with higher software delivery throughput, a reversal of the prior year’s result, but it still correlates with greater delivery instability. Google Cloud’s announcement adds that teams with loosely coupled architectures and fast feedback loops see gains, while tightly coupled systems hold them back.

Faster output with weak tests and slow feedback ships more breakage, sooner.

A decision rule

Skip the tool when the edit takes minutes by hand or you can’t state the requirement in a few sentences. Skip it too if the change is security-critical and you can’t review it line by line.

The simpler path is often the right one. A developer who types a familiar fix in 90 seconds gains nothing from writing a prompt, waiting, and reviewing a diff.

AI Coding Productivity FAQ

Is vibe coding the same as AI coding?

Not quite. With vibe coding you describe what you want and accept the generated code with little or no review.

AI coding covers that, but it also covers the careful, test-backed way of working.

Do beginners or experienced developers gain more from AI coding?

Less experienced developers gain more. Across 4,867 developers at Microsoft, Accenture and a Fortune 100 company, AI users completed 26.08% more tasks, and less experienced developers had higher adoption rates and greater gains (Cui et al., 2025).

That is a throughput count, not task time, and it fits the slowdown METR saw in veterans working on repositories they knew well.

Can AI coding weaken programming skills?

It can, depending on how you use it. In Anthropic’s 2026 randomized trial, the AI group scored 17% lower on a quiz covering concepts they had used minutes earlier.

Participants who asked follow-up questions and requested explanations while coding kept more.

Is it safe to send company code to an AI coding assistant?

Only under the right plan. GitHub does not use Copilot Business or Enterprise data to train its models.

Since April 24, 2026, interaction data from Copilot Free, Pro and Pro+ is used to train models unless the user opts out. Read the data terms of every tool before pasting proprietary code.

How do you measure whether AI coding is paying off?

Track both halves of DORA’s delivery metrics. Throughput is change lead time, deployment frequency and failed deployment recovery time, and instability is change fail rate plus deployment rework rate.

Rising throughput with rising instability means the gain is borrowed, not earned.

What to Change First in Your AI Coding Workflow

YouTube player

Write the failing test before the prompt. A pass-or-fail check gives AI coding a stopping condition and gives you evidence to review in place of a summary to trust.

After that, add an instruction file holding your build and test commands. Then log task times for two weeks.

The log comes last on purpose. Developers in METR’s trial misjudged their own pace, so a timed record settles what impressions cannot.

Drop the tool for any task type where the log shows no gain after those two weeks. The cost is slower early sessions, since the test takes time before any generated code appears.

Re-run the log whenever the tool or model changes, because this sequence reflects studies and documentation checked in November 2026. Once the habit holds, compare the best AI tools for developers against your own numbers.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.