AI Coding Assistant vs Coding Agent: What Each Can Change
Autocomplete suggests, chat answers, and an agent edits files and runs commands. Compare what each may change and which approval gates apply.
Updated · Markdown version
An AI coding assistant is a tool that suggests code or answers questions, while a coding agent also edits files, runs commands and checks its own results. The practical difference is what the tool is allowed to change, and who approves each change.
Three modes, compared by what they may change
Autocomplete proposes text at the cursor and changes nothing until you accept it. Chat answers a question about code you paste or select, and you apply the result yourself. An agent takes a goal, reads the project, edits several files, runs commands and iterates on failures. Each step up the scale adds one more thing that can alter your working tree.
Ask "what can this mode write or execute without my click?" to sort any tool.
How an agent's approval gates work: Claude Code as a worked example
Claude Code's permission docs split actions by risk. In Manual mode, reads inside the working directory need no approval, Bash commands need it except for a built-in list of read-only commands, and file edits need it except for files such as Claude Code's own plan and auto memory files. As of 2026-11-26 the permission-modes page says that with Claude Code v2.1.283 or later, auto mode is the starting mode for interactive terminal and VS Code sessions, so check which mode your session is in before relying on the prompts below. File-edit approval can be granted for the rest of a session, while a Bash approval you mark "don't ask again" is stored for that repository and command.
A worked example in Manual mode: you ask Claude Code to fix a failing test. It reads the test file and source without asking. When it wants to edit the source, it asks once, and you approve for the session. When it runs the test command, that command needs its own approval unless it is on the read-only list. If you then add a hook that runs your formatter after each edit, that formatter runs automatically, so an edit can trigger a second change you did not review line by line.
Claude Code also has an auto mode, where a second model, the classifier, reviews actions instead of you. That shifts trust from each click to the classifier's rules, and the permission-modes page says it is not a safety assurance. Check which mode is active, and switch to a mode that asks before commands on a repository with production credentials.
Choosing a mode
Decision rule: choose autocomplete when you want to type faster and review every token. Choose chat when you want an explanation or a single function drafted for review. Choose an agent when the task spans several files and includes commands you can verify afterward, and keep approval on for shell commands until you trust the repository's setup.
Pitfalls
- Approval fatigue. Clicking "yes" on every prompt trains you to skip reading. Limit "don't ask again" to commands you have read, such as a fixed test runner, and review the diff before commit.
- Hidden side effects. Hooks and project scripts run as part of an edit. Notice this by checking the project's .claude/settings.json and the /hooks list after you pull a new repository, and remove any you do not recognize.
- Agent edits outside the task. An agent may touch config or lockfiles while fixing a bug. Notice this in
git statusbefore committing, and revert unrelated files. - Stale instructions. A CLAUDE.md file or rule file from an old branch can steer the agent wrong. Check its date and contents at the start of each session.
- Trusting auto mode on sensitive repos. Classifier review is not a human review. Notice this when a repo holds deployment keys, and keep manual approval there.
When to use a skill instead
Ad-hoc prompting suits a one-time question. A reusable skill helps when the same review steps repeat. One related skill on this site is reviewing-code-changes, which reviews a diff or pull request for defects that matter, such as broken callers outside the diff, weakened tests and unsafe migrations. Use it after an agent produces changes, so a second pass checks what the first pass did. It does not replace the approval settings described above, and it adds nothing if you have not yet made a change to review.
FAQ
Is a skill the same as an agent? No. An agent is a running tool that acts on your project. A skill is a packaged set of instructions an agent can load for a repeatable workflow. Skills describe the task; the agent does it.
How do agent skills differ from MCP servers? MCP is an open standard for connecting AI tools to outside data sources, such as a ticket tracker or a document store. Skills package a workflow as instructions. Use MCP when the agent needs access to a system, and a skill when it needs a method.
Does an agent need approval to read my files? In Claude Code's Manual mode, reads inside the working directory do not need approval, while edits and most shell commands do; in auto mode a classifier decides instead of you. Check the permission settings in your tool, because other products set their own defaults.
Related skills in this catalog
Platform Score is our assessment under a published method. It is not a safety guarantee.
Related guides
Terms this guide uses
This item is a worked example in the AI glossary for:
Sources
- https://code.claude.com/docs/en/overview (accessed 2026-11-26)
- https://code.claude.com/docs/en/permissions (accessed 2026-11-26)
- https://code.claude.com/docs/en/permission-modes (accessed 2026-11-26)
- https://code.claude.com/docs/en/hooks (accessed 2026-11-26)
- https://code.claude.com/docs/en/skills (accessed 2026-11-26)