Terminal AI Coding Assistants: Claude Code, Codex, and Gemini CLI

Compare terminal AI coding assistants by access model and workflow, then follow a bounded Claude Code example with permission, diff, and test checkpoints.

Updated · Markdown version

A terminal AI coding assistant is a coding agent exposed through a shell command. It is often scoped to a working directory, can read or edit files subject to its permissions, and may also support non-interactive scripts. It is useful when you want file changes, commands, and test output in one terminal workflow; an IDE interface may be more convenient when you want context beside the active file.

What the terminal version is

Each product provides a terminal client: claude for Claude Code, codex for Codex CLI, and gemini for the enterprise-oriented Gemini CLI described in the supplied README. These clients can work from a selected directory, but the supplied sources do not establish identical local-processing architectures. Checked 2026-11-25, their access and account rules differ, so verify the current vendor page before setup.

How it works: a worked example

  1. Install Claude Code by following the install guide, then confirm the command with claude --version.
  2. Change into the project folder with cd, then run claude. Log in when prompted.
  3. Give it a bounded task, such as adding input validation to a signup form. The agent finds the relevant file and shows the change before it applies it, depending on the permission mode. Press Shift+Tab to cycle modes.
  4. For a scripted check, run claude -p "explain this function". This sends one query, prints the answer and exits.
  5. Confirm the result yourself. Run git status and git diff to see which files changed, then run your test command.

Step 5 is the check that matters. The agent's summary tells you what it intended, and the diff tells you what it did.

Compare the current terminal options

ToolDocumented access in the supplied sourceUseful distinction
Claude CodeClaude subscription, Console account, or a supported cloud providerInteractive terminal work and one-off claude -p queries; also available through other interfaces
Codex CLIChatGPT sign-in or API-key setupLocal-repository terminal agent with separate IDE, desktop, and cloud/web surfaces
Gemini CLIGemini Code Assist Standard/Enterprise or Code Assist for GitHub; legacy paid API or Vertex keys are also describedEnterprise Google Cloud workflows; the README directs free individual and Google AI Pro/Ultra users to Antigravity CLI

Choose by access eligibility, the environment where the repository should run, and whether you want to review commands in a terminal or edits beside code in an IDE. Multi-file work is not exclusive to terminals, and terminal agents are not limited to multi-file tasks. Claude Code, for example, documents terminal, IDE, desktop, web, and CI interfaces, but their surrounding workflows and controls can differ.

What it is not

A terminal agent is not a substitute for code review. It is not a compiler, a test runner or a git client; it calls those tools and reports back. An agent may learn some project conventions from your prompt, existing code, tests or configuration, but it may miss them. A project instructions file is one durable way to make important conventions explicit.

Pitfalls

  1. `claude` is missing from the shell after install. Open a new terminal and run claude --version again. If it still fails, the install folder is not on PATH, and the install guide covers that step.
  2. Updates stop arriving. Homebrew and WinGet installs do not update in the background. Run brew upgrade claude-code or winget upgrade Anthropic.ClaudeCode on a schedule.
  3. Plan or model changes after you set up. The Gemini CLI README says free individual access and Google AI Pro and Ultra plans moved to Antigravity CLI on June 18, 2026. Confirm your plan on the vendor page before you configure the tool.
  4. Accepting edits without reading them. Approval prompts depend on the permission mode you chose. Review git diff after each session, not only the agent's summary.

When to use a skill instead

A one-off question or a single small change works fine with ad-hoc prompting. The catalogue describes coding-agent-guardrails as a reusable pre-action checklist. Its 2026-11-23 measured evaluation reported NO_LIFT: the pass-rate difference was -5.0 points with a 95% interval from -16.8 to +6.8, and two tasks favored the baseline. That model-specific, AI-graded result establishes neither general benefit nor general harm. A skill supplies guidance rather than external enforcement, so do not use it to justify reduced supervision; keep permission controls, diff review, and tests.

FAQ

Is the Claude Code extension different from the terminal version? Both are Claude Code interfaces. Anthropic lists VS Code, JetBrains IDEs, the web, a desktop app, and CI in addition to the terminal, but the supplied source does not establish identical tools, permissions, or behavior across every interface.

How do I start Claude Code in a project? Change into the project folder, run claude, and log in on first use. Type /help inside the session to list commands.

Which install method should I use on Windows? Claude Code documents a native PowerShell installer that updates in the background, plus WinGet, which does not. If you want the native installer's automatic updates, use the PowerShell command.

Platform Score is our assessment under a published method. It is not a safety guarantee.

Terms this guide uses

This item is a worked example in the AI glossary for:

Next steps

  1. Agentic Coding Tools: What They Are and How to Choose One Read next.
  2. Install Claude Code: Native, Homebrew, WinGet, or npm Read next.
  3. Claude Code compatibility Install evidence per tool.
  4. All guides by topic Browse everything.

Sources