Rudder

Claude Code vs Codex vs OpenCode vs Antigravity CLI

Each terminal coding harness optimizes for a different model family and tool loop. Instead of locking your repository into a single vendor wrapper, understanding how Claude Code, OpenAI Codex, OpenCode, and Google Antigravity (`agy`) work lets you assign each task to the strongest harness.

Side-by-side architecture matrix

Harness Primary models Subscription auth Subagent model Session storage
Claude Code (claude) Claude Sonnet & Opus Claude Pro / Max / Team or API Agent tool + multi-session Agent Teams JSONL per cwd in ~/.claude/projects/
OpenAI Codex (codex) GPT-5 / Codex reasoning tiers ChatGPT Plus / Pro / Team or API spawn_agent multi-agent v2 threads Dated rollout JSONL in ~/.codex/sessions/
OpenCode (opencode) 75+ providers (OpenRouter, Anthropic, OpenAI, local) Provider keys, OAuth, or free tier task subagent sessions SQLite WAL database in ~/.local/share/opencode/
Antigravity CLI (agy) Gemini Pro & Flash Google AI / Gemini subscription invoke_subagent + Python workflows Brain folders in ~/.gemini/antigravity-cli/brain/

Where each harness wins on real engineering work

Claude Code: fast multi-file edits and rich lifecycle hooks

Claude Code pairs tight `Read` / `Edit` / `Grep` primitives with granular lifecycle hooks (`PreToolUse`, `PermissionRequest`, `Stop`, `StopFailure`) and automatic context compaction. It excels at rapid full-stack feature work, UI polish, and multi-agent team coordination.

OpenAI Codex: deep verification and Surgical `apply_patch`

Codex shines on tricky systems bugs, Rust lifetimes, concurrency invariants, and adversarial code review. With adjustable reasoning effort (`low`, `medium`, `high`, `xhigh`), Codex will methodically trace every caller before applying a unified diff via `apply_patch`.

OpenCode vs Claude Code: open-source model freedom

Engineers comparing OpenCode vs Claude Code are usually weighing vendor lock-in against integrated subscription ergonomics. OpenCode stores every session cleanly in a local SQLite database and speaks to OpenRouter, local Ollama/vLLM endpoints, and direct provider keys, making it ideal when you want open weights or custom OpenRouter models alongside commercial subscriptions.

Google Antigravity CLI (`agy`): massive context, web search, and artifacts

Antigravity (`agy`) brings Gemini's long context window, built-in `search_web`, image generation, structured `brain/` artifacts, and parallel subagent orchestration (`invoke_subagent`) to the terminal. It is particularly strong at research-heavy tasks, SEO/content pipelines, and auditing large unfamiliar repositories.

Running all four side by side and handing chats across harnesses

In Rudder, harness choice is per-agent and changeable mid-flight:

Use Claude Code, Codex, OpenCode, and Gemini together in one workbench.

Free local CLI, native Mac app, and iPhone app. Bring the subscriptions and API keys you already use.