# Coding agent

> Canonical: https://skillalmanac.com/glossary/coding-agent | Last verified: 2026-11-25 | Index status: index-eligible

A coding agent uses a model, tools and feedback to work toward a software task, such as editing files and running tests. Products called coding assistants can also offer agentic modes.

Also called: coding agents, AI coding agent, agentic coding tool, AI code agent.

## In plain language

A coding agent is like a junior developer you hand a ticket to: you describe the change, and it opens the project, edits several files, runs the tests and tries again when they fail. A completion-only mode suggests code, possibly across many lines, for you to apply. An agentic mode can act on files and commands directly; products called assistants can offer either or both modes. That is also its main risk. It can change more than you asked for, run a command you did not expect, or report success when a test was skipped. Long tasks can consume more model calls and compute, but tool steps and model calls need not be one-to-one, and charges depend on the model, plan and execution pattern. Treat its work as a draft: read the diff before you keep it.

## Technical definition

A coding agent wraps a language model in a loop with tools. The model receives a goal and the project context, requests a tool call such as read a file, edit a file or run a shell command, the host application executes it, and the result goes back into the next model call until the model stops or hits a limit. Anthropic's guide on building agents notes that code suits this pattern because tests give automatic feedback, while people still need to confirm a fix fits the wider system. Claude Code and Codex CLI both read a repository, edit files and run commands, and both have approval settings that control what they may do without asking.

## How it shows up when you use agents

Running `claude` or `codex` in a project folder starts a coding agent. You type a goal, and the tool reads files, proposes edits and runs commands under its permission settings. In Claude Code's manual mode, file edits and most shell commands prompt unless allowed by rules; other modes can use automatic review or broader permissions. Reads inside the working directory normally need no approval. Instruction files such as CLAUDE.md and AGENTS.md give it standing guidance, and the conversation grows inside the [context window](/glossary/context-window). Under the surface, the tool around the model is an [agent harness](/glossary/agent-harness), and the loop it runs is the one described in [AI agent](/glossary/ai-agent).

What breaks when this is misunderstood: people approve every prompt without reading, or turn approvals off, and then find edits outside the task, changed config files or a commit they did not review. Others treat an instruction file as enforcement, when the tool's permission rules are the layer that actually blocks actions.

Next actions. Start in a clean git state so the diff shows only the agent's work. Keep shell-command approval on until you trust the setup. Give the agent a way to check itself, such as a test command, since tests are one useful source of feedback for the loop. Read the diff before committing. The [AI coding assistant versus coding agent](/learn/ai-coding-assistant-vs-coding-agent) guide gives a decision rule for choosing a mode.

## Common confusions

- **Coding agent versus coding assistant.** Coding assistant is also an umbrella product label. Distinguish a suggestion-only mode from an agentic mode that can edit files and run commands. Check the tools and permissions actually enabled.
- **Coding agent versus vibe coding.** A coding agent is a tool. [Vibe coding](/glossary/vibe-coding) is a way of working in which you accept generated code with little review. You can use an agent and still review every change.
- **Coding agent versus model.** The model writes the reasoning and code. The agent is the model plus tools, a loop and permissions.
- **Myth.** If the agent says the tests pass, they passed. Verify the result yourself, because an agent's report of success can be wrong.

## Worked examples in this catalogue

### [AI Coding Assistant vs Coding Agent: What Each Can Change](https://skillalmanac.com/learn/ai-coding-assistant-vs-coding-agent)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A comparison of autocomplete, chat and an agent by what each may change, with a manual-approval Claude Code worked case: reads inside the working directory need no approval, while edits and most shell commands prompt unless allowed by the settings.

Why it exercises the concept: It defines the line this entry draws, that an agent can change your working tree, and shows how approvals control that.

### [What Is Claude Code and What It Can Touch on Your Machine](https://skillalmanac.com/learn/what-is-claude-code)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: What Claude Code can read, edit and run on your machine, and how permission modes and rules gate each action, including that CLAUDE.md shapes intent but does not enforce access.

Why it exercises the concept: It is one concrete coding agent explained end to end, including what stops it from acting freely.

### [Claude Code](https://skillalmanac.com/tools/claude-code)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Anthropic's overview describes Claude Code as an agentic coding tool that reads your codebase, edits files, runs commands and integrates with development tools, in the terminal, an IDE, the desktop app and the browser.

Why it exercises the concept: It is a coding agent as the vendor documents it, and the same engine appears on each surface.

### [Codex](https://skillalmanac.com/tools/codex)

```
codex
```

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: OpenAI's documentation describes Codex CLI as a terminal tool that works on your local repository, inspecting code, editing files and running commands, with approval settings that control what it may do without asking.

Why it exercises the concept: It supplies another terminal coding-agent example, so you can compare the tools under their respective permission settings.

## Related terms

- [AI agent](https://skillalmanac.com/glossary/ai-agent.md)
- [Agentic AI](https://skillalmanac.com/glossary/agentic-ai.md)
- [Vibe coding](https://skillalmanac.com/glossary/vibe-coding.md)
- [Agent harness](https://skillalmanac.com/glossary/agent-harness.md)
- [Agent instruction file](https://skillalmanac.com/glossary/agent-instruction-file.md)
- [Human in the loop (HITL)](https://skillalmanac.com/glossary/human-in-the-loop.md)

## Sources

- [Claude Code overview](https://code.claude.com/docs/en/overview), Anthropic (Claude Code Docs) (accessed 2026-11-23)
- [Codex CLI](https://learn.chatgpt.com/docs/codex/cli), OpenAI (Codex Docs) (accessed 2026-11-23)
- [Building effective agents](https://www.anthropic.com/engineering/building-effective-agents), Anthropic (accessed 2026-11-23)
- [Configure permissions](https://code.claude.com/docs/en/permissions), Anthropic (Claude Code Docs) (accessed 2026-11-23)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
