AI tools

What is a terminal coding agent (Claude Code, Codex, Antigravity CLI, OpenCode, Aider)?

· By Robert Scales · 4 min read

Short answer

A terminal coding agent is an AI assistant you start from the command line inside a project folder; it reads your files, plans a change, edits code, runs commands such as tests and reports back, asking permission along the way. Claude Code, Codex, Antigravity CLI, OpenCode and Aider all work this way, but differ in which models they use and how you pay.

The terminal is the text window where you type commands to your computer instead of clicking. A terminal coding agent is a program you launch there, inside a project folder, that turns a plain-language request into real work: it reads the relevant files, proposes a plan, edits code, runs commands such as your tests, and tells you what it did. Because the terminal is where developers already run and test their code, an agent that lives there can do the whole loop itself.

This guide has covered what a coding agent is and how Codex and Claude Code compare. As of October 2026 the field is wider, and the main choices differ less in what they can do than in which models they use, how they bill, and how open they are.

The main terminal agents in October 2026

AgentMakerModelsHow you pay
Claude CodeAnthropicClaude modelsIncluded in Claude Pro and higher, or pay per use with an API key
Codex CLIOpenAIOpenAI modelsIncluded in ChatGPT Plus and higher, or pay per use with an API key
Antigravity CLIGoogleGemini modelsPart of Google's Antigravity platform; free tier with weekly limits
OpenCodeAnomaly75+ providers, including local modelsFree, open source; pay the model provider, or use its free models
AiderOpen-source projectAlmost any model, including local onesFree; you pay the model provider

A few details help you place each one. Anthropic's documentation says Claude Code also runs in VS Code, JetBrains, a desktop app and the web, all sharing the same project settings, and reads a CLAUDE.md file (or an existing AGENTS.md) at the start of every session. OpenAI's Codex pricing page puts the CLI in ChatGPT Plus at $20 a month and notes that an API key gives CLI access without cloud features. Google introduced Antigravity CLI in May 2026 as the successor to Gemini CLI, keeping skills, hooks and subagents, and stopped serving Gemini CLI to its consumer plans on June 18, 2026. OpenCode, released under the MIT licence, runs in the terminal, as a desktop app or in an editor, and can sign in with an existing GitHub Copilot or ChatGPT subscription. Aider is the veteran of the group: lighter on agent features, and it commits every change to git so you can undo it easily.

A worked example: a first session

Here is what a first, careful session looks like with any of these tools. The commands below use Claude Code; the others are similar.

  1. Open the terminal and move into a copy of your project, or a small test project. Make sure it is tracked with git, so every change can be undone.
  2. Start the agent by typing its name, for example claude.
  3. Ask it to look before it touches anything:
Prompt
Read this project and explain in plain words what it does, how to run it
and how to run its tests. Don't change any files.
  1. Give one small, checkable task: "Add a test for the date formatting function, run the tests and show me the result."
  2. When it asks permission to edit a file or run a command, read what it wants to do and approve only what you understand.
  3. When it finishes, look at the change with git diff and run the tests yourself.

Try it: Pick one of the agents above, install it in a throwaway folder containing a few small files, and ask it only to explain the project. Notice what it reads and what permissions it asks for.

Do you need to be a developer to use one?

No, but you need a few developer habits. Anthropic's installation guide is written so that someone who has never opened a terminal can follow it, and the desktop and web versions of Claude Code avoid the terminal entirely. People with no programming background use these agents to build personal tools, clean up spreadsheets or automate small tasks.

What you do need is the judgment that a developer brings. An agent in your terminal can run real commands on your real files. That is exactly what makes it useful, and also why the permission prompts matter. Before you rely on one, learn four things: how to open a terminal and move between folders; how git lets you see and undo changes; how to run your project's tests or at least start it and click through; and never to paste passwords or API keys into the conversation.

Start in a copy of a project, keep tasks small, and say "explain before you change" until you trust how the agent works. Read every permission request instead of approving by reflex. If your project handles other people's data or money, have someone who reads code review the result before it goes live. Used this way, a terminal agent is less a replacement for learning to code than a patient tutor that also does the typing.

Sources

  1. Claude Code overview — Anthropic (Claude Code docs), October 28, 2026
  2. An important update: Transitioning Gemini CLI to Antigravity CLI — Google Developers Blog, May 19, 2026
  3. OpenCode | The open source AI coding agent — Anomaly (OpenCode), October 28, 2026

Get the free Guide to Artificial Intelligence

Sign up for the weekly newsletter and receive the free guide: what changed in AI this week, one lesson, one prompt to try. Unsubscribe in one click.

How we handle your address

Back to top

Display

Your choices are saved in this browser only. No data is sent.

Text size
100%
Colours
Reading
More settings
Accessibility statement