AI coding: what it is, how it works, and the tools in 2026
Updated
AI coding is writing software with a language model doing part of the work: finishing the line you started, answering a question about your code, or taking a whole task, reading the repository, editing files, running the tests and coming back when it’s done. The three are different products with different risks, and most “which AI coding tool” arguments are people comparing one kind to another. This page sorts them, says what each costs, and shows what the agent kind looks like when it runs.
The three kinds of AI coding#
| Kind | What it does | You stay in control by | Examples |
|---|---|---|---|
| Autocomplete and chat | Suggests the next lines as you type; answers questions in a side panel | Accepting or ignoring each suggestion | GitHub Copilot, Cursor Tab, Tabnine, Amazon Q Developer |
| Agents | Takes a task, reads the code, edits files, runs commands, loops until done | Permission rules: what runs without asking, what asks, what’s blocked | Claude Code, Codex, Antigravity, OpenCode, Cline, Kilo Code, goose, IBM Bob, Contenox Harness |
| App builders | Generates a whole app from a description, in the browser, and hosts it | Describing again until it looks right | Lovable, v0, Replit, Bolt |
Autocomplete changes how fast you type. Agents change what you do all day: you write the task and review the result, and the agent does the typing. App builders skip the code entirely, until you need to change something they didn’t anticipate.
Most products now span two rows. Cursor is an editor with autocomplete and an agent. GitHub Copilot is autocomplete, a chat, a terminal agent and a cloud agent that opens pull requests. Cline and Kilo Code started as editor agents and now ship a CLI, a desktop app and cloud runs. The row that matters is the one you spend your day in.
What AI coding looks like with an agent#
A real task, as it runs in a terminal agent:
> Add a --json flag to the export command and cover it with a test.
Read src/cli/export.ts
Read src/cli/export.test.ts
Edit src/cli/export.ts (+14 −2)
Edit src/cli/export.test.ts (+21)
Run npm test -- export ✓ 9 passed
Added --json to export; output goes through JSON.stringify with
2-space indent. One new test checks the flag and the shape.
Each line is one turn of a loop: the agent asks the model what to do, the model answers with a tool call, the agent runs it and feeds the result back. The loop stops when the model answers with text instead of a tool call. Every edit and command went through the agent’s permission rules first; here, reads and the test run were allowed without asking, and the edits were approved once for the session. What is an AI coding agent? shows one turn of that loop in the JSON the model actually sees.
Which AI coding tool for which job#
| You want | Pick | Because |
|---|---|---|
| Faster typing in the editor you have | GitHub Copilot | Autocomplete, chat and an agent in VS Code, JetBrains and others, on a plan many companies already pay for |
| An editor built around AI | Cursor | Tab completion and an agent in one window, through Cursor’s servers; in a mid-2026 Hacker News thread, most commenters who described their setup still used it, many next to Claude Code or Codex |
| An agent for a large codebase | Claude Code | Top rows on Terminal-Bench 4.0 as of November 2026; terminal, editor, desktop and web |
| An agent on a ChatGPT plan | Codex | Use Codex in the ChatGPT desktop app, IDE or terminal. The CLI is open source and supports a native Windows sandbox. |
| An agent on a Google AI plan | Antigravity | Google’s agy CLI, the Antigravity IDE and the 2.0 desktop app that runs several agents at once; Gemini plus a fixed list that includes Claude |
| A coding agent across desktop, terminal and web | OpenCode | Connect ChatGPT Plus/Pro or GitHub Copilot, use an API provider or choose a local model. Its phone app can steer a paired session. |
| An agent inside VS Code or JetBrains, your own keys | Cline or Kilo Code | Both open source; Kilo adds a gateway to hundreds of models and a free-models option |
| An agent that also does non-code work | goose or Hermes Agent | goose on the desktop and in the terminal; Hermes in Telegram, Slack, Discord and email too |
| An agent inside the firewall, with governance | IBM Bob | On-premises and air-gapped since October 2026; routes each task between Claude, Mistral and IBM’s Granite |
| A run-anything dashboard for several agents | OpenHands Agent Canvas | Self-hosted; runs its own agent plus Claude Code, Codex, OpenCode and any ACP agent |
| A whole app from a description, no code | Lovable, v0, Replit or Bolt | Browser-based, hosted; the fastest way to a demo, the slowest way to change one detail later |
| Local models with one command | Ollama | ollama launch claude, codex, opencode, pi or dsh configures the agent for a local or Ollama Cloud model |
| Agents that ask first, by rules you can read | Contenox Harness | A policy engine decides what each call may do; Windows-first desktop app |
The ranking behind the agent rows, with the benchmark data, is in best AI coding agents. The licensing, sign-in and sandbox matrix for every agent is in the AI coding harness comparison.
Is AI coding free?#
The tools are often free. The model usually isn’t.
- Free access depends on the tool and model. GitHub Copilot, Cursor and ChatGPT offer limited free tiers. With OpenCode you can run a local model or connect a supported account. Goose also offers ChatGPT sign-in, and Aider can connect you to OpenRouter’s free or paid models when you start without a key.
- A local model costs nothing per token. OpenCode or Codex with a model from Ollama runs with no subscription and no bill, at the speed of your GPU. Best Ollama models for coding lists what fits in 8, 16, 24 and 48 GB.
- The bill is the model, not the tool. An agent resends the whole conversation on every step. In the Contenox team’s tests, one eight-prompt session sent about 300 million input tokens: about $80 on Claude Fable 5.1 with every optimization on, under $1 on DeepSeek V4 Flash (since replaced by V4.1 Flash). Same task, same tool. AI coding costs shows where the tokens go and how to cut them.
Plans and limits change monthly; the one page that keeps them side by side is AI coding subscriptions compared.
How difficult is AI coding?#
Typing is no longer the skill. Three others are:
- Writing the task. “Add a
--jsonflag and cover it with a test” gets a good result. “Make the export better” gets a guess. The agent does the smallest thing that satisfies the words; if you want error handling and an empty state, say so. - Reading the result. You review a diff instead of writing it. Reviewing well is harder than it sounds when the diff is clean, confident and wrong in one line.
- Setting the rules. Which commands may run without asking, which files may change, what’s blocked. Set once per project; otherwise you either approve every step until you stop reading them, or switch approvals off. Why does my coding agent keep asking for permission? has the settings for each agent.
Seen in practice: the pattern a write-up on vibe coding describes is prompt, it works; try it, it breaks; prompt again; ship at the deadline; it breaks in production. That is how a junior developer works, and the post’s conclusion is that vibe coding turns even senior developers into juniors again, which it counts as useful, because it puts the old question back on the table: what software engineering is actually about. The skills above are the senior half that the loop does not supply. The post is Throw a Prompt at your IDE and see it get done!.
The repository matters as much as the prompt. A build command that works, tests that run in seconds, and an AGENTS.md with the three things the agent keeps getting wrong raise every tool’s results. That work has a name, harness engineering, and it’s where the teams getting the most out of AI coding spend their time.
Where AI coding goes wrong#
- It declares victory too early. The first passing test ends the loop. Make the agent run the whole suite, or hand the result to a second checker.
- It runs something you didn’t want.
git push --force,rm -rf, a migration against the wrong database. Each agent has a skip-all mode, and each agent’s docs tell you not to use it outside a container. What those modes do, agent by agent, is in YOLO mode. - It reads what it shouldn’t. Your
.env, your SSH keys, your cloud credentials are in the working directory too. Keep secrets away from AI agents. - It costs more than you expected. See the token numbers above; long sessions and big files are the usual cause.
- Its report is not its record. A six-step plan to read the last five Ollama releases with the Playwright browser tool and write them up in Notion ran to the end, and the log printed a “Step 10” that no plan contained before it said all steps were complete. The Notion page came out with all five releases; the log still numbered a step that never existed. The run is in AI Beyond the Hype. Check the result, not the summary.
The fix for the middle two is the same: permission rules that say yes to the routine and no to the dangerous, kept on. A sandbox limits the damage when the rule is wrong. How to sandbox AI coding agents covers what each agent offers on macOS, Linux and Windows.
Is AI coding allowed?#
Three separate questions hide in that one.
- May you use the code it writes? Every major tool’s terms let you use the output; read your provider’s terms for the exact grant. Whether purely generated code is itself protected by copyright is unsettled in most jurisdictions, which matters if you plan to assert copyright on it.
- Where does your code go? To the model provider, on every request, unless the model runs locally. Business plans from Anthropic, OpenAI, GitHub and Google state that they don’t train on your data; consumer plans differ. Companies with code that can’t leave the building run local models, or an on-premises product such as IBM Bob.
- Does your employer allow it? Many don’t, or allow one tool. The agent’s permission log is what an audit will ask for.
How do I start?#
Pick the agent that matches the plan you already pay for, and install it:
npm install -g @anthropic-ai/claude-code
npm install -g @openai/codex
npm install -g @opencode/cli
For OpenCode on Windows, download the standalone CLI ZIP or the desktop installer. OpenCode downloads
For a graphical first run, open a project in the Code tab of Claude Desktop or choose Codex in the ChatGPT desktop app. Both agents also have editor integrations. The packages above install their terminal clients. Anthropic recommends its native installer for a new CLI installation. Claude Code interfaces and installers · OpenAI’s desktop quickstart
Then, in your project, set the permission rules before the first task. Each agent’s install, first run and permission setup is in terminal coding agents. On Windows, read AI coding agents on Windows first; sandboxes differ there more than anywhere else.
Contenox Harness#
Contenox Harness is the desktop option for people who want the rules visible: a desktop app that opens a project folder, works with a chosen provider (a ChatGPT subscription, an API key, a local model, or Claude Code hosted inside the app), and lets a policy engine decide what the agent may run. The routine work runs at YOLO speed and the dangerous part still asks: what runs without asking is a rule set that can be read and changed under Permissions, and the destructive commands and credential stores stay gated or blocked. See built-in tools and permissions. Download it here.
Related guides#
What is an AI coding agent?: one turn of the loop, in JSONWhat is an AI coding agent? How it works, with an exampleWhat is an AI coding agent? A program that reads your code, runs commands and edits files in a loop until the task is done. How it works, and where it goes wrong.
Best AI coding agents: the ranking and the criteria behind itBest AI coding agents 2026: ranking and comparisonThe best AI coding agents in November 2026, ranked by stated criteria: benchmark results, model choice, Windows support and cost model, with a pick for each need.
AI coding costs: where 300 million tokens come fromAI coding costs: why agents burn tokens and how to cut itAI coding costs explained: why one agent session can send hundreds of millions of tokens, what sessions really cost, and the habits that cut the bill.
What is an AI harness?: the software that turns a model into an agentWhat is an AI harness? Agent = model + harness, explainedWhat an AI harness is, what's inside one, an example loop in 20 lines, why the same model scores 14 points apart in two harnesses, and which harnesses exist.
GlossaryAI coding glossary: agents, MCP, RAG, KV cache and moreAI coding glossary: plain definitions of the terms you meet when building software with AI agents, from ACP and AGENTS.md to prompt caching, RAG and worktrees.
What is a harness?What is an AI coding harness? Harness vs agent vs modelWhat is an AI coding harness? The program around the model: loop, tools, context, permissions. How it differs from the model, and why it changes the results.