Part 1: The agentic loop — why Claude Code is not autocomplete
Most developers pick up Claude Code expecting it to work like GitHub Copilot with a chat window attached. You describe what you want. It suggests code. You accept or reject. That model is familiar and it works.
It is also not what Claude Code does.
Claude Code is an agentic loop. Understanding what that means — precisely — is the first step to using the tool well.
What autocomplete tools do
Autocomplete tools observe your code context and predict the next tokens. They are fast, local, and stateless. Each suggestion is independent of the last. You stay in control of the code at every keystroke. The tool completes a thought; you supply the judgment.
This is useful. It is also bounded. The tool cannot run your tests, read a file in another directory, search the web for the API documentation it needs, or chain a sequence of actions to produce a working result. It fills gaps; it does not solve problems.
What Claude Code actually does
When you give Claude Code a task, it runs a loop:
- Read — gather relevant context (files, code, project structure)
- Decide — determine the next action needed
- Act — execute a tool (write a file, run a command, search the web)
- Observe — read the output of that action
- Decide again — assess whether the task is done or what to do next
- Repeat until complete
The tools Claude Code can call: read files, write files, run bash commands, search the web, spawn subagents, call external APIs. Each tool call is visible in the terminal as it happens — you can watch the loop run in real time.
This is categorically different from autocomplete. The tool is not suggesting the next line. It is executing a plan.
Why this matters for how you write tasks
With autocomplete, vague is fine. "Write a function that sorts users" produces a reasonable suggestion. If it's wrong, you adjust it.
With an agentic loop, vague is expensive. If you say "fix the auth system," the loop will form its own interpretation of what "fix" means and execute against that interpretation — potentially across multiple files, multiple test runs, multiple decisions. The loop terminates when Claude decides the task is complete, not when you accept a suggestion.
Precision in the task description is the primary lever on quality. Specific, bounded tasks with clear success criteria produce specific, bounded results. Open-ended tasks produce open-ended execution.
A useful framing: you are a senior engineer handing a task to a junior colleague who will work autonomously until they report back. What would you tell that colleague? That level of specificity is what Claude Code needs.
The visibility principle
Because every tool call is shown in the terminal, the loop is fully auditable. You can see which files were read, which commands were run, what outputs were observed. Nothing happens in a black box.
This is intentional. Anthropic designed Claude Code to be transparent because transparency is how accountability works. When the loop makes a decision you disagree with, you can see exactly where it diverged from your intent and correct it.
In VS Code (covered in Part 2), the extension surfaces each file edit as a diff you can approve or reject before it is applied. Plan mode makes the loop describe its intended actions before taking any of them. These interfaces make the agentic loop legible without slowing it down.
The accountability shift
With autocomplete, you write the code and accept responsibility for it. The tool helps you type it faster.
With an agentic loop, you direct an agent that writes the code. The accountability is still yours — you merge the PR, you own the system — but the relationship has changed. You are now a reviewer and decision-maker, not the primary producer.
This shift has practical consequences that run throughout the rest of this series:
- What you configure (CLAUDE.md, covered in Part 3) matters more than what you prompt in the moment
- Reviewing and validating output is a core skill, not a formality
- The quality of your task descriptions directly determines the quality of results
The engineers who get the most out of Claude Code are those who internalize this shift early. They stop prompting and start directing.
Next in this series: Part 2 — Getting started: Claude Code in VS Code
Source: How Claude Code works