AI Services and Tools (4): Coding Agents (Cursor / Claude Code / Codex / Open-Source Agents)#

The reason coding agents get a chapter of their own is clear. In a one-person startup, these tools are the hands that build the product. In my case, the time spent on “coding by typing directly” has dropped dramatically over a few years, and “conveying requirements to an agent and reviewing the results” has filled that space. This chapter lays out how to understand, choose, and use those tools.
First, three words to keep apart: model, agent, client#
The biggest reason this topic is confusing is that model, agent, and client get discussed all mixed together.
- Model: the brain that thinks. The LLM itself, as explained in Key AI Concepts, Chapter 1.
- Agent: the way of working that puts the brain to actual work. It includes the repeating loop of reading files, fixing code, running commands, looking at test results, and fixing again, plus the rules that wrap that loop (the
The execution environment that wraps a model and puts it to actual work. It decides which tools to give, in what order to load context, how to block dangerous commands, and how to retry on failure. Even with the same model, results differ greatly depending on the harness.
). - Client: the window through which a person uses the agent. Editors,
A window where you type commands as text and get results back as text. Programs used this way through commands are called CLIs (Command-Line Interfaces). With no buttons or menus they feel unfamiliar at first, but other programs and scripts can call them in exactly the same way, which makes them strong for automation.
, desktop apps, the web, and messengers all fall here.
A simple analogy: the model is the engine, the agent is the driving style and transmission, and the client is the driver’s seat. Cars that look the same from the outside can feel quite different if only the engine is shared and the driving style differs. For example, choosing an OpenAI coding model in Cursor’s chat and installing the Codex extension inside Cursor are entirely different things. The former is Cursor’s agent using an OpenAI model; the latter is OpenAI’s agent sitting in the driver’s seat called Cursor. Even with the same model, the results differ because which tools it is given, in what order context is loaded, and how it retries on failure all differ. Key AI Concepts, Chapter 4 (Agents and Harnesses) covers this difference in more depth.
Coding agents by shape#
Even among “coding AI,” the characters differ quite a bit, and two axes make them easy to sort. One is who drives. It is a spectrum from assistive tools ( A feature where, while you type code, the AI previews the code likely to come next in faint text and you accept it with a single key. It is the most basic form, in which the person drives and the AI helps a line or two at a time, and GitHub Copilot first became widely known this way. A way of working where you send a request, do other things without waiting for the result, and receive the result when it is done. With coding agents, it means handing off a task, walking away, and checking the finished result later.
One thing is worth settling up front. Until 2025, one product meant one shape, as in “Cursor is the A single program that gathers development tools such as code editing, running, debugging, and version control. VS Code is the most widely used, and Cursor and the Antigravity IDE are also built on VS Code.
Whichever seat you use, what the agent can do is nearly the same. Reading files, fixing code, running commands and tests, and using external tools through MCP are the same wherever you open the same agent. What differs is how the person sees and instructs ( A way of operating by clicking graphical elements on screen such as buttons, menus, and windows. It contrasts with the CLI, where you type commands as text; it is easier for a person to see and judge, but harder for another program to operate on your behalf.
| Driver’s seat | Form | What other seats lack |
|---|---|---|
| IDE extension | My machine · GUI. A panel inside the editor | Open files and the selection become context automatically, and you see changes right away as A side-by-side view of a file before and after a change, with added and removed lines marked in color. It is used to see at a glance what the agent changed, and to accept or revert only part of the changes. in the editor |
| Desktop app | My machine · GUI. A window separate from the editor | Manages several sessions, local and cloud, on one screen |
| Terminal (CLI) | My machine · text input and output | Can be called from A file listing in order the commands you would type into a terminal. Running the file executes those commands one after another, making it the simplest means of automation for running repetitive work in one go. ,A system that automatically runs builds and tests whenever code is pushed to a repository. GitHub Actions is the representative example, and attaching a coding agent to it lets it review automatically when a PR opens or fix failing tests. , and other programs, and moved to a server to run as is |
| Web · mobile · messenger | Remote · GUI. Browser, phone, Slack | Start and drive sessions without being at your machine |
| Cloud execution | Provider’s cloud · started from any seat | Keeps running when your machine is off, and uses none of its resources |
| Scheduled · resident execution | Provider’s cloud or my own server · started without a UI | Runs unattended on a schedule or an event (a The unit for requesting that code you changed be merged into the main repository. The changes and a description go up together, and they are merged after another person or an agent reviews and approves them. Coding agents running in the cloud usually return their work as a PR. , a message) |
| Program (SDK · API) | Inside my code, or a harness the provider hosts | Works as part of my own product |
So the criterion for choosing a seat is not “where does it only work” but “where is it more convenient.” The situations below are not impossible in other seats; the seat named is simply relatively more convenient.
- When the person changes direction often while looking at the code, an IDE extension or desktop app is more convenient. The CLI works too, but following, picking, and reverting changed code by eye is easier in a GUI.
- When you repeat the same task or put it into a server · CI · workflow, the CLI fits. Its text input and output make it easy to wrap in scripts, and unlike the GUI seats, no one has to sit in front of a screen.
- When the work needs local files outside
A tool that records and manages the change history of files. It keeps track of what changed and when, and lets you revert to an earlier state or split work into branches and merge them later. GitHub is a service for putting git repositories on the internet and sharing them.
, use a seat that runs on your machine (IDE extension, desktop app, CLI). - When you set a long task going and walk away, or run several tasks at once, cloud execution is more convenient. You can run tasks in parallel locally too, but they occupy the machine and stop when you shut it down.
- When something must run unattended at a set time or on an event, use scheduled · resident execution.
- When the agent has to work inside your own product, use the SDK or API.
Of these, the difference between local and cloud is worth one more look. The strength of local is context. The agent can reference and operate not only the files git manages but also the configuration and Information that proves who you are when you access a service: passwords, API keys, login tokens, and the like. If they leak, someone else can use the service with your permissions, so they are kept separately rather than in the repository. A project folder that git manages. It holds code and documents together with their change history. An agent running in the cloud works on a clone of this repository, so it cannot see files that are not in it.
Here is how far the major agents cover these seats as of November 2026. Items without a stage label in parentheses are ones the official docs do not mark as GA or beta.
| Agent | Terminal | IDE extension | Desktop app | Web · mobile | Cloud execution | Scheduled · resident | SDK · API |
|---|---|---|---|---|---|---|---|
| Claude Code (Anthropic) | CLI | VS Code, Cursor and other VS Code forks / JetBrains (beta) | Code tab in the Claude app (macOS / Windows) | claude.ai/code, mobile app, Remote Control | Sessions in Anthropic-managed An independent computer built in software inside a single physical computer. Its operating system and files are separate, so whatever happens inside does not affect the system outside. Cloud coding agents spin up one such VM per task to do their work. | Scheduled tasks ( An experimental release that comes even before beta, the stage before general availability. Features and behavior may change or disappear without notice, so think twice before relying on it for the core flow of your work. ), Claude Tag in Slack (beta), GitHub Action | Agent SDK, Managed Agents (beta) |
| Codex (OpenAI) | CLI | VS Code, Cursor, Windsurf / separate integrations for Xcode · JetBrains | Codex view in the ChatGPT desktop app (merged July 2026) | Codex web, iOS app, Remote | OpenAI-managed cloud environments, PRs and code review | Automations (schedule · events), Slack · Teams, GitHub | Codex SDK, Agents API (beta) |
| Antigravity (Google) | Antigravity CLI (formerly Gemini CLI) | Antigravity IDE / VS Code · JetBrains · Zed · Xcode extensions | Antigravity 2.0 | — | In preparation (Jules shuts down December 2026) | — | Antigravity SDK, Managed Agents on the Gemini API |
| GitHub Copilot | Copilot CLI | VS Code, JetBrains, and others | Copilot app (technical preview) | GitHub web · mobile | Cloud coding agent (issue → PR) | Cloud automations, Slack | Copilot SDK, Agent tasks API |
| Cursor | Cursor CLI | (its own IDE) | Cursor | cursor.com/agents, iOS app | Cloud Agents (Cursor-managed VMs) | Automations, Slack · GitHub · Linear | Cloud Agents API |
| OpenCode (open source) | CLI | VS Code-family extension | Desktop app | Browser UI (shared local server) | Run it on your own server | Configure it yourself | — |
The details in the table change every few months. What matters is that whichever provider you choose, the seats come as a set. So the choice is not “IDE or terminal” but “which agent (harness) and model do I build my rule files and skills on.” The seats are not a ranking but a choice based on the nature of the task, and I use most of them, picking by the work at hand.
Cursor: the AI-first IDE#
Amid the wave of GitHub Copilot delivering a fresh shock to developers, “AI-first IDEs” like Cursor appeared relatively early. Cursor is a tool that, on top of a VS Code-based editor experience, puts a workflow of delegating The entire source code that makes up a piece of software. It ranges from dozens to tens of thousands of files, and when an agent explores the codebase, it means finding and reading the relevant files to understand the structure.
When I first started using Cursor, it felt like “a bit better than Copilot.” But once the agent feature arrived, the experience changed dramatically. Hand over a requirement and the agent explores the codebase, modifies multiple files, and explains the reasons for changes where needed, getting close to an experience of “pushing the task through to the end.” Today, the agent can open a browser to check the screen, operate external services via MCP, and run multiple tasks in parallel, all inside the IDE. The seats have also spread beyond the IDE: you can use the Cursor CLI in the terminal, run asynchronous work in Cursor-managed VMs with Cloud Agents, and start tasks from the web, the iOS app, or an @cursor mention in Slack or GitHub. Conversely, installing the Claude Code or Codex extension inside Cursor and using another company’s agent in the same editor is a common combination.
Claude Code: the agent that started in the terminal and spread to the most seats#
Claude Code is Anthropic’s coding agent. It started in the terminal, but today it has the widest spread of driver’s seats, so here they are seat by seat.
- IDE. The VS Code extension is a sidebar panel, and it also installs in VS Code forks such as Cursor. The JetBrains plugin is in beta.
- Desktop app. In the Code tab of the Claude app for macOS / Windows, you handle local · cloud ·
A way of connecting to another computer over an encrypted link and running commands remotely. You can use it as if opening a remote server’s terminal from your laptop, and the desktop app’s SSH session runs the agent on that remote server.
sessions on one screen and set scheduled tasks. - Web and mobile. Connect a repository through the GitHub app at claude.ai/code and the session runs inside an Anthropic-managed VM, so the work continues after you close the laptop, and you see the same session in the Code tab of the mobile app. Remote Control lets you drive a session running on your own computer from your phone or the web.
- Running unattended. There are scheduled tasks (research preview) started by a schedule, an API call, or a GitHub event; Claude Tag for calling @Claude in Slack (for organizations, public beta); and @claude mentions through a GitHub Action.
- Using it from a program. The Agent SDK is a library that embeds the Claude Code agent inside your own process, while Managed Agents (beta) runs the same harness through an API in a
An isolated execution space that restricts the files and network a program can access. It is a safeguard so that even if the agent runs a wrong command, the damage stays inside.
Anthropic hosts. For putting an agent inside your own product, the latter carries less operational burden.
You can also get the model through Amazon Bedrock or Google Cloud, but then claude.ai-only features such as cloud sessions drop out. Feature-wise, it starts by reading the rule file at the repository root ( A helper agent that the main agent launches separately to hand off part of the work. It finishes its investigation or implementation in its own context and returns only a summarized result, so the main agent’s context does not get cluttered.CLAUDE.md), and comes with skills that pin recurring work down as procedures, memory that accumulates knowledge across sessions, the ability to split work across
Codex: OpenAI’s agent runtime#
Codex is OpenAI’s coding agent, and on first encounter it is easy to get confused about what the CLI, app, web, IDE extension, and SDK each are. Going by the official docs, the CLI / app / web / IDE extension are the same Codex agent used from different driver’s seats, and the SDK is the interface for controlling that agent from a program. Seat by seat, it looks like this.
- IDE. The extension installs in VS Code, Cursor, and Windsurf, and Xcode and JetBrains have separate integrations. From the extension, long tasks can be handed off to the cloud.
- Desktop app. In July 2026 it was merged into the ChatGPT desktop app. In the Codex view of that app, you manage several local projects and cloud tasks.
- Web and mobile. Codex web connects a GitHub repository (GitLab is in beta), works asynchronously in an isolated environment OpenAI manages, and creates PRs; you can attach automatic code review and security review to PRs. From the iOS app you watch cloud tasks, or use Remote to drive a session running on your Mac.
- Running unattended. Automations start from a schedule or from Gmail · Slack · GitHub events, and you can call Codex directly from Slack and Teams. The Chrome extension is the seat for reading and operating pages inside the browser.
- Using it from a program. The Codex SDK controls the local agent, and the Agents API, released in September 2026, lets you use the harness that runs Codex in a form OpenAI hosts, with the server handling session management, sandboxing, and subagent delegation.
Choosing an OpenAI model in Cursor’s chat, on the other hand, may use the same model, but it is not the Codex agent. I use Codex as a supporting tool, with the CLI as my reference point, and I also use a plugin that calls Codex from inside Claude Code. With this plugin I use Codex in two ways. One is as a reviewer, having the code Claude Code changed checked once more from a different model’s perspective. The other is as a subagent: when Claude Code gets stuck, I hand Codex a root-cause investigation or a second implementation wholesale and take back only the result. The main agent stays as it is, and another company’s agent works under it like a team member.
Google Antigravity and GitHub Copilot#
In 2026 Google gathered its coding tools under Antigravity. In May it released the Antigravity CLI as the successor to Gemini CLI, and from June 18 the Gemini CLI and Gemini Code Assist extensions stopped serving individual users (enterprise licenses continue). The seats are the VS Code-based Antigravity IDE, the Antigravity 2.0 desktop app for managing several agents, the VS Code · JetBrains · Zed · Xcode extensions released in August, plus the CLI and SDK. Jules, which ran asynchronously in the cloud, had its shutdown announced at the end of October and closes on December 31; cloud execution is due to move into Antigravity, but as of this writing it has not opened. The Gemini API has Managed Agents, the same name as Anthropic’s, for running agents through an API in an environment Google hosts.
GitHub Copilot started from autocomplete inside the editor and has widened into the same structure: VS Code · JetBrains extensions, the Copilot CLI, the Copilot app for managing several agent sessions (technical preview since May 2026), a coding agent that works in GitHub’s cloud and opens a PR when you assign it an issue, cloud automations that run on schedules and events, a Slack integration, and the Copilot SDK, generally available since June. If your repository lives on GitHub, its strength is that issue → agent → PR → review flows in one place.
Open-source and resident agents#
Open-source agents such as OpenCode, Cline, and goose have the strength that any model can be attached and the code is public. OpenCode has a terminal, a desktop app, a browser UI, and an IDE extension, but no provider-operated cloud. Run it on your own server, though, and that becomes your cloud execution. The resident Hermes Agent goes a step further: you run it on a server, drive it with messages from Slack or Discord, it creates skills on its own from work experience, and it runs unattended jobs like daily reports on A scheduling tool that runs commands automatically at set times or intervals. It is used to run recurring work with no one present, such as producing a report every morning at 9. A technology that bundles a program and the environment it needs, and runs it in a space separated from everything else. Docker is the representative example. Inside a container only the folders you connect (mount) are visible, so it is used to narrow the agent’s range of access.
How I work: the navigator in pair programming#
Developing with a coding agent can be compared to A way of coding in which two people look at one screen and write code together. One (the driver) holds the keyboard and writes code, and the other (the navigator) sets the direction and catches mistakes.
A few habits strongly determine the quality of the result.
- Define “done” with tests. Have the agent write test code and actually run it, so it checks for itself “whether the work is finished.” It is the habit of finishing with “a result whose behavior is verified,” not “a result that looks plausible.”
- Keep instructions in files, not in chat. This is the rule file, skill, and memory structure from Key AI Concepts, Chapter 3. Each tool recognizes a different file name (Claude Code uses
CLAUDE.md, Cursor.cursor/rules/, CodexAGENTS.md), so if you write the rules in the main tool’s file and have the other tools’ files reference it, you can manage the rules in one place only. - Run in parallel, but keep the human rhythm. Running different tasks in several sessions at once has the effect of one developer handling two or three jobs. But the human head switching between sessions becomes the new bottleneck. This problem is covered separately in “Dividing Work Solo” in the Execution section.
- Take a second look with a different model. For important changes, run a review with a model from a different provider. When the same model writes and the same model reviews, they share the same blind spots.
Finally, coding agents are no longer “tools for developers only.” When the idea first occurred to me, it was an unfamiliar one. If a coding agent can read and modify local files, run commands to automate tasks, and connect external tools, I reasoned, it could be used as is for work that is not development. I said so at work several times, and the response was “that’s a tool for developers.” Things are different now. Since OpenClaw became a topic well beyond the developer community in early 2026, the number of people who organize documents, analyze data, and automate repetitive work with coding agents has grown sharply. Model providers have also released the same structure as products for non-development work themselves, such as Anthropic’s Cowork and OpenAI’s ChatGPT Work. This means that doing non-development work with a coding agent is no longer an unfamiliar experiment but a proven method. The manuscript of this book was also written together with a coding agent.
If you have not tried a coding agent yet, I recommend starting now, even if you are not a developer. Begin by making a folder, putting your material in it, and handing that folder to an agent. The concrete approach continues in the “Working with AI” chapter.
Making the most of subscriptions#
For someone who uses a coding agent all day, a monthly subscription is far cheaper than calling the same usage through the API. What you can actually use is much more than the subscription fee divided by API prices. Providers do not publish the exact gap, and plans and limits change often, so it is better to remember the reasons than the numbers. Not every subscriber uses their limit to the end, so providers can balance costs on the average, and inside their own products they control model choice, caching, and the number of concurrent runs.
So the price is less a simple discount than the price of a limited scope of use. A subscription is a benefit that model providers give individual users as a B2C service, and that benefit holds only inside the products and official The environment in which a program actually runs, or the program that takes charge of that execution. Here, the official runtime means programs the model provider distributes itself, such as Claude Code or the Codex CLI, which handle authentication and usage accounting. A tool or service made by someone other than the company that made the service or the user. Here it means agents made by someone other than the model provider (Hermes Agent, OpenClaw, and so on).
- Claude. Even if you build your own system with a third-party agent such as Hermes Agent and sign in with a Claude subscription account, those requests cannot use the limit included in the subscription; they are deducted from separately purchased extra usage. The subscription limit can be used only inside the Claude apps and Claude Code.
- Codex. Connect a ChatGPT subscription account to a third-party agent and you can use Codex’s subscription usage limit as is. As of November 2026, that makes it the most open of the three companies, but because it uses the Codex product’s path rather than a published API contract, there is no telling how this policy will change.
- Google. It treats third-party tools reusing the subscription credentials of Antigravity or Gemini CLI as grounds for account sanctions, drawing the line most firmly.
The relatively safe method is, instead of pulling out the credentials, to run the official runtime as a subordinate worker. When a third-party agent hands work to a signed-in official Codex CLI or Antigravity CLI, the provider’s own program is responsible for authentication and applying limits. The plugin introduced earlier, which calls Codex as a reviewer or subagent inside Claude Code, is also built by running the official Codex runtime, so it uses the Codex side’s subscription limit.
Once you know this boundary, the policy is clear. Build your personal AI work environment actively around subscriptions.
- Most of the driver’s seats from the earlier section (CLI, IDE extension, desktop app, cloud sessions on the web, scheduled tasks) can be used within the same subscription at no extra cost. Do not stick to just one; pick the seat that fits the work.
- Holding subscriptions with two or more providers gives you another model’s perspective and also increases the limits you can use. That is also why I keep Claude Code as my main tool and Codex as a supporting one.
- If you hit the limit often, moving up a plan is usually cheaper than switching to pay-as-you-go API. The API credits that come with higher plans are covered in “Subscriptions and APIs Are Different Products” in the previous chapter.
- Conversely, work in which your product calls a model on behalf of users is designed on the API from the start. How to spend subscription limits sparingly is covered in the Operations chapter of the Execution section, and cost design for AI in your product in “Adding AI Features to Your Product”.
The differences in authentication and billing I found while connecting subscription accounts to third-party agents are laid out in detail in the essay “Why an AI Subscription Isn’t a Cheap API”.
Principles for choosing tools#
At first I agonized over “which tool should I settle on,” but in the end I judged that tools with similar concepts compete with each other and quickly catch up on features, and decided to settle on one for now. Under the assumption that when a new feature appears in another tool, a similar one will soon arrive, I focused on changing the way I work rather than on the cost of tool selection. A few principles emerged after that.
- Pin down one reference point first. Pick a main tool and build up its rule files and skills as assets. Attach other tools by role (reviewer, parallel worker, resident bot).
- Put subscriptions at the center. For a coding agent an individual uses all day, a subscription is far more economical than the API, but that benefit holds only inside the provider’s products (see “Making the most of subscriptions” above).
- Prevent tool lock-in with the file structure. Keep rules, design docs, and memory as plain
A text format that marks up formatting with simple symbols, such as
inside the repository, and whichever tool opens it starts from the same context.#for headings and-for lists. Because it can be read and written even in a plain text editor, it is widely used as a document format shared by people and AI. - Do not trust the defaults. The sandbox is off by default, it stalls if a question goes unanswered, and it can still read a file you told it not to read. These limits and the responses to them are covered in the Operations chapter of the Execution section.
Summary#
- Coding agents are only comparable once you split them into three layers: model · agent · client.
- IDE extension, desktop app, terminal, web, cloud, and resident are kinds of driver’s seat, and the major agents come with the whole set. What they can do is mostly the same; only how you see and instruct and where it runs differ. Local’s strength is context; the cloud’s is persistence.
- The person is the navigator. Define “done” with tests, keep instructions in files, and review with a different model.
- A subscription is a personal benefit that holds only inside the provider’s products. Build your personal AI work environment around subscriptions, and design work your product calls on behalf of users on the API.
- Pin down one reference point, put subscriptions at the center, prevent lock-in with the file structure, and do not trust the defaults.