Skip to main content
← Back

What are coding agents?

A coding agent is an AI system that writes and changes software on its own. You describe a goal in plain language, and the agent plans the work, edits files, runs commands, and checks its own results.

What is an AI coding agent?

An AI coding agent uses large language models (LLMs) to build software and accomplish tasks for you. It runs tools in a loop: instead of always returning a single answer, it works through a series of tool calls, deciding what to do next based on the result of each action. You set the goal and review the output. Cursor built one of the first coding agents in late 2024, and agents have now become the main way people write software.

The quality of the output depends on the model, the harness, and the context you provide. Cursor works with every frontier model and tunes its harness to each one to get the most out of every model when building software. You can compare model results on the CursorBench page.

What is inside a coding agent?

A coding agent combines three parts:

  1. The model does the reasoning and decides what to do next.
  2. Tools let it act, like reading and editing files, searching the codebase, and running the terminal.
  3. The harness contains the system instructions, the context you provide, and the tool definitions that turn raw model output into useful work.

How do coding agents use tools?

Tools are what let a model act on the world instead of only describing it. A coding agent can search your codebase, read and edit files, run shell commands, browse the web, and record a demo of what it built. Each tool call returns a result the agent reads before deciding its next move.

How are coding agents different from autocomplete?

AI autocomplete, like Cursor's Tab model, suggests the next line or action as you type. A coding agent, in contrast, takes an entire task and carries it out across many files in your codebase. Most people now build software with coding agents.

How do I use coding agents in Cursor?

Cursor is a coding agent for building ambitious software. Open Agent mode and describe what you want, and the agent explores your codebase, makes changes, and verifies them. Your agents can run locally, or you can hand them off to the cloud to keep working after you close your laptop. You can use Cursor from the web at cursor.com/agents, on mobile, or programmatically through our SDK.

What are some other coding agents?

Coding agents are a growing category. Other examples include Claude Code and OpenAI Codex, which run on Anthropic and OpenAI models. Cursor works with those same frontier models and many more, so you can route each task to the model that fits it. Cursor also meets you across the desktop, terminal, web, and mobile.

Was this article helpful?